LazyOACallback_gurobi

(function from pyomo.contrib.mindtpy.single_tree)

pyomo.contrib.mindtpy.single_tree.LazyOACallback_gurobi(cb_m, cb_opt, cb_where, mindtpy_solver, config)[source]

This is a Gurobi callback function defined for LP/NLP based B&B algorithm.

Parameters:
  • cb_m (Pyomo model) – The MIP main problem.

  • cb_opt (SolverFactory) – The gurobi_persistent solver.

  • cb_where (int) – An enum member of gurobipy.GRB.Callback.

  • mindtpy_solver (object) – The mindtpy solver class.

  • config (ConfigBlock) – The specific configurations for MindtPy.