Public Member Functions | Protected Attributes

Stores and evaluates Lagrange terms within optimal control problems. More...

#include <lagrange_term.hpp>

Inheritance diagram for LagrangeTerm:
Inheritance graph
[legend]

List of all members.

Public Member Functions

returnValue addLagrangeTerm (const Expression &arg)
returnValue addLagrangeTerm (const Expression &arg, const int &stageNumber)
const GridgetGrid () const
returnValue init (const Grid &grid_)
 LagrangeTerm ()
 LagrangeTerm (const LagrangeTerm &rhs)
LagrangeTermoperator= (const LagrangeTerm &rhs)
virtual ~LagrangeTerm ()

Protected Attributes

Grid grid
Expression ** lagrangeFcn
int nLagrangeTerms

Detailed Description

Stores and evaluates Lagrange terms within optimal control problems.

The class LagrangeTerm is object that is introduced as a kind of
temporary storage containter of the objective to store lagrange
terms that are defined by the user. As the objective does later
reformulate the Lagrange term into an Mayer term, this class has
no algorithmic functionality - it is just a data class.

Author:
Boris Houska, Hans Joachim Ferreau

Definition at line 61 of file lagrange_term.hpp.


Constructor & Destructor Documentation

Default constructor.

Definition at line 43 of file lagrange_term.cpp.

Copy constructor (deep copy).

Definition at line 57 of file lagrange_term.cpp.

Destructor.

Definition at line 72 of file lagrange_term.cpp.


Member Function Documentation

Adds an expression for the Lagrange term.

Returns:
SUCCESSFUL_RETURN
returnValue LagrangeTerm::addLagrangeTerm ( const Expression arg,
const int &  stageNumber 
) [inline]

Adds an expression for the Lagrange term.

Returns:
SUCCESSFUL_RETURN
const Grid& LagrangeTerm::getGrid ( ) const [inline]

returns the objective grid

returnValue LagrangeTerm::init ( const Grid grid_)

Sets the discretization grid.

Returns:
SUCCESSFUL_RETURN

Reimplemented in Objective.

Definition at line 50 of file lagrange_term.cpp.

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

Assignment operator (deep copy).

Definition at line 84 of file lagrange_term.cpp.


Member Data Documentation

Grid LagrangeTerm::grid [protected]

the objective grid.

Definition at line 112 of file lagrange_term.hpp.

the Lagrange function.

Definition at line 114 of file lagrange_term.hpp.

number of lagrange terms

Definition at line 113 of file lagrange_term.hpp.


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


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Sat Jun 8 2019 19:40:24