Public Member Functions | Protected Attributes
MyConstraintProduct Class Reference

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

Inheritance diagram for MyConstraintProduct:
Inheritance graph
[legend]

List of all members.

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
MyConstraintProductoperator= (const MyConstraintProduct &rhs)
virtual ~MyConstraintProduct ()

Protected Attributes

real_tA
int nC
int nV

Detailed Description

Example illustrating the use of the ConstraintProduct class.

Example illustrating the use of the ConstraintProduct class.

Author:
Hans Joachim Ferreau
Version:
3.0beta
Date:
2007-2011

Definition at line 47 of file example4CP.cpp.


Constructor & Destructor Documentation

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.

Definition at line 62 of file example4CP.cpp.

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

Definition at line 70 of file example4CP.cpp.


Member Function Documentation

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.

Returns:
0: successful
otherwise: not successful

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.


Member Data Documentation

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.


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


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Thu Aug 27 2015 12:01:39