[−][src]Struct gurobi::Env
Gurobi environment object
Methods
impl Env
[src]
pub fn new(logfilename: &str) -> Result<Env>
[src]
Create an environment with log file
pub fn new_client(
logfilename: &str,
computeserver: &str,
port: i32,
password: &str,
priority: i32,
timeout: f64
) -> Result<Env>
[src]
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
pub fn new_model(&self, modelname: &str) -> Result<Model>
[src]
Deprecated
Create an empty Gurobi model from the environment
pub fn read_model(&self, filename: &str) -> Result<Model>
[src]
Deprecated
Read a model from a file
pub fn get<P: Param>(&self, param: P) -> Result<P::Out>
[src]
Query the value of a parameter
pub fn set<P: Param>(&mut self, param: P, value: P::Out) -> Result<()>
[src]
Set the value of a parameter
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]
Write the set of parameter values to a file
pub fn message(&self, message: &str)
[src]
Insert a message into log file.
When message cannot convert to raw C string, a panic is occurred.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Env
impl !Send for Env
impl !Sync for Env
impl Unpin for Env
impl UnwindSafe for Env
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,