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.

Optimization status of current MIP node.

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

Retrieve the elapsed solver runtime in seconds.

Add a new lazy constraint to the model

Important: Requires that the LazyConstraints parameter is set to 1

Current best objective.

Current best objective bound.

Current explored node count.

Current count of feasible solutions found.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.