exprInv Class Reference

class inverse (1/f(x)) More...

#include <exprInv.hpp>

Inheritance diagram for exprInv:

Inheritance graph
[legend]
Collaboration diagram for exprInv:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 exprInv (expression *al)
 Constructors, destructor.
expressionclone (Domain *d=NULL) const
 cloning method
unary_function F ()
 the operator's function
virtual void print (std::ostream &out=std::cout, bool=false) const
 output "1/argument"
CouNumber gradientNorm (const double *x)
 return l-2 norm of gradient at given point
expressiondifferentiate (int index)
 differentiation
virtual int Linearity ()
 get a measure of "how linear" the expression is (see CouenneTypes.h)
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, CouNumber *, CouNumber *, t_chg_bounds *)
 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 bool isBijective () const
 return true if bijective
virtual CouNumber inverse (expression *vardep) const
 return inverse of y=f(x)=1/x, i.e., x=1/y
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 inverse (1/f(x))

Definition at line 34 of file exprInv.hpp.


Constructor & Destructor Documentation

exprInv::exprInv ( expression al  )  [inline]

Constructors, destructor.

Definition at line 39 of file exprInv.hpp.

Referenced by clone(), differentiate(), and getBounds().


Member Function Documentation

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

cloning method

Reimplemented from expression.

Definition at line 43 of file exprInv.hpp.

References exprUnary::argument_, and exprInv().

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

the operator's function

Reimplemented from exprUnary.

Definition at line 47 of file exprInv.hpp.

References inv().

void exprInv::print ( std::ostream &  out = std::cout,
bool  = false 
) const [virtual]

output "1/argument"

Reimplemented from exprUnary.

Definition at line 31 of file exprInv.cpp.

References exprUnary::argument_.

CouNumber exprInv::gradientNorm ( const double *  x  )  [virtual]

return l-2 norm of gradient at given point

Reimplemented from expression.

Definition at line 105 of file exprInv.cpp.

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

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

differentiation

Reimplemented from expression.

Definition at line 18 of file exprInv.cpp.

References exprUnary::argument_, and exprInv().

virtual int exprInv::Linearity (  )  [inline, virtual]

get a measure of "how linear" the expression is (see CouenneTypes.h)

Reimplemented from exprUnary.

Definition at line 59 of file exprInv.hpp.

References exprUnary::argument_, CONST, CONSTANT, NONLINEAR, and exprUnary::Type().

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

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

Reimplemented from expression.

Definition at line 29 of file conv-exprInv.cpp.

References exprUnary::argument_, COUENNE_INFINITY, and exprInv().

Referenced by generateCuts(), and getBounds().

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

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

Reimplemented from expression.

Definition at line 51 of file conv-exprInv.cpp.

References exprUnary::argument_, COUENNE_INFINITY, and getBounds().

void exprInv::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 71 of file conv-exprInv.cpp.

References exprUnary::argument_, COU_MAX_COEFF, COUENNE_EPS, COUENNE_INFINITY, getBounds(), expression::Index(), inv(), inv_dblprime(), MIN_DENOMINATOR, ns, oppInvSqr(), powNewton(), and t_chg_bounds::UNCHANGED.

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

code for comparisons

Reimplemented from exprUnary.

Definition at line 78 of file exprInv.hpp.

References COU_EXPRINV.

bool exprInv::impliedBound ( int  ,
CouNumber ,
CouNumber ,
t_chg_bounds  
) [virtual]

implied bound processing

Reimplemented from expression.

Definition at line 73 of file exprInv.cpp.

References exprUnary::argument_, t_chg_bounds::CHANGED, COUENNE_EPS, expression::Index(), invPowImplBounds(), exprUnary::isInteger(), t_chg_bounds::setLower(), and t_chg_bounds::setUpper().

CouNumber exprInv::selectBranch ( const CouenneObject obj,
const OsiBranchingInformation *  info,
expression *&  var,
double *&  brpts,
double *&  brDist,
int &  way 
) [virtual]

set up branching object by evaluating many branching points for each expression's arguments

Reimplemented from expression.

Definition at line 227 of file branchExprInv.cpp.

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

virtual bool exprInv::isBijective (  )  const [inline, virtual]

return true if bijective

Reimplemented from expression.

Definition at line 94 of file exprInv.hpp.

virtual CouNumber exprInv::inverse ( expression vardep  )  const [inline, virtual]

return inverse of y=f(x)=1/x, i.e., x=1/y

Reimplemented from expression.

Definition at line 97 of file exprInv.hpp.

bool exprInv::isCuttable ( CouenneProblem problem,
int  index 
) const [virtual]

can this expression be further linearized or are we on its concave ("bad") side

Reimplemented from expression.

Definition at line 118 of file exprInv.cpp.

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


The documentation for this class was generated from the following files:
Generated on Tue Mar 30 03:12:15 2010 by  doxygen 1.4.7