Skip to content

Root Node / Solving Stage #127

Discussion options

You must be logged in to vote

It sounds that you are getting into the same problem as us, which is that we want to iteratively go from one node to the next (in Branching.step()), while SCIP relies on a branching rule callback which execution we do not control.

Our solution is currently in these solve_iter methods that pauses SCIP every time SCIP call our Branch-rule.
This is subject to changes, as it will need to be adapted for other environments, so I would prefer not exposing it to Python.
However, you can still use it by reusing our ecole.dynamics.BranchingDynamics, which do just that.

model = ...
# Put model on the first branchrule call
dyn = ecole.dynamics.BranchingDynamics()
_, done = dyn.reset_dynamics(model)
#…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@AntoinePrv
Comment options

@LovisAnderson
Comment options

@AntoinePrv
Comment options

@LovisAnderson
Comment options

@LovisAnderson
Comment options

Answer selected by LovisAnderson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants