Struct gurobi::Callback [] [src]

pub struct Callback<'a> { /* fields omitted */ }

The context object for Gurobi callback.

Methods

impl<'a> Callback<'a>
[src]

Retrieve the location where the callback called.

Retrive node relaxation solution values at the current node.

Retrieve values from the current solution vector.

Provide a new feasible solution for a MIP model.

Retrieve the elapsed solver runtime [sec].

Add a new cutting plane to the MIP model.

Add a new lazy constraint to the MIP model.

Methods from Deref<Target = Model>

create a copy of the model

Create an fixed model associated with the model.

In fixed model, each integer variable is fixed to the value that it takes in the original MIP solution. Note that the model must be MIP and have a solution loaded.

Create an relaxation of the model (undocumented).

Perform presolve on the model.

Create a feasibility model (undocumented).

Get immutable reference of an environment object associated with the model.

Wait for a optimization called asynchronously.

Send a request to the model to terminate the current optimization process.

Reset the model to an unsolved state.

All solution information previously computed are discarded.

Perform an automated search for parameter settings that improve performance on the model. See also references on official manual.

Prepare to retrieve the results of tune(). See also references on official manual.

Deprecated

Create/retrieve a concurrent environment for the model

Note that the number of concurrent environments (num) must be contiguously numbered.

Example

let env1 = model.get_concurrent_env(0).unwrap();
let env2 = model.get_concurrent_env(1).unwrap();
let env3 = model.get_concurrent_env(2).unwrap();
...

Deprecated

Discard all concurrent environments for the model.

Insert a message into log file.

When message cannot convert to raw C string, a panic is occurred.

Export optimization data of the model to a file.

Query the value of attributes which associated with variable/constraints.

Query the value of attributes which associated with variable/constraints.

Retrieve the status of the model.

Retrieve an iterator of the variables in the model.

Retrieve an iterator of the linear constraints in the model.

Retrieve an iterator of the quadratic constraints in the model.

Retrieve an iterator of the special order set (SOS) constraints in the model.

Retrieve a single constant matrix coefficient of the model.

Trait Implementations

impl<'a> Deref for Callback<'a>
[src]

The resulting type after dereferencing

The method called to dereference a value