qpOASES  3.2.1
An Implementation of the Online Active Set Strategy
Public Member Functions | Protected Attributes
MyConstraintProduct Class Reference

Example illustrating the use of the ConstraintProduct class. More...

Inheritance diagram for MyConstraintProduct:
ConstraintProduct

List of all members.

Public Member Functions

 MyConstraintProduct ()
 MyConstraintProduct (int_t _nV, int_t _nC, real_t *_A)
 MyConstraintProduct (const MyConstraintProduct &rhs)
virtual ~MyConstraintProduct ()
MyConstraintProductoperator= (const MyConstraintProduct &rhs)
virtual int_t operator() (int_t constrIndex, const real_t *const x, real_t *const constrValue) const

Protected Attributes

int_t nV
int_t nC
real_tA

Detailed Description

Example illustrating the use of the ConstraintProduct class.

Author:
Hans Joachim Ferreau
Version:
3.2
Date:
2007-2017

Constructor & Destructor Documentation

Default constructor.

MyConstraintProduct::MyConstraintProduct ( int_t  _nV,
int_t  _nC,
real_t _A 
) [inline]

Constructor.

References A, nC, and nV.

Copy constructor (flat copy).

References A, nC, and nV.

virtual MyConstraintProduct::~MyConstraintProduct ( ) [inline, virtual]

Destructor.


Member Function Documentation

virtual int_t MyConstraintProduct::operator() ( int_t  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.

Returns:
0: successful
otherwise: not successful

Implements ConstraintProduct.

References A, and nV.

MyConstraintProduct& MyConstraintProduct::operator= ( const MyConstraintProduct rhs) [inline]

Assignment operator (flat copy).

References A, nC, and nV.


Member Data Documentation

Pointer to full constraint matrix (typically not needed!).

Referenced by MyConstraintProduct(), operator()(), and operator=().

Number of constraints.

Referenced by MyConstraintProduct(), and operator=().

Number of variables.

Referenced by MyConstraintProduct(), operator()(), and operator=().


The documentation for this class was generated from the following file: