Public Member Functions | List of all members

Stores and evaluates coupled path constraints within optimal control problems. More...

#include <coupled_path_constraint.hpp>

Inheritance diagram for CoupledPathConstraint:
Inheritance graph
[legend]

Public Member Functions

returnValue add (const double lb_, const Expression *arg, const double ub_)
 
 CoupledPathConstraint ()
 
 CoupledPathConstraint (const Grid &grid_)
 
 CoupledPathConstraint (const CoupledPathConstraint &rhs)
 
returnValue evaluate (const OCPiterate &iter)
 
returnValue evaluateSensitivities ()
 
returnValue evaluateSensitivities (const DMatrix &seed, BlockMatrix &hessian)
 
int getNC () const
 
CoupledPathConstraintoperator= (const CoupledPathConstraint &rhs)
 
virtual ~CoupledPathConstraint ()
 
- Public Member Functions inherited from ConstraintElement
 ConstraintElement ()
 
 ConstraintElement (const Grid &grid_, int nFcn_, int nB_)
 
 ConstraintElement (const ConstraintElement &rhs)
 
returnValue get (Function &function_, DMatrix &lb_, DMatrix &ub_)
 
virtual returnValue getBackwardSensitivities (BlockMatrix *D, int order)
 
virtual returnValue getForwardSensitivities (BlockMatrix *D, int order)
 
GridgetGrid ()
 
int getNP () const
 
int getNU () const
 
int getNW () const
 
int getNX () const
 
int getNXA () const
 
virtual returnValue getResiduum (BlockMatrix &lower_residuum, BlockMatrix &upper_residuum)
 
returnValue init (const OCPiterate &iter)
 
BooleanType isAffine () const
 
ConstraintElementoperator= (const ConstraintElement &rhs)
 
virtual returnValue setBackwardSeed (BlockMatrix *seed, int order)
 
virtual returnValue setForwardSeed (BlockMatrix *xSeed_, BlockMatrix *xaSeed_, BlockMatrix *pSeed_, BlockMatrix *uSeed_, BlockMatrix *wSeed_, int order)
 
virtual returnValue setUnitForwardSeed ()
 
virtual ~ConstraintElement ()
 

Additional Inherited Members

- Protected Member Functions inherited from ConstraintElement
virtual returnValue initializeEvaluationPoints (const OCPiterate &iter)
 
- Protected Attributes inherited from ConstraintElement
BlockMatrixbSeed
 
BlockMatrixbSeed2
 
CondensingType condType
 
BlockMatrix dBackward
 
BlockMatrix dForward
 
Functionfcn
 
Grid grid
 
EvaluationPointJJ
 
double ** lb
 
int na
 
int nB
 
int nFcn
 
int np
 
int nu
 
int nw
 
int nx
 
int ny
 
BlockMatrixpSeed
 
BlockMatrixpSeed2
 
BlockMatrix residuumL
 
BlockMatrix residuumU
 
int * t_index
 
double ** ub
 
BlockMatrixuSeed
 
BlockMatrixuSeed2
 
BlockMatrixwSeed
 
BlockMatrixwSeed2
 
BlockMatrixxaSeed
 
BlockMatrixxaSeed2
 
BlockMatrixxSeed
 
BlockMatrixxSeed2
 
int ** y_index
 
EvaluationPointz
 

Detailed Description

Stores and evaluates coupled path constraints within optimal control problems.

The class CoupledPathConstraint allows to manage and evaluate constraints along the whole horizon within optimal control problems that are coupled across control intervals. If the contraints are decoupled, the class PathConstraint should be used.

Author
Boris Houska, Hans Joachim Ferreau

Definition at line 57 of file coupled_path_constraint.hpp.

Constructor & Destructor Documentation

BEGIN_NAMESPACE_ACADO CoupledPathConstraint::CoupledPathConstraint ( )

Default constructor.

Definition at line 48 of file coupled_path_constraint.cpp.

CoupledPathConstraint::CoupledPathConstraint ( const Grid grid_)

Default constructor.

Definition at line 53 of file coupled_path_constraint.cpp.

CoupledPathConstraint::CoupledPathConstraint ( const CoupledPathConstraint rhs)

Copy constructor (deep copy).

Definition at line 58 of file coupled_path_constraint.cpp.

CoupledPathConstraint::~CoupledPathConstraint ( )
virtual

Destructor.

Definition at line 63 of file coupled_path_constraint.cpp.

Member Function Documentation

returnValue CoupledPathConstraint::add ( const double  lb_,
const Expression arg,
const double  ub_ 
)
inline

Adds a coupled-path-constraint component.

Returns
SUCCESSFUL_RETURN RET_MEMBER_NOT_INITIALISED (if the ConstraintElement::fcn is not initialized)
returnValue CoupledPathConstraint::evaluate ( const OCPiterate iter)

Evaluates all components in this constraint and stores the
residuum.

Returns
SUCESSFUL_RETURN

Definition at line 78 of file coupled_path_constraint.cpp.

returnValue CoupledPathConstraint::evaluateSensitivities ( )

Evaluates the sensitivities of all components in this
constraint. Note that the seed can be defined via the base
class ConstraintElement.

Returns
SUCESSFUL_RETURN

Definition at line 122 of file coupled_path_constraint.cpp.

returnValue CoupledPathConstraint::evaluateSensitivities ( const DMatrix seed,
BlockMatrix hessian 
)

Evaluates the sensitivities and Hessian.

Returns
SUCESSFUL_RETURN

Definition at line 231 of file coupled_path_constraint.cpp.

int CoupledPathConstraint::getNC ( ) const
inline

returns the number of constraints

CoupledPathConstraint & CoupledPathConstraint::operator= ( const CoupledPathConstraint rhs)

Assignment operator (deep copy).

Definition at line 67 of file coupled_path_constraint.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:23