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()?;