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] |
expression* Couenne::exprCos::clone | ( | Domain * | d = NULL |
) | const [inline, virtual] |
cloning method
Reimplemented from Couenne::expression.
Definition at line 29 of file CouenneExprCos.hpp.
References Couenne::exprUnary::argument_, and exprCos().
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.
References Couenne::cos().
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.
References Couenne::exprUnary::argument_, Couenne::expression::Index(), and Couenne::sin().
expression* Couenne::exprCos::differentiate | ( | int | index | ) | [virtual] |
obtain derivative of expression
Reimplemented from Couenne::expression.
void Couenne::exprCos::getBounds | ( | expression *& | , | |
expression *& | ||||
) |
Get lower and upper bound of an expression (if any).
Get value of lower and upper bound of an expression.
Reimplemented from Couenne::expression.
void Couenne::exprCos::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 Couenne::exprCos::code | ( | ) | [inline, virtual] |
code for comparisons
Reimplemented from Couenne::exprUnary.
Definition at line 63 of file CouenneExprCos.hpp.
References Couenne::COU_EXPRCOS.
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.
References Couenne::exprUnary::argument_, Couenne::COU_COSINE, COUENNE_EPS, Couenne::expression::Index(), Couenne::exprUnary::isInteger(), and Couenne::trigImpliedBound().
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.
References Couenne::COU_COSINE, and Couenne::trigSelBranch().
virtual void Couenne::exprCos::closestFeasible | ( | expression * | varind, | |
expression * | vardep, | |||
CouNumber & | left, | |||
CouNumber & | right | |||
) | const [virtual] |
closest feasible points in function in both directions
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.