Struct gurobi::Var
[−]
[src]
pub struct Var(_);
Proxy object of a variables
Methods
impl Var
[src]
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]
impl<'a> Into<QuadExpr> for &'a Var
[src]
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]
impl Deref for Var
[src]
type Target = Proxy
The resulting type after dereferencing
fn deref(&self) -> &Proxy
The method called to dereference a value