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


Public Types | |
| typedef std::vector< std::pair< exprVar *, CouNumber > > | lincoeff |
Public Member Functions | |
| exprGroup (CouNumber, lincoeff &, expression **=NULL, int=0) | |
| Constructor. | |
| exprGroup (const exprGroup &src, Domain *d=NULL) | |
| Copy constructor. | |
| virtual | ~exprGroup () |
| Destructor -- needed to clear bounds. | |
| virtual expression * | clone (Domain *d=NULL) const |
| Cloning method. | |
| CouNumber | getc0 () |
| return constant term | |
| lincoeff & | lcoeff () const |
| return linear term coefficients | |
| virtual void | print (std::ostream &=std::cout, bool=false) const |
| Print expression to iostream. | |
| virtual CouNumber | operator() () |
| function for the evaluation of the expression | |
| virtual CouNumber | gradientNorm (const double *x) |
| return l-2 norm of gradient at given point | |
| virtual int | DepList (std::set< int > &deplist, enum dig_type type=ORIG_ONLY) |
| fill in the set with all indices of variables appearing in the expression | |
| virtual expression * | differentiate (int index) |
| differentiation | |
| virtual expression * | simplify () |
| simplification | |
| virtual int | Linearity () |
| get a measure of "how linear" the expression is: | |
| virtual void | getBounds (expression *&, expression *&) |
| Get lower and upper bound of an expression (if any). | |
| virtual void | getBounds (CouNumber &, CouNumber &) |
| Get 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 int | compare (exprGroup &) |
| only compare with people of the same kind | |
| virtual enum expr_type | code () |
| code for comparisons | |
| virtual bool | isInteger () |
| is this expression integer? | |
| virtual int | rank () |
| used in rank-based branching variable choice | |
| virtual void | fillDepSet (std::set< DepNode *, compNode > *, DepGraph *) |
| update dependence set with index of this variable | |
| virtual void | replace (exprVar *x, exprVar *w) |
| replace variable x with new (aux) w | |
| virtual void | realign (const CouenneProblem *p) |
| redirect variables to proper variable vector | |
Static Public Member Functions | |
| static expression * | genExprGroup (CouNumber, lincoeff &, expression **=NULL, int=0) |
| Generalized (static) constructor: check parameters and return a constant, a single variable, or a real exprGroup. | |
Protected Attributes | |
| lincoeff | lcoeff_ |
| coefficients and indices of the linear term | |
| CouNumber | c0_ |
| constant term | |
Definition at line 23 of file exprGroup.hpp.
| typedef std::vector<std::pair <exprVar *, CouNumber> > exprGroup::lincoeff |
Definition at line 27 of file exprGroup.hpp.
| exprGroup::exprGroup | ( | CouNumber | , | |
| lincoeff & | , | |||
| expression ** | = NULL, |
|||
| int | = 0 | |||
| ) |
| virtual exprGroup::~exprGroup | ( | ) | [virtual] |
Destructor -- needed to clear bounds.
| static expression* exprGroup::genExprGroup | ( | CouNumber | , | |
| lincoeff & | , | |||
| expression ** | = NULL, |
|||
| int | = 0 | |||
| ) | [static] |
Generalized (static) constructor: check parameters and return a constant, a single variable, or a real exprGroup.
| virtual expression* exprGroup::clone | ( | Domain * | d = NULL |
) | const [inline, virtual] |
Cloning method.
Reimplemented from exprSum.
Reimplemented in exprQuad.
Definition at line 56 of file exprGroup.hpp.
References exprGroup().
| CouNumber exprGroup::getc0 | ( | ) | [inline] |
| lincoeff& exprGroup::lcoeff | ( | ) | const [inline] |
| virtual void exprGroup::print | ( | std::ostream & | = std::cout, |
|
| bool | = false | |||
| ) | const [virtual] |
| CouNumber exprGroup::operator() | ( | ) | [inline, virtual] |
function for the evaluation of the expression
Reimplemented from exprSum.
Reimplemented in exprQuad.
Definition at line 125 of file exprGroup.hpp.
References c0_, lcoeff_, and exprSum::operator()().
Referenced by exprQuad::operator()().
| virtual CouNumber exprGroup::gradientNorm | ( | const double * | x | ) | [virtual] |
return l-2 norm of gradient at given point
Reimplemented from expression.
Reimplemented in exprQuad.
| virtual int exprGroup::DepList | ( | std::set< int > & | deplist, | |
| enum dig_type | type = ORIG_ONLY | |||
| ) | [virtual] |
| virtual expression* exprGroup::differentiate | ( | int | index | ) | [virtual] |
| virtual expression* exprGroup::simplify | ( | ) | [virtual] |
| virtual int exprGroup::Linearity | ( | ) | [virtual] |
| virtual void exprGroup::getBounds | ( | expression *& | , | |
| expression *& | ||||
| ) | [virtual] |
| virtual void exprGroup::generateCuts | ( | expression * | , | |
| OsiCuts & | , | |||
| const CouenneCutGenerator * | , | |||
| t_chg_bounds * | = NULL, |
|||
| int | = -1, |
|||
| CouNumber | = -COUENNE_INFINITY, |
|||
| CouNumber | = COUENNE_INFINITY | |||
| ) | [virtual] |
| virtual int exprGroup::compare | ( | exprGroup & | ) | [virtual] |
only compare with people of the same kind
| virtual enum expr_type exprGroup::code | ( | ) | [inline, virtual] |
code for comparisons
Reimplemented from exprSum.
Reimplemented in exprQuad.
Definition at line 104 of file exprGroup.hpp.
References COU_EXPRGROUP.
| virtual bool exprGroup::isInteger | ( | ) | [virtual] |
| virtual int exprGroup::rank | ( | ) | [virtual] |
| virtual void exprGroup::realign | ( | const CouenneProblem * | p | ) | [virtual] |
lincoeff exprGroup::lcoeff_ [mutable, protected] |
coefficients and indices of the linear term
Definition at line 31 of file exprGroup.hpp.
Referenced by lcoeff(), exprQuad::Linearity(), and operator()().
CouNumber exprGroup::c0_ [protected] |
constant term
Definition at line 32 of file exprGroup.hpp.
Referenced by getc0(), exprQuad::Linearity(), and operator()().
1.4.7