#include <CouenneExprSin.hpp>
Inheritance diagram for Couenne::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 convexification cut for constraint w = sin (this) | |
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 |
For use with Violation Transfer (See Tawarmalani and Sahinidis 2004). | |
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 47 of file CouenneExprSin.hpp.
Couenne::exprSin::exprSin | ( | expression * | al | ) | [inline] |
expression* Couenne::exprSin::clone | ( | Domain * | d = NULL |
) | const [inline, virtual] |
cloning method
Reimplemented from Couenne::expression.
Definition at line 56 of file CouenneExprSin.hpp.
References Couenne::exprUnary::argument_, and exprSin().
unary_function Couenne::exprSin::F | ( | ) | [inline, virtual] |
the operator itself (e.g. sin, log...)
Reimplemented from Couenne::exprUnary.
Definition at line 60 of file CouenneExprSin.hpp.
References Couenne::sin().
std::string Couenne::exprSin::printOp | ( | ) | const [inline, virtual] |
print operator
Reimplemented from Couenne::exprUnary.
Definition at line 64 of file CouenneExprSin.hpp.
CouNumber Couenne::exprSin::gradientNorm | ( | const double * | x | ) | [inline, virtual] |
return l-2 norm of gradient at given point
Reimplemented from Couenne::expression.
Definition at line 68 of file CouenneExprSin.hpp.
References Couenne::exprUnary::argument_, Couenne::cos(), and Couenne::expression::Index().
expression * Couenne::exprSin::differentiate | ( | int | index | ) | [virtual] |
differentiation
Reimplemented from Couenne::expression.
Definition at line 28 of file exprSin.cpp.
References Couenne::exprUnary::argument_.
void Couenne::exprSin::getBounds | ( | expression *& | , | |
expression *& | ||||
) | [virtual] |
Get lower and upper bound of an expression (if any).
Reimplemented from Couenne::expression.
Definition at line 36 of file exprSin.cpp.
References Couenne::exprUnary::argument_.
Referenced by getBounds().
Get value of lower and upper bound of an expression (if any).
Reimplemented from Couenne::expression.
Definition at line 47 of file exprSin.cpp.
References Couenne::exprUnary::argument_, getBounds(), Couenne::pi2, and Couenne::sin().
void Couenne::exprSin::generateCuts | ( | expression * | w, | |
OsiCuts & | cs, | |||
const CouenneCutGenerator * | cg, | |||
t_chg_bounds * | = NULL , |
|||
int | = -1 , |
|||
CouNumber | = -COUENNE_INFINITY , |
|||
CouNumber | = COUENNE_INFINITY | |||
) | [virtual] |
generate convexification cut for constraint w = sin (this)
Reimplemented from Couenne::expression.
Definition at line 49 of file conv-exprSinCos.cpp.
References Couenne::exprUnary::Argument(), Couenne::COU_SINE, Couenne::expression::Image(), Couenne::trigEnvelope(), and w.
virtual enum expr_type Couenne::exprSin::code | ( | ) | [inline, virtual] |
code for comparisons
Reimplemented from Couenne::exprUnary.
Definition at line 90 of file CouenneExprSin.hpp.
References Couenne::COU_EXPRSIN.
bool Couenne::exprSin::impliedBound | ( | int | index, | |
CouNumber * | l, | |||
CouNumber * | u, | |||
t_chg_bounds * | chg, | |||
enum auxSign | = expression::AUX_EQ | |||
) | [inline] |
implied bound processing
Definition at line 94 of file CouenneExprSin.hpp.
References Couenne::exprUnary::argument_, Couenne::COU_SINE, COUENNE_EPS, Couenne::expression::Index(), Couenne::exprUnary::isInteger(), and Couenne::trigImpliedBound().
virtual CouNumber Couenne::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 Couenne::expression.
Definition at line 111 of file CouenneExprSin.hpp.
References Couenne::COU_SINE, and Couenne::trigSelBranch().
void Couenne::exprSin::closestFeasible | ( | expression * | varind, | |
expression * | vardep, | |||
CouNumber & | left, | |||
CouNumber & | right | |||
) | const [virtual] |
For use with Violation Transfer (See Tawarmalani and Sahinidis 2004).
Reimplemented from Couenne::expression.
Definition at line 146 of file exprSin.cpp.
References Couenne::inv(), Couenne::pi2, and Couenne::pih.
virtual bool Couenne::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 Couenne::expression.
Definition at line 127 of file CouenneExprSin.hpp.