Struct gurobi::Var [−][src]
pub struct Var(_);
Proxy object of a variables
Methods
impl Var
[src]
impl Var
Methods from Deref<Target = Proxy>
pub fn get<A: AttrArray>(&self, model: &Model, attr: A) -> Result<A::Out>
[src]
pub fn get<A: AttrArray>(&self, model: &Model, attr: A) -> Result<A::Out>
Query the value of attribute.
pub fn set<A: AttrArray>(
&self,
model: &mut Model,
attr: A,
val: A::Out
) -> Result<()>
[src]
pub fn set<A: AttrArray>(
&self,
model: &mut Model,
attr: A,
val: A::Out
) -> Result<()>
Set the value of attribute.
pub fn remove(&mut self)
[src]
pub fn remove(&mut self)
Trait Implementations
impl<'a> From<&'a Var> for LinExpr
[src]
impl<'a> From<&'a Var> for LinExpr
impl From<Var> for LinExpr
[src]
impl From<Var> for LinExpr
impl Into<QuadExpr> for Var
[src]
impl Into<QuadExpr> for Var
impl<'a> Into<QuadExpr> for &'a Var
[src]
impl<'a> Into<QuadExpr> for &'a Var
impl Add for Var
[src]
impl Add for Var
Var
+ Var
=> LinExpr
type Output = LinExpr
The resulting type after applying the +
operator.
fn add(self, rhs: Var) -> LinExpr
[src]
fn add(self, rhs: Var) -> LinExpr
Performs the +
operation.
impl<'a> Add<&'a Var> for Var
[src]
impl<'a> Add<&'a Var> for Var
type Output = LinExpr
The resulting type after applying the +
operator.
fn add(self, rhs: &Var) -> LinExpr
[src]
fn add(self, rhs: &Var) -> LinExpr
Performs the +
operation.
impl<'a> Add<Var> for &'a Var
[src]
impl<'a> Add<Var> for &'a Var
type Output = LinExpr
The resulting type after applying the +
operator.
fn add(self, rhs: Var) -> LinExpr
[src]
fn add(self, rhs: Var) -> LinExpr
Performs the +
operation.
impl<'a, 'b> Add<&'b Var> for &'a Var
[src]
impl<'a, 'b> Add<&'b Var> for &'a Var
type Output = LinExpr
The resulting type after applying the +
operator.
fn add(self, rhs: &Var) -> LinExpr
[src]
fn add(self, rhs: &Var) -> LinExpr
Performs the +
operation.
impl Add<f64> for Var
[src]
impl Add<f64> for Var
type Output = LinExpr
The resulting type after applying the +
operator.
fn add(self, rhs: f64) -> LinExpr
[src]
fn add(self, rhs: f64) -> LinExpr
Performs the +
operation.
impl<'a> Add<f64> for &'a Var
[src]
impl<'a> Add<f64> for &'a Var
type Output = LinExpr
The resulting type after applying the +
operator.
fn add(self, rhs: f64) -> LinExpr
[src]
fn add(self, rhs: f64) -> LinExpr
Performs the +
operation.
impl Sub for Var
[src]
impl Sub for Var
Var
- Var
=> LinExpr
type Output = LinExpr
The resulting type after applying the -
operator.
fn sub(self, rhs: Var) -> LinExpr
[src]
fn sub(self, rhs: Var) -> LinExpr
Performs the -
operation.
impl<'a> Sub<&'a Var> for Var
[src]
impl<'a> Sub<&'a Var> for Var
type Output = LinExpr
The resulting type after applying the -
operator.
fn sub(self, rhs: &Var) -> LinExpr
[src]
fn sub(self, rhs: &Var) -> LinExpr
Performs the -
operation.
impl<'a> Sub<Var> for &'a Var
[src]
impl<'a> Sub<Var> for &'a Var
type Output = LinExpr
The resulting type after applying the -
operator.
fn sub(self, rhs: Var) -> LinExpr
[src]
fn sub(self, rhs: Var) -> LinExpr
Performs the -
operation.
impl<'a, 'b> Sub<&'b Var> for &'a Var
[src]
impl<'a, 'b> Sub<&'b Var> for &'a Var
type Output = LinExpr
The resulting type after applying the -
operator.
fn sub(self, rhs: &Var) -> LinExpr
[src]
fn sub(self, rhs: &Var) -> LinExpr
Performs the -
operation.
impl Sub<LinExpr> for Var
[src]
impl Sub<LinExpr> for Var
type Output = LinExpr
The resulting type after applying the -
operator.
fn sub(self, expr: LinExpr) -> LinExpr
[src]
fn sub(self, expr: LinExpr) -> LinExpr
Performs the -
operation.
impl<'a> Sub<LinExpr> for &'a Var
[src]
impl<'a> Sub<LinExpr> for &'a Var
type Output = LinExpr
The resulting type after applying the -
operator.
fn sub(self, expr: LinExpr) -> LinExpr
[src]
fn sub(self, expr: LinExpr) -> LinExpr
Performs the -
operation.
impl Sub<Var> for f64
[src]
impl Sub<Var> for f64
type Output = LinExpr
The resulting type after applying the -
operator.
fn sub(self, rhs: Var) -> LinExpr
[src]
fn sub(self, rhs: Var) -> LinExpr
Performs the -
operation.
impl<'a> Sub<&'a Var> for f64
[src]
impl<'a> Sub<&'a Var> for f64
type Output = LinExpr
The resulting type after applying the -
operator.
fn sub(self, rhs: &Var) -> LinExpr
[src]
fn sub(self, rhs: &Var) -> LinExpr
Performs the -
operation.
impl Neg for Var
[src]
impl Neg for Var
-Var
=> LinExpr
type Output = LinExpr
The resulting type after applying the -
operator.
fn neg(self) -> LinExpr
[src]
fn neg(self) -> LinExpr
Performs the unary -
operation.
impl<'a> Neg for &'a Var
[src]
impl<'a> Neg for &'a Var
type Output = LinExpr
The resulting type after applying the -
operator.
fn neg(self) -> LinExpr
[src]
fn neg(self) -> LinExpr
Performs the unary -
operation.
impl Mul<f64> for Var
[src]
impl Mul<f64> for Var
Var
* f64
=> LinExpr
type Output = LinExpr
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Self::Output
[src]
fn mul(self, rhs: f64) -> Self::Output
Performs the *
operation.
impl<'a> Mul<f64> for &'a Var
[src]
impl<'a> Mul<f64> for &'a Var
type Output = LinExpr
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Self::Output
[src]
fn mul(self, rhs: f64) -> Self::Output
Performs the *
operation.
impl Mul<Var> for f64
[src]
impl Mul<Var> for f64
type Output = LinExpr
The resulting type after applying the *
operator.
fn mul(self, rhs: Var) -> Self::Output
[src]
fn mul(self, rhs: Var) -> Self::Output
Performs the *
operation.
impl<'a> Mul<&'a Var> for f64
[src]
impl<'a> Mul<&'a Var> for f64
type Output = LinExpr
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Var) -> Self::Output
[src]
fn mul(self, rhs: &'a Var) -> Self::Output
Performs the *
operation.
impl Mul for Var
[src]
impl Mul for Var
Var
* Var
=> QuadExpr
type Output = QuadExpr
The resulting type after applying the *
operator.
fn mul(self, rhs: Var) -> Self::Output
[src]
fn mul(self, rhs: Var) -> Self::Output
Performs the *
operation.
impl<'a> Mul<&'a Var> for Var
[src]
impl<'a> Mul<&'a Var> for Var
type Output = QuadExpr
The resulting type after applying the *
operator.
fn mul(self, rhs: &Var) -> Self::Output
[src]
fn mul(self, rhs: &Var) -> Self::Output
Performs the *
operation.
impl<'a> Mul<Var> for &'a Var
[src]
impl<'a> Mul<Var> for &'a Var
type Output = QuadExpr
The resulting type after applying the *
operator.
fn mul(self, rhs: Var) -> Self::Output
[src]
fn mul(self, rhs: Var) -> Self::Output
Performs the *
operation.
impl<'a, 'b> Mul<&'b Var> for &'a Var
[src]
impl<'a, 'b> Mul<&'b Var> for &'a Var
type Output = QuadExpr
The resulting type after applying the *
operator.
fn mul(self, rhs: &Var) -> Self::Output
[src]
fn mul(self, rhs: &Var) -> Self::Output
Performs the *
operation.
impl Add<LinExpr> for Var
[src]
impl Add<LinExpr> for Var
LinExpr
+ Var
=> LinExpr
type Output = LinExpr
The resulting type after applying the +
operator.
fn add(self, rhs: LinExpr) -> LinExpr
[src]
fn add(self, rhs: LinExpr) -> LinExpr
Performs the +
operation.
impl<'a> Add<LinExpr> for &'a Var
[src]
impl<'a> Add<LinExpr> for &'a Var
type Output = LinExpr
The resulting type after applying the +
operator.
fn add(self, rhs: LinExpr) -> LinExpr
[src]
fn add(self, rhs: LinExpr) -> LinExpr
Performs the +
operation.
impl Add<Var> for LinExpr
[src]
impl Add<Var> for LinExpr
type Output = LinExpr
The resulting type after applying the +
operator.
fn add(self, rhs: Var) -> LinExpr
[src]
fn add(self, rhs: Var) -> LinExpr
Performs the +
operation.
impl<'a> Add<&'a Var> for LinExpr
[src]
impl<'a> Add<&'a Var> for LinExpr
type Output = LinExpr
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Var) -> LinExpr
[src]
fn add(self, rhs: &'a Var) -> LinExpr
Performs the +
operation.
impl AddAssign<Var> for LinExpr
[src]
impl AddAssign<Var> for LinExpr
fn add_assign(&mut self, rhs: Var)
[src]
fn add_assign(&mut self, rhs: Var)
Performs the +=
operation.
impl Debug for Var
[src]
impl Debug for Var
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Var
[src]
impl Clone for Var
fn clone(&self) -> Var
[src]
fn clone(&self) -> Var
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Deref for Var
[src]
impl Deref for Var
type Target = Proxy
The resulting type after dereferencing.
fn deref(&self) -> &Proxy
[src]
fn deref(&self) -> &Proxy
Dereferences the value.
impl DerefMut for Var
[src]
impl DerefMut for Var
impl PartialEq for Var
[src]
impl PartialEq for Var