GCOP  1.0
Public Types | Public Member Functions | Public Attributes | Protected Attributes
gcop::ConstraintCost< T, _nx, _nu, _np, _ng > Class Template Reference

#include <constraintcost.h>

Inheritance diagram for gcop::ConstraintCost< T, _nx, _nu, _np, _ng >:
Inheritance graph
[legend]
Collaboration diagram for gcop::ConstraintCost< T, _nx, _nu, _np, _ng >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Matrix< double, _ng, 1 > Vectorgd
typedef Matrix< double, _ng, _nx > Matrixgnd
typedef Matrix< double, _ng, _nu > Matrixgcd
typedef Matrix< double, _ng, _np > Matrixgmd
typedef Matrix< double, _nx, 1 > Vectornd
typedef Matrix< double, _nu, 1 > Vectorcd
typedef Matrix< double, _np, 1 > Vectormd
typedef Matrix< double, _nx, _nx > Matrixnd
typedef Matrix< double, _nx, _nu > Matrixncd
typedef Matrix< double, _nu, _nx > Matrixcnd
typedef Matrix< double, _nu, _nu > Matrixcd
typedef Matrix< double, _np, _np > Matrixmd
typedef Matrix< double, _nx, _np > Matrixnmd
typedef Matrix< double, _np, _nx > Matrixmnd

Public Member Functions

 ConstraintCost (System< T, _nx, _nu, _np > &sys, double tf, Constraint< T, _nx, _nu, _np, _ng > &con)
virtual double L (double t, const T &x, const Vectorcd &u, double h, const Vectormd *p=0, Vectornd *Lx=0, Matrixnd *Lxx=0, Vectorcd *Lu=0, Matrixcd *Luu=0, Matrixncd *Lxu=0, Vectormd *Lp=0, Matrixmd *Lpp=0, Matrixmnd *Lpx=0)

Public Attributes

Constraint< T, _nx, _nu, _np,
_ng > & 
con
double b
 penalty coefficient (default is 1)

Protected Attributes

Vectorgd gp
 active residuals
Matrixgnd dgdx
 gradients

template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
class gcop::ConstraintCost< T, _nx, _nu, _np, _ng >


Member Typedef Documentation

template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _nu, _nu> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Matrixcd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _nu, _nx> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Matrixcnd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _ng, _nu> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Matrixgcd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _ng, _np> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Matrixgmd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _ng, _nx> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Matrixgnd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _np, _np> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Matrixmd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _np, _nx> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Matrixmnd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _nx, _nu> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Matrixncd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _nx, _nx> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Matrixnd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _nx, _np> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Matrixnmd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _nu, 1> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Vectorcd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _ng, 1> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Vectorgd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _np, 1> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Vectormd
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
typedef Matrix<double, _nx, 1> gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::Vectornd

Constructor & Destructor Documentation

template<typename T, int _nx, int _nu, int _np, int _ng>
gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::ConstraintCost ( System< T, _nx, _nu, _np > &  sys,
double  tf,
Constraint< T, _nx, _nu, _np, _ng > &  con 
)

Linear-quadratic cost on a general manifold. Use this constructor for dynamic-size control problem, i.e. ConstraintCost<T>(X, U, tf, xf, ...)

Parameters:
syssystem
tffinal time
conconstraint

References gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::dgdx, gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::gp, gcop::Constraint< T, _nx, _nu, _np, _ng >::ng, and gcop::System< T, _nx, _nu, _np >::X.


Member Function Documentation

template<typename T, int _nx, int _nu, int _np, int _ng>
double gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::L ( double  t,
const T &  x,
const Vectorcd u,
double  h,
const Vectormd p = 0,
Vectornd Lx = 0,
Matrixnd Lxx = 0,
Vectorcd Lu = 0,
Matrixcd Luu = 0,
Matrixncd Lxu = 0,
Vectormd Lp = 0,
Matrixmd Lpp = 0,
Matrixmnd Lpx = 0 
) [virtual]

Create a Sensor Based Cost interface

Parameters:
systhe system for which cost function is defined. Provides the system manifold X
Costfunction L
ttime
xstate
ucontrol
htime-step
Lxderivative wrt x
Lxxderivative wrt x,x
Luderivative wrt u
Luuderivative wrt u,u
Lxuderivative wrt x,u

Reimplemented from gcop::Cost< T, _nx, _nu, _np, T >.


Member Data Documentation

template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
double gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::b

penalty coefficient (default is 1)

template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
Constraint<T, _nx, _nu, _np, _ng>& gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::con
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
Matrixgnd gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::dgdx [protected]
template<typename T, int _nx = Dynamic, int _nu = Dynamic, int _np = Dynamic, int _ng = Dynamic>
Vectorgd gcop::ConstraintCost< T, _nx, _nu, _np, _ng >::gp [protected]

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