#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] |
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] |
expression* exprSub::simplify | ( | ) | [virtual] |
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] |
virtual exprAux* exprSub::standardize | ( | CouenneProblem * | p, | |
bool | addAux = true | |||
) | [virtual] |
Reduce expression in standard form, creating additional aux variables (and constraints).
Reimplemented from exprOp.
virtual void exprSub::generateCuts | ( | expression * | , | |
OsiCuts & | , | |||
const CouenneCutGenerator * | , | |||
t_chg_bounds * | = NULL , |
|||
int | = -1 , |
|||
CouNumber | = -COUENNE_INFINITY , |
|||
CouNumber | = COUENNE_INFINITY | |||
) | [virtual] |
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] |