Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

DefaultCategorizeGenConstraints Struct Reference

The default rule for categorizing constraints into those that are strictly satisified and those that are not. More...

#include <NlpSlack.hh>

Inheritance diagram for DefaultCategorizeGenConstraints:

IotrVectorCategorize IotrRefCount List of all members.

Public Methods

 DefaultCategorizeGenConstraints (double rtol, double atol, double bignum)
 Constructor.

virtual void operator() (unsigned char result[], int len, int ncat, const double rclow[], const double *rhs[], int nrhs) const
 Classify the constraints.


Detailed Description

The default rule for categorizing constraints into those that are strictly satisified and those that are not.

The rule divides the constraints into 5 categories

The default criterion for accepting a lower bound as strictly satisfied is

where u is taken to be infinite if there is no upper bound. The rule for an upper bound to be strictly feasible is analogous.


Constructor & Destructor Documentation

DefaultCategorizeGenConstraints::DefaultCategorizeGenConstraints double    rtol,
double    atol,
double    bignum
[inline]
 

Constructor.

Parameters:
rtol  the relative tolerance for accepting a constraint as strictly satisfied.
atol  the relative tolerance for accepting a constraint as strictly satisfied.
bignum  a value beyond which a bound is taken to be infinite.


Member Function Documentation

virtual void DefaultCategorizeGenConstraints::operator() unsigned char    result[],
int    len,
int    ncat,
const double    rclow[],
const double *    rhs[],
int    nrhs
const [virtual]
 

Classify the constraints.

Parameters:
result  a vector of clasifications
len  the length of result and all double arrays
ncat  the number of categories (will always be 5)
rclow  the lower bounds
rhs  [0] the function values, c
rhs  [1] the upper bounds
nrhs  the number of right hand sides (will always be 2)

Implements IotrVectorCategorize.


The documentation for this struct was generated from the following file:
Generated on Wed Aug 27 10:03:42 2003 for iotr by doxygen1.2.18