Root Node / Solving Stage #127
-
Hello, I am currently developing a probing/diving environment in ecole. So far, I only use pyscipopt through the If i understand correctly, you interact with SCIP in the solving stage through the function Any help would be very much appreciated! Best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
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 Our solution is currently in these model = ...
# Put model on the first branchrule call
dyn = ecole.dynamics.BranchingDynamics()
_, done = dyn.reset_dynamics(model)
# keep using Model The downside (I don't know if it applies for you) you may need to finish solving the model with We would like to extend on this, to let environment developpers more easily customize where SCIP should pause during solving. |
Beta Was this translation helpful? Give feedback.
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.