Reference
C++
Python
DotNET
Java Documentation
C++ Reference: Linear solver
linear_expr.h
Go to the documentation of this file.
double lower_bound() const
Definition: linear_expr.h:205
LinearExpr operator+(LinearExpr lhs, const LinearExpr &rhs)
LinearExpr operator *(LinearExpr lhs, double rhs)
LinearRange operator<=(const LinearExpr &lhs, const LinearExpr &rhs)
std::string ToString() const
A human readable representation of this.
LinearExpr & operator *=(double rhs)
LinearExpr & operator+=(const LinearExpr &rhs)
const LinearExpr & linear_expr() const
Definition: linear_expr.h:206
LinearRange operator==(const LinearExpr &lhs, const LinearExpr &rhs)
double upper_bound() const
Definition: linear_expr.h:207
std::ostream & operator<<(std::ostream &stream, const LinearExpr &linear_expr)
const absl::flat_hash_map< const MPVariable *, double > & terms() const
Definition: linear_expr.h:143
LinearExpr models a quantity that is linear in the decision variables (MPVariable) of an optimization...
Definition: linear_expr.h:114
double SolutionValue() const
Evaluates the value of this expression at the solution found.
LinearExpr()
LinearRange operator>=(const LinearExpr &lhs, const LinearExpr &rhs)
LinearExpr & operator-=(const LinearExpr &rhs)
LinearExpr operator-(LinearExpr lhs, const LinearExpr &rhs)
LinearExpr operator-() const
Definition: linear_expr.h:84
The class for variables of a Mathematical Programming (MP) model.
Definition: linear_solver.h:1000
LinearExpr & operator/=(double rhs)
LinearExpr operator/(LinearExpr lhs, double rhs)