Struct gurobi::Var [] [src]

pub struct Var(_);

Proxy object of a variables

Methods

impl Var
[src]

fn get_type(&self, model: &Model) -> Result<(char, f64, f64)>

Methods from Deref<Target=Proxy>

fn get<A: AttrArray>(&self, model: &Model, attr: A) -> Result<A::Out>

Query the value of attribute.

fn set<A: AttrArray>(&self, model: &mut Model, attr: A, val: A::Out) -> Result<()>

Set the value of attribute.

fn remove(&mut self)

Trait Implementations

impl Into<QuadExpr> for Var
[src]

fn into(self) -> QuadExpr

Performs the conversion.

impl<'a> Into<QuadExpr> for &'a Var
[src]

fn into(self) -> QuadExpr

Performs the conversion.

impl Add for Var
[src]

/////// Operator definition.

type Output = LinExpr

The resulting type after applying the + operator

fn add(self, rhs: Var) -> LinExpr

The method for the + operator

impl<'a> Add<&'a Var> for Var
[src]

type Output = LinExpr

The resulting type after applying the + operator

fn add(self, rhs: &Var) -> LinExpr

The method for the + operator

impl<'a> Add<Var> for &'a Var
[src]

type Output = LinExpr

The resulting type after applying the + operator

fn add(self, rhs: Var) -> LinExpr

The method for the + operator

impl<'a, 'b> Add<&'b Var> for &'a Var
[src]

type Output = LinExpr

The resulting type after applying the + operator

fn add(self, rhs: &Var) -> LinExpr

The method for the + operator

impl Sub for Var
[src]

/ Var - Var => LinExpr

type Output = LinExpr

The resulting type after applying the - operator

fn sub(self, rhs: Var) -> LinExpr

The method for the - operator

impl<'a> Sub<&'a Var> for Var
[src]

type Output = LinExpr

The resulting type after applying the - operator

fn sub(self, rhs: &Var) -> LinExpr

The method for the - operator

impl<'a> Sub<Var> for &'a Var
[src]

type Output = LinExpr

The resulting type after applying the - operator

fn sub(self, rhs: Var) -> LinExpr

The method for the - operator

impl<'a, 'b> Sub<&'b Var> for &'a Var
[src]

type Output = LinExpr

The resulting type after applying the - operator

fn sub(self, rhs: &Var) -> LinExpr

The method for the - operator

impl Neg for Var
[src]

type Output = LinExpr

The resulting type after applying the - operator

fn neg(self) -> LinExpr

The method for the unary - operator

impl<'a> Neg for &'a Var
[src]

type Output = LinExpr

The resulting type after applying the - operator

fn neg(self) -> LinExpr

The method for the unary - operator

impl Mul<f64> for Var
[src]

type Output = LinExpr

The resulting type after applying the * operator

fn mul(self, rhs: f64) -> Self::Output

The method for the * operator

impl<'a> Mul<f64> for &'a Var
[src]

type Output = LinExpr

The resulting type after applying the * operator

fn mul(self, rhs: f64) -> Self::Output

The method for the * operator

impl Mul for Var
[src]

type Output = QuadExpr

The resulting type after applying the * operator

fn mul(self, rhs: Var) -> Self::Output

The method for the * operator

impl<'a> Mul<&'a Var> for Var
[src]

type Output = QuadExpr

The resulting type after applying the * operator

fn mul(self, rhs: &Var) -> Self::Output

The method for the * operator

impl<'a> Mul<Var> for &'a Var
[src]

type Output = QuadExpr

The resulting type after applying the * operator

fn mul(self, rhs: Var) -> Self::Output

The method for the * operator

impl<'a, 'b> Mul<&'b Var> for &'a Var
[src]

type Output = QuadExpr

The resulting type after applying the * operator

fn mul(self, rhs: &Var) -> Self::Output

The method for the * operator

impl Add<LinExpr> for Var
[src]

type Output = LinExpr

The resulting type after applying the + operator

fn add(self, rhs: LinExpr) -> LinExpr

The method for the + operator

impl<'a> Add<LinExpr> for &'a Var
[src]

type Output = LinExpr

The resulting type after applying the + operator

fn add(self, rhs: LinExpr) -> LinExpr

The method for the + operator

impl Clone for Var
[src]

fn clone(&self) -> Var

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Var
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Deref for Var
[src]

type Target = Proxy

The resulting type after dereferencing

fn deref(&self) -> &Proxy

The method called to dereference a value

impl DerefMut for Var
[src]

fn deref_mut(&mut self) -> &mut Proxy

The method called to mutably dereference a value

impl PartialEq for Var
[src]

fn eq(&self, other: &Var) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.