#include <exprDiv.hpp>
Inheritance diagram for exprDiv:
Public Member Functions | |
exprDiv (expression **al, int n=2) | |
Constructor. | |
exprDiv (expression *arg0, expression *arg1) | |
Constructor with two arguments given explicitly. | |
expression * | clone (Domain *d=NULL) const |
Cloning method. | |
std::string | printOp () const |
Print operator. | |
CouNumber | operator() () |
Function for the evaluation of the expression. | |
CouNumber | gradientNorm (const double *x) |
return l-2 norm of gradient at given point | |
expression * | differentiate (int index) |
Differentiation. | |
expression * | simplify () |
Simplification. | |
int | Linearity () |
Get a measure of "how linear" the expression is (see CouenneTypes.h). | |
void | getBounds (expression *&lb, expression *&ub) |
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). | |
exprAux * | standardize (CouenneProblem *p, bool addAux=true) |
Reduce expression in standard form, creating additional aux variables (and constraints). | |
void | generateCuts (expression *w, const OsiSolverInterface &si, OsiCuts &cs, const CouenneCutGenerator *cg, t_chg_bounds *=NULL, int=-1, CouNumber=-COUENNE_INFINITY, CouNumber=COUENNE_INFINITY) |
Generate equality between *this and *w. | |
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. | |
virtual CouNumber | selectBranch (const CouenneObject *obj, const OsiBranchingInformation *info, expression *&var, double *&brpts, double *&brDist, int &way) |
Set up branching object by evaluating many branching points for each expression's arguments. | |
virtual void | closestFeasible (expression *varind, expression *vardep, CouNumber &left, CouNumber &right) const |
compute $y^{lv}$ and $y^{uv}$ for Violation Transfer algorithm | |
virtual bool | isCuttable (CouenneProblem *problem, int index) const |
can this expression be further linearized or are we on its concave ("bad") side |
Definition at line 23 of file exprDiv.hpp.
exprDiv::exprDiv | ( | expression ** | al, | |
int | n = 2 | |||
) | [inline] |
exprDiv::exprDiv | ( | expression * | arg0, | |
expression * | arg1 | |||
) | [inline] |
expression* exprDiv::clone | ( | Domain * | d = NULL |
) | const [inline, virtual] |
Cloning method.
Reimplemented from expression.
Definition at line 36 of file exprDiv.hpp.
References exprOp::clonearglist(), exprDiv(), and exprOp::nargs_.
std::string exprDiv::printOp | ( | ) | const [inline, virtual] |
CouNumber exprDiv::operator() | ( | ) | [inline, virtual] |
Function for the evaluation of the expression.
Implements expression.
Definition at line 114 of file exprDiv.hpp.
References exprOp::arglist_.
CouNumber exprDiv::gradientNorm | ( | const double * | x | ) | [virtual] |
expression* exprDiv::differentiate | ( | int | index | ) | [virtual] |
expression* exprDiv::simplify | ( | ) | [virtual] |
int exprDiv::Linearity | ( | ) | [inline, virtual] |
Get a measure of "how linear" the expression is (see CouenneTypes.h).
Reimplemented from exprOp.
Definition at line 56 of file exprDiv.hpp.
References exprOp::arglist_, CONST, NONLINEAR, and exprOp::Type().
void exprDiv::getBounds | ( | expression *& | lb, | |
expression *& | ub | |||
) | [virtual] |
exprAux* exprDiv::standardize | ( | CouenneProblem * | p, | |
bool | addAux = true | |||
) | [virtual] |
Reduce expression in standard form, creating additional aux variables (and constraints).
Reimplemented from exprOp.
void exprDiv::generateCuts | ( | expression * | w, | |
const OsiSolverInterface & | si, | |||
OsiCuts & | cs, | |||
const CouenneCutGenerator * | cg, | |||
t_chg_bounds * | = NULL , |
|||
int | = -1 , |
|||
CouNumber | = -COUENNE_INFINITY , |
|||
CouNumber | = COUENNE_INFINITY | |||
) | [virtual] |
virtual enum expr_type exprDiv::code | ( | ) | [inline, virtual] |
Code for comparisons.
Reimplemented from exprOp.
Definition at line 81 of file exprDiv.hpp.
References COU_EXPRDIV.
bool exprDiv::isInteger | ( | ) | [virtual] |
bool exprDiv::impliedBound | ( | int | , | |
CouNumber * | , | |||
CouNumber * | , | |||
t_chg_bounds * | ||||
) | [virtual] |
virtual CouNumber exprDiv::selectBranch | ( | const CouenneObject * | obj, | |
const OsiBranchingInformation * | info, | |||
expression *& | var, | |||
double *& | brpts, | |||
double *& | brDist, | |||
int & | way | |||
) | [virtual] |
Set up branching object by evaluating many branching points for each expression's arguments.
Reimplemented from expression.
virtual void exprDiv::closestFeasible | ( | expression * | varind, | |
expression * | vardep, | |||
CouNumber & | left, | |||
CouNumber & | right | |||
) | const [virtual] |
virtual bool exprDiv::isCuttable | ( | CouenneProblem * | problem, | |
int | index | |||
) | const [inline, virtual] |
can this expression be further linearized or are we on its concave ("bad") side
Reimplemented from expression.
Definition at line 107 of file exprDiv.hpp.