Struct grb::Env [−][src]
pub struct Env { /* fields omitted */ }
Expand description
A Gurobi Environment object.
Model
s 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
impl Env
[src]
impl Env
[src]pub fn new(logfilename: &str) -> Result<Env>
[src]
pub fn new(logfilename: &str) -> Result<Env>
[src]Create an environment with log file
Setting logfilename
to an empty string will not create a logfile.
pub fn new_client(
logfilename: &str,
computeserver: &str,
port: i32,
password: &str,
priority: i32,
timeout: f64
) -> Result<Env>
[src]
pub fn new_client(
logfilename: &str,
computeserver: &str,
port: i32,
password: &str,
priority: i32,
timeout: f64
) -> Result<Env>
[src]Create a client environment on a computer server with log file
pub fn set<P: ParamSet<V>, V>(&mut self, param: P, value: V) -> Result<()>
[src]
pub fn set<P: ParamSet<V>, V>(&mut self, param: P, value: V) -> Result<()>
[src]Set the value of a parameter
pub fn read_params(&mut self, filename: &str) -> Result<()>
[src]
pub fn read_params(&mut self, filename: &str) -> Result<()>
[src]Import a set of parameter values from a file
pub fn write_params(&self, filename: &str) -> Result<()>
[src]
pub fn write_params(&self, filename: &str) -> Result<()>
[src]Write the set of parameter values to a file