class cosine,
More...
#include <CouenneExprCos.hpp>


Public Member Functions | |
| exprCos (expression *al) | |
| constructor, destructor | |
| expression * | clone (Domain *d=NULL) const |
| cloning method | |
| unary_function | F () |
| the operator itself (e.g. sin, log...) | |
| std::string | printOp () const |
| print operator | |
| CouNumber | gradientNorm (const double *x) |
| return l-2 norm of gradient at given point | |
| expression * | differentiate (int index) |
| obtain derivative of expression | |
| 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. | |
| 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 index, CouNumber *l, CouNumber *u, t_chg_bounds *chg, 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 void | closestFeasible (expression *varind, expression *vardep, CouNumber &left, CouNumber &right) const |
| closest feasible points in function in both directions | |
| virtual bool | isCuttable (CouenneProblem *problem, int index) const |
| can this expression be further linearized or are we on its concave ("bad") side | |
class cosine,
Definition at line 20 of file CouenneExprCos.hpp.
| Couenne::exprCos::exprCos | ( | expression * | al | ) | [inline] |
constructor, destructor
Definition at line 25 of file CouenneExprCos.hpp.
| expression* Couenne::exprCos::clone | ( | Domain * | d = NULL |
) | const [inline, virtual] |
cloning method
Reimplemented from Couenne::expression.
Definition at line 29 of file CouenneExprCos.hpp.
| unary_function Couenne::exprCos::F | ( | ) | [inline, virtual] |
the operator itself (e.g. sin, log...)
Reimplemented from Couenne::exprUnary.
Definition at line 33 of file CouenneExprCos.hpp.
| std::string Couenne::exprCos::printOp | ( | ) | const [inline, virtual] |
print operator
Reimplemented from Couenne::exprUnary.
Definition at line 37 of file CouenneExprCos.hpp.
| CouNumber Couenne::exprCos::gradientNorm | ( | const double * | x | ) | [inline, virtual] |
return l-2 norm of gradient at given point
Reimplemented from Couenne::expression.
Definition at line 41 of file CouenneExprCos.hpp.
| expression * exprCos::differentiate | ( | int | index | ) | [virtual] |
obtain derivative of expression
Reimplemented from Couenne::expression.
Definition at line 29 of file exprCos.cpp.
| void exprCos::getBounds | ( | expression *& | lb, | |
| expression *& | ub | |||
| ) |
Get lower and upper bound of an expression (if any).
Definition at line 37 of file exprCos.cpp.
Get value of lower and upper bound of an expression.
Reimplemented from Couenne::expression.
Definition at line 47 of file exprCos.cpp.
| void Couenne::exprCos::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
generate convexification cut for constraint w = cos (this)
Definition at line 74 of file conv-exprSinCos.cpp.
| virtual enum expr_type Couenne::exprCos::code | ( | ) | [inline, virtual] |
code for comparisons
Reimplemented from Couenne::exprUnary.
Definition at line 63 of file CouenneExprCos.hpp.
| bool Couenne::exprCos::impliedBound | ( | int | index, | |
| CouNumber * | l, | |||
| CouNumber * | u, | |||
| t_chg_bounds * | chg, | |||
| enum auxSign | = expression::AUX_EQ | |||
| ) | [inline, virtual] |
implied bound processing
Reimplemented from Couenne::expression.
Definition at line 67 of file CouenneExprCos.hpp.
| virtual CouNumber Couenne::exprCos::selectBranch | ( | const CouenneObject * | obj, | |
| const OsiBranchingInformation * | info, | |||
| expression *& | var, | |||
| double *& | brpts, | |||
| double *& | brDist, | |||
| int & | way | |||
| ) | [inline, virtual] |
Set up branching object by evaluating many branching points for each expression's arguments.
Definition at line 84 of file CouenneExprCos.hpp.
| void exprCos::closestFeasible | ( | expression * | varind, | |
| expression * | vardep, | |||
| CouNumber & | left, | |||
| CouNumber & | right | |||
| ) | const [virtual] |
closest feasible points in function in both directions
Definition at line 67 of file exprCos.cpp.
| virtual bool Couenne::exprCos::isCuttable | ( | CouenneProblem * | problem, | |
| int | index | |||
| ) | const [inline, virtual] |
can this expression be further linearized or are we on its concave ("bad") side
Reimplemented from Couenne::expression.
Definition at line 99 of file CouenneExprCos.hpp.
1.6.1