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 new_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>

Deprecated

Create an empty Gurobi model from the environment

fn read_model(&self, filename: &str) -> Result<Model>

Deprecated

Read a model from a file

fn get<P: Param>(&self, param: P) -> Result<P::Out>

Query the value of a parameter

fn set<P: Param>(&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.

Trait Implementations

impl Drop for Env
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more