|
|
ConstantExpression (double value) |
|
Create a constant expression.
|
|
virtual auto |
div (double arg) const -> xpress::objects::Expression override |
|
Create a expression that represents the quotient of this and arg .
-
Parameters
-
-
Returns
-
Quotient of
this and
arg .
-
Since
-
44.00
|
|
auto |
div (xpress::objects::ConstantExpression arg) const -> xpress::objects::ConstantExpression |
|
Create a expression that represents the quotient of this and arg .
|
|
virtual auto |
div (xpress::objects::Expression arg) const -> xpress::objects::Expression override |
|
Create a expression that represents the quotient of this and arg .
-
Parameters
-
-
Returns
-
Quotient of
this and
arg .
-
Since
-
44.00
|
|
virtual auto |
evaluate (xpress::SizedArray< double const > const &solution) const -> double override |
|
Compute the value of this expression with respect to the given solution vector (which is not required to be feasible).
-
Parameters
-
solution |
Solution values for which the expression is evaluated. |
-
Returns
-
The value of this expression evaluated at
solution .
-
Since
-
44.00
|
|
auto |
getValue () const -> double |
|
The constant value represented by this class [get].
|
|
virtual auto |
minus (double arg) const -> xpress::objects::Expression override |
|
Create a expression that represents the difference of this and arg .
-
Parameters
-
-
Returns
-
Difference of
this and
arg .
-
Since
-
44.00
|
|
auto |
minus (xpress::objects::ConstantExpression arg) const -> xpress::objects::ConstantExpression |
|
Create a expression that represents the difference of this and arg .
|
|
virtual auto |
minus (xpress::objects::Expression arg) const -> xpress::objects::Expression override |
|
Create a expression that represents the difference of this and arg .
-
Parameters
-
-
Returns
-
Difference of
this and
arg .
-
Since
-
44.00
|
|
virtual auto |
mul (double arg) const -> xpress::objects::Expression override |
|
Create a expression that represents the product of this and arg .
-
Parameters
-
-
Returns
-
Product of
this and
arg .
-
Since
-
44.00
|
|
auto |
mul (xpress::objects::ConstantExpression arg) const -> xpress::objects::ConstantExpression |
|
Create a expression that represents the product of this and arg .
|
|
virtual auto |
mul (xpress::objects::Expression arg) const -> xpress::objects::Expression override |
|
Create a expression that represents the product of this and arg .
-
Parameters
-
-
Returns
-
Product of
this and
arg .
-
Since
-
44.00
|
|
auto |
mul (xpress::objects::LinTerm arg) const -> xpress::objects::LinTerm |
|
Create a expression that represents the product of this and arg .
|
|
auto |
mul (xpress::objects::QuadTerm arg) const -> xpress::objects::QuadTerm |
|
Create a expression that represents the product of this and arg .
|
|
auto |
mul (xpress::objects::Variable arg) const -> xpress::objects::LinTerm |
|
Create a expression that represents the product of this and arg .
|
|
virtual auto |
plus (double arg) const -> xpress::objects::Expression override |
|
Create a expression that represents the sum of this and arg .
-
Parameters
-
-
Returns
-
Sum of
this and
arg .
-
Since
-
44.00
|
|
auto |
plus (xpress::objects::ConstantExpression arg) const -> xpress::objects::ConstantExpression |
|
Create a expression that represents the sum of this and arg .
|
|
virtual auto |
plus (xpress::objects::Expression arg) const -> xpress::objects::Expression override |
|
Create a expression that represents the sum of this and arg .
-
Parameters
-
-
Returns
-
Sum of
this and
arg .
-
Since
-
44.00
|
|
virtual auto |
toString () const -> std::string override |
|
Get a string representation of this expression.
-
Returns
-
A string representing this expression.
-
Since
-
44.00
|
|
virtual auto |
uminus () const -> xpress::objects::Expression override |
|
Create a expression that represents the unary minus of this one.
-
Returns
-
Expression representing
-this .
-
Since
-
44.00
|
|
virtual auto |
eq (double rhs) const -> xpress::objects::InequalityDefinition override |
|
Create an "equals" constraint with this expression as left-hand side.
-
Parameters
-
rhs |
Right-hand side of constraint. |
-
Returns
-
The constraint.
-
Since
-
44.00
|
|
virtual auto |
eq (Expression const &rhs) const -> xpress::objects::InequalityDefinition override |
|
Create an "equals" constraint with this expression as left-hand side.
-
Parameters
-
rhs |
Right-hand side of constraint. |
-
Returns
-
The constraint.
-
Since
-
44.00
|
|
virtual auto |
geq (double rhs) const -> xpress::objects::InequalityDefinition override |
|
Create a "greater than or equal" constraint with this expression as left-hand side.
-
Parameters
-
rhs |
Right-hand side of constraint. |
-
Returns
-
The constraint.
-
Since
-
44.00
|
|
virtual auto |
geq (Expression const &rhs) const -> xpress::objects::InequalityDefinition override |
|
Create a "greater than or equal" constraint with this expression as left-hand side.
-
Parameters
-
rhs |
Right-hand side of constraint. |
-
Returns
-
The constraint.
-
Since
-
44.00
|
|
virtual auto |
in (double lb, double ub) -> xpress::objects::InequalityDefinition override |
|
Create a range constraint that bounds this expression from below and above.
-
Parameters
-
lb |
Lower bound for this expression. |
ub |
Upper bound for this expression. |
-
Returns
-
The constraint.
-
Since
-
44.00
|
|
virtual auto |
leq (double rhs) const -> xpress::objects::InequalityDefinition override |
|
Create a "less than or equal" constraint with this expression as left-hand side.
-
Parameters
-
rhs |
Right-hand side of constraint. |
-
Returns
-
The constraint.
-
Since
-
44.00
|
|
virtual auto |
leq (Expression const &rhs) const -> xpress::objects::InequalityDefinition override |
|
Create a "less than or equal" constraint with this expression as left-hand side.
-
Parameters
-
rhs |
Right-hand side of constraint. |
-
Returns
-
The constraint.
-
Since
-
44.00
|
|