Struct grb::prelude::Env[][src]

pub struct Env { /* fields omitted */ }
Expand description

A Gurobi Environment object.

Models objects created with Model::new will use the default Env. This default Env is thread-local and lazily initialized. Currently, it lasts until the current thread; there is no way to de-allocate it from the current thread.

Implementations

Create a new empty and un-started environment.

Create an environment with log file

Setting logfilename to an empty string will not create a logfile.

Create a client environment on a computer server with log file

Query the value of a parameter

Set the value of a parameter

Import a set of parameter values from a file

Write the set of parameter values to a file

Insert a message into log file.

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

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.