Struct gurobi::env::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_model(&self, modelname: &str) -> Result<Model>

create an empty model object associted with the environment.

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 error_from_api(&self, error: c_int) -> Error

Trait Implementations

impl Drop for Env
[src]

fn drop(&mut self)

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