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


Public Member Functions | |
| exprOpp (expression *al) | |
| Constructors, destructor. | |
| expression * | clone (Domain *d=NULL) const |
| cloning method | |
| unary_function | F () |
| the operator's function | |
| void | print (std::ostream &out, bool descend) const |
| Output. | |
| CouNumber | gradientNorm (const double *x) |
| return l-2 norm of gradient at given point | |
| expression * | differentiate (int index) |
| differentiation | |
| virtual expression * | simplify () |
| simplification | |
| 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 &, CouNumber &) |
| Get value of lower and upper bound of an expression (if any). | |
| 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 | isInteger () |
| is this expression integer? | |
| bool | impliedBound (int, CouNumber *, CouNumber *, t_chg_bounds *) |
| implied bound processing | |
| exprAux * | standardize (CouenneProblem *, bool addAux=true) |
| standardization (to deal with complex arguments) | |
Definition at line 26 of file exprOpp.hpp.
| exprOpp::exprOpp | ( | expression * | al | ) | [inline] |
Constructors, destructor.
Definition at line 31 of file exprOpp.hpp.
Referenced by clone(), differentiate(), and getBounds().
| expression* exprOpp::clone | ( | Domain * | d = NULL |
) | const [inline, virtual] |
cloning method
Reimplemented from expression.
Definition at line 35 of file exprOpp.hpp.
References exprUnary::argument_, and exprOpp().
Referenced by simplify().
| unary_function exprOpp::F | ( | ) | [inline, virtual] |
the operator's function
Reimplemented from exprUnary.
Definition at line 39 of file exprOpp.hpp.
References opp().
| void exprOpp::print | ( | std::ostream & | out, | |
| bool | descend | |||
| ) | const [virtual] |
Output.
Reimplemented from exprUnary.
Definition at line 90 of file exprOpp.cpp.
References exprUnary::argument_.
| CouNumber exprOpp::gradientNorm | ( | const double * | x | ) | [inline, virtual] |
return l-2 norm of gradient at given point
Reimplemented from expression.
Definition at line 47 of file exprOpp.hpp.
References exprUnary::argument_, and expression::Index().
| expression * exprOpp::differentiate | ( | int | index | ) | [inline, virtual] |
differentiation
Reimplemented from expression.
Definition at line 38 of file exprOpp.cpp.
References exprUnary::argument_, and exprOpp().
| expression * exprOpp::simplify | ( | ) | [virtual] |
simplification
Reimplemented from exprUnary.
Definition at line 68 of file exprOpp.cpp.
References exprUnary::Argument(), exprUnary::argument_, clone(), code(), CONST, COU_EXPROPP, exprUnary::simplify(), exprUnary::Type(), and expression::Value().
| int exprOpp::Linearity | ( | ) | [inline, virtual] |
get a measure of "how linear" the expression is (see CouenneTypes.h)
Reimplemented from exprUnary.
Definition at line 57 of file exprOpp.hpp.
References exprUnary::argument_.
| void exprOpp::getBounds | ( | expression *& | , | |
| expression *& | ||||
| ) | [virtual] |
Get lower and upper bound of an expression (if any).
Reimplemented from expression.
Definition at line 16 of file exprOpp.cpp.
References exprUnary::argument_, and exprOpp().
Referenced by getBounds().
Get value of lower and upper bound of an expression (if any).
Reimplemented from expression.
Definition at line 27 of file exprOpp.cpp.
References exprUnary::argument_, and getBounds().
| void exprOpp::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 20 of file conv-exprOpp.cpp.
References exprUnary::argument_, expression::Index(), and w.
| virtual enum expr_type exprOpp::code | ( | ) | [inline, virtual] |
code for comparisons
Reimplemented from exprUnary.
Definition at line 74 of file exprOpp.hpp.
References COU_EXPROPP.
Referenced by simplify().
| bool exprOpp::isInteger | ( | ) | [inline, virtual] |
is this expression integer?
Reimplemented from exprUnary.
Definition at line 78 of file exprOpp.hpp.
References exprUnary::argument_.
Referenced by impliedBound().
| bool exprOpp::impliedBound | ( | int | , | |
| CouNumber * | , | |||
| CouNumber * | , | |||
| t_chg_bounds * | ||||
| ) | [virtual] |
implied bound processing
Reimplemented from expression.
Definition at line 44 of file exprOpp.cpp.
References exprUnary::argument_, t_chg_bounds::CHANGED, COUENNE_EPS, expression::Index(), isInteger(), t_chg_bounds::setLower(), t_chg_bounds::setUpper(), and updateBound().
| exprAux * exprOpp::standardize | ( | CouenneProblem * | p, | |
| bool | addAux = true | |||
| ) | [virtual] |
standardization (to deal with complex arguments)
1) an exprGroup, if only linear terms are present 2) an exprQuad, if some quadratic/bilinear terms exist
Reimplemented from exprUnary.
Definition at line 101 of file sumStandardize.cpp.
References exprUnary::argument_.
1.4.7