Example illustrating the use of the ConstraintProduct class.
More...
Example illustrating the use of the ConstraintProduct class.
- Author
- Hans Joachim Ferreau
- Version
- 3.2
- Date
- 2007-2017
◆ MyConstraintProduct() [1/3]
| MyConstraintProduct::MyConstraintProduct |
( |
| ) |
|
|
inline |
◆ MyConstraintProduct() [2/3]
Constructor.
References A, nC, and nV.
◆ MyConstraintProduct() [3/3]
Copy constructor (flat copy).
References A, nC, and nV.
◆ ~MyConstraintProduct()
| virtual MyConstraintProduct::~MyConstraintProduct |
( |
| ) |
|
|
inlinevirtual |
◆ operator()()
| virtual int_t MyConstraintProduct::operator() |
( |
int_t |
constrIndex, |
|
|
const real_t *const |
x, |
|
|
real_t *const |
constrValue |
|
) |
| const |
|
inlinevirtual |
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.
- Returns
- 0: successful
otherwise: not successful
- Parameters
-
| constrIndex | Number of constraint to be evaluated. |
| x | Array containing current primal iterate. |
| constrValue | Output: Scalar value of the evaluated constraint. |
Implements ConstraintProduct.
References A, and nV.
◆ operator=()
Assignment operator (flat copy).
References A, nC, and nV.
| real_t* MyConstraintProduct::A |
|
protected |
◆ nC
| int_t MyConstraintProduct::nC |
|
protected |
◆ nV
| int_t MyConstraintProduct::nV |
|
protected |
The documentation for this class was generated from the following file: