exprCos Class Reference

class cosine More...

#include <exprCos.hpp>

Inheritance diagram for exprCos:

Inheritance graph
[legend]
Collaboration diagram for exprCos:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 exprCos (expression *al)
 constructor, destructor
expressionclone (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
expressiondifferentiate (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)
 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

Detailed Description

class cosine

Definition at line 18 of file exprCos.hpp.


Constructor & Destructor Documentation

exprCos::exprCos ( expression al  )  [inline]

constructor, destructor

Definition at line 23 of file exprCos.hpp.

Referenced by clone().


Member Function Documentation

expression* exprCos::clone ( Domain d = NULL  )  const [inline, virtual]

cloning method

Reimplemented from expression.

Definition at line 27 of file exprCos.hpp.

References exprUnary::argument_, and exprCos().

unary_function exprCos::F (  )  [inline, virtual]

the operator itself (e.g. sin, log...)

Reimplemented from exprUnary.

Definition at line 31 of file exprCos.hpp.

References cos().

std::string exprCos::printOp (  )  const [inline, virtual]

print operator

Reimplemented from exprUnary.

Definition at line 35 of file exprCos.hpp.

CouNumber exprCos::gradientNorm ( const double *  x  )  [inline, virtual]

return l-2 norm of gradient at given point

Reimplemented from expression.

Definition at line 39 of file exprCos.hpp.

References exprUnary::argument_, expression::Index(), and sin().

expression * exprCos::differentiate ( int  index  )  [virtual]

obtain derivative of expression

Reimplemented from expression.

Definition at line 28 of file exprCos.cpp.

References exprUnary::argument_.

void exprCos::getBounds ( expression *&  ,
expression *&   
) [virtual]

Get lower and upper bound of an expression (if any).

Reimplemented from expression.

Definition at line 36 of file exprCos.cpp.

References exprUnary::argument_.

Referenced by getBounds().

void exprCos::getBounds ( CouNumber lb,
CouNumber ub 
) [virtual]

Get value of lower and upper bound of an expression.

Reimplemented from expression.

Definition at line 46 of file exprCos.cpp.

References exprUnary::argument_, cos(), getBounds(), and pi2.

void exprCos::generateCuts ( expression w,
OsiCuts &  cs,
const CouenneCutGenerator cg,
t_chg_bounds = NULL,
int  = -1,
CouNumber  = -COUENNE_INFINITY,
CouNumber  = COUENNE_INFINITY 
) [virtual]

generate equality between *this and *w

Reimplemented from expression.

Definition at line 69 of file conv-exprSinCos.cpp.

References exprUnary::Argument(), COU_COSINE, expression::Image(), trigEnvelope(), and w.

virtual enum expr_type exprCos::code (  )  [inline, virtual]

code for comparisons

Reimplemented from exprUnary.

Definition at line 61 of file exprCos.hpp.

References COU_EXPRCOS.

bool exprCos::impliedBound ( int  index,
CouNumber l,
CouNumber u,
t_chg_bounds chg 
) [inline, virtual]

implied bound processing

Reimplemented from expression.

Definition at line 65 of file exprCos.hpp.

References exprUnary::argument_, COU_COSINE, COUENNE_EPS, expression::Index(), exprUnary::isInteger(), and trigImpliedBound().

virtual CouNumber 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.

Reimplemented from expression.

Definition at line 82 of file exprCos.hpp.

References COU_COSINE, and trigSelBranch().

void exprCos::closestFeasible ( expression varind,
expression vardep,
CouNumber left,
CouNumber right 
) const [virtual]

closest feasible points in function in both directions

Reimplemented from expression.

Definition at line 66 of file exprCos.cpp.

References inv(), and pi2.

virtual bool 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 expression.

Definition at line 97 of file exprCos.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Aug 5 03:10:42 2010 by  doxygen 1.4.7