-
-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
correcting max-flow problem in MILP tutorial #38557
base: develop
Are you sure you want to change the base?
Conversation
Please rebase this branch on last beta. I will then review it. |
08a7788
to
8e18c5f
Compare
@dcoudert I have tried rebasing it . if there is any problem. plz let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I'm getting
|
try to change Sage example in ./lp.tex, line 681::
- sage: for e in g.edges(sort=True, labels = False): p.add_constraint( f[e] <= 1 )
+ sage: for e in g.edges(labels=False): p.add_constraint(f[e], min=0, max=1) |
Documentation preview for this PR (built with commit e7326d5; changes) is ready! 🎉 |
tdf #35497 incorrect max-flow problem formulation in MILP tutorial
I have made changes in two files , just completed the objective function as described in the comments.
p.set_objective(p.sum(f[s,u] for u in g.neighbors_out(s)) - p.sum(f[v,s] for v in g.neighbors_in(s)))
#35497 (comment)