Public Member Functions | Protected Attributes | List of all members
MpcConstraintProduct Class Reference

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

Inheritance diagram for MpcConstraintProduct:
Inheritance graph
[legend]

Public Member Functions

 MpcConstraintProduct ()
 
 MpcConstraintProduct ()
 
 MpcConstraintProduct (int_t _nV, int_t _nC, int_t _diagOffset, real_t *_A)
 
 MpcConstraintProduct (int_t _nV, int_t _nC, int_t _diagOffset, real_t *_A)
 
 MpcConstraintProduct (const MpcConstraintProduct &rhs)
 
 MpcConstraintProduct (const MpcConstraintProduct &rhs)
 
virtual int_t operator() (int_t constrIndex, const real_t *const x, real_t *const constrValue) const
 
virtual int_t operator() (int_t constrIndex, const real_t *const x, real_t *const constrValue) const
 
MpcConstraintProductoperator= (const MpcConstraintProduct &rhs)
 
MpcConstraintProductoperator= (const MpcConstraintProduct &rhs)
 
virtual ~MpcConstraintProduct ()
 
virtual ~MpcConstraintProduct ()
 
- Public Member Functions inherited from ConstraintProduct
 ConstraintProduct ()
 
 ConstraintProduct ()
 
 ConstraintProduct (const ConstraintProduct &toCopy)
 
 ConstraintProduct (const ConstraintProduct &toCopy)
 
ConstraintProductoperator= (const ConstraintProduct &toCopy)
 
ConstraintProductoperator= (const ConstraintProduct &toCopy)
 
virtual ~ConstraintProduct ()
 
virtual ~ConstraintProduct ()
 

Protected Attributes

real_tA
 
int_t diagOffset
 
int_t nC
 
int_t 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.1
Date
2007-2015

Definition at line 54 of file test_constraintProduct1.cpp.

Constructor & Destructor Documentation

MpcConstraintProduct::MpcConstraintProduct ( )
inline

Default constructor.

Definition at line 58 of file test_constraintProduct1.cpp.

MpcConstraintProduct::MpcConstraintProduct ( int_t  _nV,
int_t  _nC,
int_t  _diagOffset,
real_t _A 
)
inline

Constructor.

Definition at line 61 of file test_constraintProduct1.cpp.

MpcConstraintProduct::MpcConstraintProduct ( const MpcConstraintProduct rhs)
inline

Copy constructor (flat copy).

Definition at line 74 of file test_constraintProduct1.cpp.

virtual MpcConstraintProduct::~MpcConstraintProduct ( )
inlinevirtual

Destructor.

Definition at line 84 of file test_constraintProduct1.cpp.

MpcConstraintProduct::MpcConstraintProduct ( )
inline

Default constructor.

Definition at line 58 of file test_constraintProduct2.cpp.

MpcConstraintProduct::MpcConstraintProduct ( int_t  _nV,
int_t  _nC,
int_t  _diagOffset,
real_t _A 
)
inline

Constructor.

Definition at line 61 of file test_constraintProduct2.cpp.

MpcConstraintProduct::MpcConstraintProduct ( const MpcConstraintProduct rhs)
inline

Copy constructor (flat copy).

Definition at line 74 of file test_constraintProduct2.cpp.

virtual MpcConstraintProduct::~MpcConstraintProduct ( )
inlinevirtual

Destructor.

Definition at line 84 of file test_constraintProduct2.cpp.

Member Function Documentation

virtual int_t MpcConstraintProduct::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

Implements ConstraintProduct.

Definition at line 101 of file test_constraintProduct1.cpp.

virtual int_t MpcConstraintProduct::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

Implements ConstraintProduct.

Definition at line 101 of file test_constraintProduct2.cpp.

MpcConstraintProduct& MpcConstraintProduct::operator= ( const MpcConstraintProduct rhs)
inline

Assignment operator (flat copy).

Definition at line 87 of file test_constraintProduct2.cpp.

MpcConstraintProduct& MpcConstraintProduct::operator= ( const MpcConstraintProduct rhs)
inline

Assignment operator (flat copy).

Definition at line 87 of file test_constraintProduct1.cpp.

Member Data Documentation

real_t * MpcConstraintProduct::A
protected

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

Definition at line 122 of file test_constraintProduct1.cpp.

int_t MpcConstraintProduct::diagOffset
protected

...

Definition at line 121 of file test_constraintProduct1.cpp.

int_t MpcConstraintProduct::nC
protected

Number of constraints.

Definition at line 120 of file test_constraintProduct1.cpp.

int_t MpcConstraintProduct::nV
protected

Number of variables.

Definition at line 116 of file test_constraintProduct1.cpp.


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


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:25