Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
Model.cbProceed()
cbProceed ( )
Generate a request to proceed to the next phase of the computation. This routine can be called from any callback. Note that the request is only accepted in a few phases of the algorithm, and it won't be acted upon immediately.
In the current Gurobi version, this callback allows you to proceed
from the NoRel heuristic to the standard MIP search. You can determine
the current algorithm phase using MIP_PHASE
,
MIPNODE_PHASE
, or MIPSOL_PHASE
queries from a callback.
Example usage:
def mycallback(model, where): if where == GRB.Callback.MIPSOL: phase = model.cbGet(GRB.Callback.MIPSOL_PHASE) obj = model.cbGet(GRB.Callback.MIPSOL_OBJ) if phase == GRB.PHASE_MIP_NOREL and obj < target_obj: model.cbProceed() model.optimize(mycallback)