exprSin Class Reference

class for sin f(x) More...

#include <exprSin.hpp>

Inheritance diagram for exprSin:

Inheritance graph
[legend]
Collaboration diagram for exprSin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 exprSin (expression *al)
 Constructors, 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)
 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, const OsiSolverInterface &si, 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 for sin f(x)

Definition at line 46 of file exprSin.hpp.


Constructor & Destructor Documentation

exprSin::exprSin ( expression al  )  [inline]

Constructors, destructor.

Definition at line 51 of file exprSin.hpp.

Referenced by clone().


Member Function Documentation

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]

print operator

Reimplemented from exprUnary.

Definition at line 63 of file exprSin.hpp.

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]

differentiation

Reimplemented from expression.

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

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

Reimplemented from expression.

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

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

Reimplemented from expression.

void exprSin::generateCuts ( expression w,
const OsiSolverInterface &  si,
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.

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]

closest feasible points in function in both directions

Reimplemented from expression.

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.


The documentation for this class was generated from the following file:
Generated on Wed May 19 03:09:54 2010 for Couenne by  doxygen 1.4.7