Struct gurobi::LinExpr[][src]

pub struct LinExpr { /* fields omitted */ }

Linear expression of variables

A linear expression consists of a constant term plus a list of coefficients and variables.

Methods

impl LinExpr
[src]

Create an empty linear expression.

Add a linear term into the expression.

Add a constant into the expression.

Get actual value of the expression.

Trait Implementations

impl Debug for LinExpr
[src]

Formats the value using the given formatter. Read more

impl Clone for LinExpr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for LinExpr
[src]

Returns the "default value" for a type. Read more

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

Performs the conversion.

impl From<Var> for LinExpr
[src]

Performs the conversion.

impl From<f64> for LinExpr
[src]

Performs the conversion.

impl Into<(Vec<i32>, Vec<f64>, f64)> for LinExpr
[src]

Performs the conversion.

impl Into<QuadExpr> for LinExpr
[src]

Performs the conversion.

impl Sub<LinExpr> for Var
[src]

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

impl Add<LinExpr> for Var
[src]

LinExpr + Var => LinExpr

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

impl Add<Var> for LinExpr
[src]

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

impl Add<f64> for LinExpr
[src]

LinExpr + f64 => LinExpr

The resulting type after applying the + operator.

Performs the + operation.

impl Add<LinExpr> for f64
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<f64> for LinExpr
[src]

LinExpr - f64 => LinExpr

The resulting type after applying the - operator.

Performs the - operation.

impl Sub<LinExpr> for f64
[src]

f64 - LinExpr => LinExpr

The resulting type after applying the - operator.

Performs the - operation.

impl Add for LinExpr
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Neg for LinExpr
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl AddAssign for LinExpr
[src]

Performs the += operation.

impl AddAssign<Var> for LinExpr
[src]

Performs the += operation.

impl Sub for LinExpr
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Mul<f64> for LinExpr
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Div<f64> for LinExpr
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Mul<LinExpr> for f64
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Sum for LinExpr
[src]

Method which takes an iterator and generates Self from the elements by "summing up" the items. Read more

impl Add<LinExpr> for QuadExpr
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<LinExpr> for QuadExpr
[src]

The resulting type after applying the - operator.

Performs the - operation.

Auto Trait Implementations

impl !Send for LinExpr

impl !Sync for LinExpr