Struct gurobi::model::QuadExpr
[−]
[src]
pub struct QuadExpr {
// some fields omitted
}represents a set of quadratic expressions of decision variables.
Methods
impl QuadExpr[src]
fn new() -> Self
fn term(self, var: Var, coeff: f64) -> Self
fn qterm(self, row: Var, col: Var, coeff: 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 QuadExpr[src]
fn clone(&self) -> QuadExpr
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 Mul<f64> for QuadExpr[src]
type Output = QuadExpr
The resulting type after applying the * operator
fn mul(self, rhs: f64) -> Self::Output
The method for the * operator
impl Add<LinExpr> for QuadExpr[src]
type Output = QuadExpr
The resulting type after applying the + operator
fn add(self, rhs: LinExpr) -> Self::Output
The method for the + operator
impl Sub<LinExpr> for QuadExpr[src]
type Output = QuadExpr
The resulting type after applying the - operator
fn sub(self, rhs: LinExpr) -> Self::Output
The method for the - operator
impl Add for QuadExpr[src]
type Output = QuadExpr
The resulting type after applying the + operator
fn add(self, rhs: QuadExpr) -> QuadExpr
The method for the + operator