Struct gurobi::Env
[−]
[src]
pub struct Env { // some fields omitted }
Gurobi environment object
Methods
impl Env
[src]
fn new(logfilename: &str) -> Result<Env>
Create an environment with log file
fn client(logfilename: &str, computeserver: &str, port: i32, password: &str, priority: i32, timeout: f64) -> Result<Env>
Create a client environment on a computer server with log file
fn new_model(&self, modelname: &str) -> Result<Model>
Create an empty model object associted with the environment
fn read_model(&self, filename: &str) -> Result<Model>
Read a model from a file
fn get<P: ParamBase>(&self, param: P) -> Result<P::Out>
Query the value of a parameter
fn set<P: ParamBase>(&mut self, param: P, value: P::Out) -> Result<()>
Set the value of a parameter
fn read_params(&mut self, filename: &str) -> Result<()>
Import a set of parameter values from a file
fn write_params(&self, filename: &str) -> Result<()>
Write the set of parameter values to a file
fn message(&self, message: &str)
Insert a message into log file.
When message cannot convert to raw C string, a panic is occurred.