Struct grb::callback::MIPSolCtx [−][src]
pub struct MIPSolCtx<'a>(_);
Expand description
Callback context object during MIPSOL
.
Implementations
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>,
Retrieve the new (integer) solution values for the given variables. This will query the solution for ALL variables, and return the subset provided, so you should avoid calling this method multiple times per callback.
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