-
Notifications
You must be signed in to change notification settings - Fork 526
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
Using branch priority in Pyomo #1587
Comments
@ZedongPeng, this is a good example of a bug. It looks like the If you add m.direction.set_value(m.x, BranchDirection.down) to your example, it passes.
As for this question, my understanding is that CPLEX uses the branching priorities you specify as a guide. Whether or not anything actually changes in the solver's routine is another matter. As long as the |
Thank you @ruaridhw a lot for the reply. I agree with you that |
@ZedongPeng, as this does not appear to be a problem with Pyomo, are you ok if we close this issue? |
Sure. Thank you for the help. @jsiirola |
I am trying to set branch priority in Pyomo for the MILP model.
I noticed that branch priority in cplex is available. #1300 and #1299
There is an example on overstackflow.
Since this example is small. I can't check the detailed branch process of cplex. However, there is an warning reported by cplex.
It looks like the priority of
m.x
is not set successfully.The m.direction suffix is optional, so I removed it. There are more warnings in the output.
It looks like if m.direction is not set, m.priority will fail. Is this reasonable?
I also tested the priority suffix in a bigger MILP model.
I tried three cases:
In all three examples, the branch process of cplex is the same according to the output.
Is there any other example I can refer to for branch priority in Pyomo?
Thanks.
The text was updated successfully, but these errors were encountered: