class logarithm,
More...
#include <CouenneExprLog.hpp>


Public Member Functions | |
| exprLog (expression *al) | |
| Constructors, destructor. | |
| expression * | clone (Domain *d=NULL) const |
| cloning method | |
| unary_function | F () |
| the operator's function | |
| std::string | printOp () const |
| print operator | |
| CouNumber | gradientNorm (const double *x) |
| return l-2 norm of gradient at given point | |
| expression * | differentiate (int index) |
| differentiation | |
| 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). | |
| void | generateCuts (expression *w, 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 | impliedBound (int, CouNumber *, CouNumber *, t_chg_bounds *, enum auxSign=expression::AUX_EQ) |
| 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 bool | isBijective () const |
| return true if feasible | |
| virtual CouNumber | inverse (expression *vardep) const |
| inverse of this operator | |
| virtual bool | isCuttable (CouenneProblem *problem, int index) const |
| can this expression be further linearized or are we on its concave ("bad") side | |
class logarithm,
Definition at line 21 of file CouenneExprLog.hpp.
| Couenne::exprLog::exprLog | ( | expression * | al | ) | [inline] |
Constructors, destructor.
Definition at line 26 of file CouenneExprLog.hpp.
| expression* Couenne::exprLog::clone | ( | Domain * | d = NULL |
) | const [inline, virtual] |
cloning method
Reimplemented from Couenne::expression.
Definition at line 30 of file CouenneExprLog.hpp.
| unary_function Couenne::exprLog::F | ( | ) | [inline, virtual] |
the operator's function
Reimplemented from Couenne::exprUnary.
Definition at line 34 of file CouenneExprLog.hpp.
| std::string Couenne::exprLog::printOp | ( | ) | const [inline, virtual] |
print operator
Reimplemented from Couenne::exprUnary.
Definition at line 37 of file CouenneExprLog.hpp.
| CouNumber exprLog::gradientNorm | ( | const double * | x | ) | [virtual] |
return l-2 norm of gradient at given point
Reimplemented from Couenne::expression.
Definition at line 105 of file exprLog.cpp.
| expression * exprLog::differentiate | ( | int | index | ) | [virtual] |
| void exprLog::getBounds | ( | expression *& | lb, | |
| expression *& | ub | |||
| ) |
Get lower and upper bound of an expression (if any).
get bounds of log (x) based on bounds of x
Definition at line 28 of file exprLog.cpp.
Get value of lower and upper bound of an expression (if any).
get bounds of log (x) based on bounds of x
Reimplemented from Couenne::expression.
Definition at line 59 of file exprLog.cpp.
| void exprLog::generateCuts | ( | expression * | w, | |
| OsiCuts & | cs, | |||
| const CouenneCutGenerator * | cg, | |||
| t_chg_bounds * | chg = NULL, |
|||
| int | wind = -1, |
|||
| CouNumber | lbw = -COUENNE_INFINITY, |
|||
| CouNumber | ubw = COUENNE_INFINITY | |||
| ) |
generate equality between *this and *w
Definition at line 27 of file conv-exprLog.cpp.
| virtual enum expr_type Couenne::exprLog::code | ( | ) | [inline, virtual] |
code for comparisons
Reimplemented from Couenne::exprUnary.
Definition at line 60 of file CouenneExprLog.hpp.
| bool exprLog::impliedBound | ( | int | wind, | |
| CouNumber * | l, | |||
| CouNumber * | u, | |||
| t_chg_bounds * | chg, | |||
| enum auxSign | sign = expression::AUX_EQ | |||
| ) | [virtual] |
implied bound processing
implied bound processing for expression w = log(x), upon change in lower- and/or upper bound of w, whose index is wind
Reimplemented from Couenne::expression.
Definition at line 78 of file exprLog.cpp.
| CouNumber exprLog::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
Definition at line 25 of file branchExprLog.cpp.
| virtual bool Couenne::exprLog::isBijective | ( | ) | const [inline, virtual] |
return true if feasible
Reimplemented from Couenne::expression.
Definition at line 77 of file CouenneExprLog.hpp.
| virtual CouNumber Couenne::exprLog::inverse | ( | expression * | vardep | ) | const [inline, virtual] |
inverse of this operator
Definition at line 80 of file CouenneExprLog.hpp.
| bool exprLog::isCuttable | ( | CouenneProblem * | problem, | |
| int | index | |||
| ) | const [virtual] |
can this expression be further linearized or are we on its concave ("bad") side
Reimplemented from Couenne::expression.
Definition at line 113 of file exprLog.cpp.
1.6.1