Struct grb::callback::MIPNodeCtx [−][src]
pub struct MIPNodeCtx<'a>(_);
Expand description
Callback context object during MIPNODE
.
Implementations
Add a new (linear) cutting plane to the MIP model.
pub fn get_solution<I, V>(&self, vars: I) -> Result<Vec<f64>> where
V: Borrow<Var>,
I: IntoIterator<Item = V>,
pub fn get_solution<I, V>(&self, vars: I) -> Result<Vec<f64>> where
V: Borrow<Var>,
I: IntoIterator<Item = V>,
Get the optimal solution to this MIP node relaxation. This will query the solution for ALL variables, and return the subset provided, so you should avoid calling this method multiple times per callback.
Provide a new feasible solution for a MIP model. Not all variables need to be given.
On success, if the solution was feasible the method returns the computed objective value,
otherwise returns None
.
Signal Gurobi to terminate the optimisation. Will not take effect immediately
Add a new lazy constraint to the model
Important: Requires that the LazyConstraints
parameter is set to 1