Struct grb::EmptyEnv[][src]

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

Gurobi environment object (see the Gurobi manual) A Gurobi environment which hasn’t been started yet. Some Gurobi parameters, such as Record need to be set before the environment has been started.

Setting param::OutputFlag to 0 on an EmptyEnv is useful for stopping the license info from being printed, since this happens on starting the environment.

Examples

use grb::*;
let mut env = Env::empty()?;
env.set(param::OutputFlag, 0)? // license will not be printed when env starts
  .set(param::UpdateMode, 1)?
  .set(param::LogFile, "".to_string())?;
let env : Env = env.start()?;

Implementations

Query a parameter value

Set a parameter value

Start the environment, returning the Env on success.

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.