#include <exprSin.hpp>
Inheritance diagram for exprSin:
Public Member Functions | |
exprSin (expression *al) | |
Constructors, 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) |
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 index, CouNumber *l, CouNumber *u, t_chg_bounds *chg) |
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 |
Definition at line 46 of file exprSin.hpp.
exprSin::exprSin | ( | expression * | al | ) | [inline] |
expression* exprSin::clone | ( | Domain * | d = NULL |
) | const [inline, virtual] |
cloning method
Reimplemented from expression.
Definition at line 55 of file exprSin.hpp.
References exprUnary::argument_, and exprSin().
unary_function exprSin::F | ( | ) | [inline, virtual] |
the operator itself (e.g. sin, log...)
Reimplemented from exprUnary.
Definition at line 59 of file exprSin.hpp.
References sin().
std::string exprSin::printOp | ( | ) | const [inline, virtual] |
CouNumber exprSin::gradientNorm | ( | const double * | x | ) | [inline, virtual] |
return l-2 norm of gradient at given point
Reimplemented from expression.
Definition at line 67 of file exprSin.hpp.
References exprUnary::argument_, cos(), and expression::Index().
expression* exprSin::differentiate | ( | int | index | ) | [virtual] |
void exprSin::getBounds | ( | expression *& | , | |
expression *& | ||||
) | [virtual] |
void exprSin::generateCuts | ( | expression * | w, | |
OsiCuts & | cs, | |||
const CouenneCutGenerator * | cg, | |||
t_chg_bounds * | = NULL , |
|||
int | = -1 , |
|||
CouNumber | = -COUENNE_INFINITY , |
|||
CouNumber | = COUENNE_INFINITY | |||
) | [virtual] |
virtual enum expr_type exprSin::code | ( | ) | [inline, virtual] |
code for comparisons
Reimplemented from exprUnary.
Definition at line 89 of file exprSin.hpp.
References COU_EXPRSIN.
bool exprSin::impliedBound | ( | int | index, | |
CouNumber * | l, | |||
CouNumber * | u, | |||
t_chg_bounds * | chg | |||
) | [inline, virtual] |
implied bound processing
Reimplemented from expression.
Definition at line 93 of file exprSin.hpp.
References exprUnary::argument_, COU_SINE, COUENNE_EPS, expression::Index(), exprUnary::isInteger(), and trigImpliedBound().
virtual CouNumber exprSin::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.
Reimplemented from expression.
Definition at line 110 of file exprSin.hpp.
References COU_SINE, and trigSelBranch().
virtual void exprSin::closestFeasible | ( | expression * | varind, | |
expression * | vardep, | |||
CouNumber & | left, | |||
CouNumber & | right | |||
) | const [virtual] |
virtual bool exprSin::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 126 of file exprSin.hpp.