pub struct EmptyEnv { /* private fields */ }
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§
Auto Trait Implementations§
impl Freeze for EmptyEnv
impl RefUnwindSafe for EmptyEnv
impl !Send for EmptyEnv
impl !Sync for EmptyEnv
impl Unpin for EmptyEnv
impl UnwindSafe for EmptyEnv
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more