Created
November 19, 2019 00:14
-
-
Save titowoche30/5e6d66f14bfb7352eb70addec8b1eaaa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def rule_const2(model,N): | |
| return sum(model.x[N,j] for j in model.M if j!=N) == 1 | |
| model.rest2 = pyEnv.Constraint(model.N,rule=rule_const2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment