Struct gurobi::LinExpr [] [src]

pub struct LinExpr {
    // some 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 Clone for LinExpr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Into<QuadExpr> for LinExpr
[src]

Performs the conversion.

impl Add<f64> for LinExpr
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<f64> for LinExpr
[src]

The resulting type after applying the - operator

The method for the - operator

impl Add for LinExpr
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub for LinExpr
[src]

The resulting type after applying the - operator

The method for the - operator

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

The resulting type after applying the + operator

The method for the + operator