Struct gurobi::model::LinExpr [] [src]

pub struct LinExpr {
    // some fields omitted
}

represents a set of linear expressions of decision variables.

Methods

impl LinExpr
[src]

fn new() -> Self

fn term(self, v: Var, c: f64) -> Self

fn offset(self, offset: f64) -> Self

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

Get actual value of the expression.

Trait Implementations

impl Clone for LinExpr
[src]

fn clone(&self) -> LinExpr

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 Into<QuadExpr> for LinExpr
[src]

fn into(self) -> QuadExpr

Performs the conversion.

impl Add<f64> for LinExpr
[src]

type Output = LinExpr

The resulting type after applying the + operator

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

The method for the + operator

impl Sub<f64> for LinExpr
[src]

type Output = LinExpr

The resulting type after applying the - operator

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

The method for the - operator

impl Add for LinExpr
[src]

type Output = LinExpr

The resulting type after applying the + operator

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

The method for the + operator

impl Sub for LinExpr
[src]

type Output = LinExpr

The resulting type after applying the - operator

fn sub(self, rhs: LinExpr) -> Self::Output

The method for the - operator

impl Add<Var> for LinExpr
[src]

type Output = LinExpr

The resulting type after applying the + operator

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

The method for the + operator