handle_lazy_main_feasible_solution_gurobi
(function from pyomo.contrib.mindtpy.single_tree
)
-
pyomo.contrib.mindtpy.single_tree.handle_lazy_main_feasible_solution_gurobi(cb_m, cb_opt, mindtpy_solver, config)[source]
This function is called during the branch and bound of main MIP problem,
more exactly when a feasible solution is found and LazyCallback is activated.
Copy the solution to working model and update upper or lower bound.
In LP-NLP, upper or lower bound are updated during solving the main problem.
- Parameters:
cb_m (Pyomo model) – The MIP main problem.
cb_opt (SolverFactory) – The gurobi_persistent solver.
mindtpy_solver (object) – The mindtpy solver class.
config (ConfigBlock) – The specific configurations for MindtPy.