Example illustrating the use of the ConstraintProduct class. More...
Public Member Functions | |
MyConstraintProduct () | |
MyConstraintProduct (int _nV, int _nC, real_t *_A) | |
MyConstraintProduct (const MyConstraintProduct &rhs) | |
virtual int | operator() (int constrIndex, const real_t *const x, real_t *const constrValue) const |
MyConstraintProduct & | operator= (const MyConstraintProduct &rhs) |
virtual | ~MyConstraintProduct () |
Protected Attributes | |
real_t * | A |
int | nC |
int | nV |
Example illustrating the use of the ConstraintProduct class.
Example illustrating the use of the ConstraintProduct class.
Definition at line 47 of file example4CP.cpp.
MyConstraintProduct::MyConstraintProduct | ( | ) | [inline] |
Definition at line 50 of file example4CP.cpp.
MyConstraintProduct::MyConstraintProduct | ( | int | _nV, |
int | _nC, | ||
real_t * | _A | ||
) | [inline] |
Definition at line 52 of file example4CP.cpp.
MyConstraintProduct::MyConstraintProduct | ( | const MyConstraintProduct & | rhs | ) | [inline] |
Definition at line 62 of file example4CP.cpp.
virtual MyConstraintProduct::~MyConstraintProduct | ( | ) | [inline, virtual] |
Definition at line 70 of file example4CP.cpp.
virtual int MyConstraintProduct::operator() | ( | int | constrIndex, |
const real_t *const | x, | ||
real_t *const | constrValue | ||
) | const [inline, virtual] |
Evaluates the product of a given constraint with the current iterate. This function needs to be implemented in a derived class for the user-defined constraint product function.
Implements ConstraintProduct.
Definition at line 85 of file example4CP.cpp.
MyConstraintProduct& MyConstraintProduct::operator= | ( | const MyConstraintProduct & | rhs | ) | [inline] |
Definition at line 72 of file example4CP.cpp.
real_t* MyConstraintProduct::A [protected] |
Definition at line 101 of file example4CP.cpp.
int MyConstraintProduct::nC [protected] |
Definition at line 100 of file example4CP.cpp.
int MyConstraintProduct::nV [protected] |
Definition at line 96 of file example4CP.cpp.