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