#include <exprSub.hpp>
Inheritance diagram for exprSub:


Public Member Functions | |
| exprSub (expression **al, int n=2) | |
| Constructor. | |
| exprSub (expression *arg0, expression *arg1) | |
| Constructor with two explicit elements. | |
| expression * | clone (Domain *d=NULL) const |
| Cloning method. | |
| std::string | printOp () const |
| print operator | |
| CouNumber | operator() () |
| Function for the evaluation of the difference. | |
| expression * | differentiate (int index) |
| Differentiation. | |
| expression * | simplify () |
| Simplification. | |
| virtual int | Linearity () |
| Get a measure of "how linear" the expression is (see CouenneTypes.h). | |
| void | getBounds (expression *&, expression *&) |
| Get lower and upper bound of an expression (if any). | |
| void | getBounds (CouNumber &lb, CouNumber &ub) |
| Get value of lower and upper bound of an expression (if any). | |
| virtual exprAux * | standardize (CouenneProblem *p, bool addAux=true) |
| Reduce expression in standard form, creating additional aux variables (and constraints). | |
| virtual void | generateCuts (expression *, OsiCuts &, const CouenneCutGenerator *, t_chg_bounds *=NULL, int=-1, CouNumber=-COUENNE_INFINITY, CouNumber=COUENNE_INFINITY) |
| Special version for linear constraints. | |
| virtual enum expr_type | code () |
| Code for comparisons. | |
| bool | impliedBound (int, CouNumber *, CouNumber *, t_chg_bounds *) |
| Implied bound processing. | |
Definition at line 20 of file exprSub.hpp.
| exprSub::exprSub | ( | expression ** | al, | |
| int | n = 2 | |||
| ) | [inline] |
Constructor.
Definition at line 25 of file exprSub.hpp.
Referenced by clone(), differentiate(), and getBounds().
| exprSub::exprSub | ( | expression * | arg0, | |
| expression * | arg1 | |||
| ) | [inline] |
| expression* exprSub::clone | ( | Domain * | d = NULL |
) | const [inline, virtual] |
Cloning method.
Reimplemented from expression.
Definition at line 33 of file exprSub.hpp.
References exprOp::clonearglist(), exprSub(), and exprOp::nargs_.
| std::string exprSub::printOp | ( | ) | const [inline, virtual] |
| CouNumber exprSub::operator() | ( | ) | [inline, virtual] |
Function for the evaluation of the difference.
Implements expression.
Definition at line 86 of file exprSub.hpp.
References exprOp::arglist_.
| expression * exprSub::differentiate | ( | int | index | ) | [virtual] |
Differentiation.
Reimplemented from expression.
Definition at line 71 of file exprSub.cpp.
References exprOp::arglist_, expression::dependsOn(), exprSub(), and exprOp::nargs_.
| expression * exprSub::simplify | ( | ) | [virtual] |
Simplification.
Reimplemented from exprOp.
Definition at line 18 of file exprSub.cpp.
References exprOp::arglist_, exprOp::compare(), CONST, COUENNE_EPS_SIMPL, exprOp::simplify(), exprOp::Type(), and expression::Value().
| virtual int exprSub::Linearity | ( | ) | [inline, virtual] |
Get a measure of "how linear" the expression is (see CouenneTypes.h).
Reimplemented from exprOp.
Definition at line 50 of file exprSub.hpp.
References exprOp::arglist_.
| void exprSub::getBounds | ( | expression *& | , | |
| expression *& | ||||
| ) | [virtual] |
Get lower and upper bound of an expression (if any).
Reimplemented from expression.
Definition at line 85 of file exprSub.cpp.
References exprOp::arglist_, and exprSub().
Referenced by getBounds().
Get value of lower and upper bound of an expression (if any).
Reimplemented from expression.
Definition at line 99 of file exprSub.cpp.
References exprOp::arglist_, COUENNE_INFINITY, and getBounds().
| exprAux * exprSub::standardize | ( | CouenneProblem * | p, | |
| bool | addAux = true | |||
| ) | [virtual] |
Reduce expression in standard form, creating additional aux variables (and constraints).
1) an exprGroup, if only linear terms are present 2) an exprQuad, if some quadratic/bilinear terms exist
Reimplemented from exprOp.
Definition at line 122 of file sumStandardize.cpp.
References exprOp::arglist_.
| void exprSub::generateCuts | ( | expression * | , | |
| OsiCuts & | , | |||
| const CouenneCutGenerator * | , | |||
| t_chg_bounds * | = NULL, |
|||
| int | = -1, |
|||
| CouNumber | = -COUENNE_INFINITY, |
|||
| CouNumber | = COUENNE_INFINITY | |||
| ) | [virtual] |
Special version for linear constraints.
Reimplemented from expression.
Definition at line 17 of file conv-exprSub.cpp.
References exprOp::arglist_, expression::Index(), expression::Value(), w, and x.
| virtual enum expr_type exprSub::code | ( | ) | [inline, virtual] |
Code for comparisons.
Reimplemented from exprOp.
Definition at line 77 of file exprSub.hpp.
References COU_EXPRSUB.
| bool exprSub::impliedBound | ( | int | , | |
| CouNumber * | , | |||
| CouNumber * | , | |||
| t_chg_bounds * | ||||
| ) | [virtual] |
Implied bound processing.
Reimplemented from expression.
Definition at line 119 of file exprSub.cpp.
References exprOp::arglist_, t_chg_bounds::CHANGED, COUENNE_EPS, COUENNE_INFINITY, expression::Index(), exprOp::isInteger(), t_chg_bounds::setLower(), t_chg_bounds::setUpper(), updateBound(), and expression::Value().
1.4.7