Public Member Functions | Protected Member Functions | Protected Attributes

Allows to export a tailored discrete-time 'integrator' for fast model predictive control. More...

#include <discrete_export.hpp>

Inheritance diagram for DiscreteTimeExport:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DiscreteTimeExport (UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
 DiscreteTimeExport (const DiscreteTimeExport &arg)
virtual returnValue getCode (ExportStatementBlock &code)
virtual returnValue getDataDeclarations (ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const
virtual returnValue getFunctionDeclarations (ExportStatementBlock &declarations) const
DiscreteTimeExportoperator= (const DiscreteTimeExport &arg)
virtual returnValue setDifferentialEquation (const Expression &rhs)
virtual returnValue setNARXmodel (const uint delay, const DMatrix &parms)
virtual returnValue setup ()
virtual returnValue setupOutput (const std::vector< Grid > outputGrids_, const std::vector< Expression > rhs)
virtual returnValue setupOutput (const std::vector< Grid > outputGrids_, const std::vector< std::string > _outputNames, const std::vector< std::string > _diffs_outputNames, const std::vector< uint > _dims_output)
virtual returnValue setupOutput (const std::vector< Grid > outputGrids_, const std::vector< std::string > _outputNames, const std::vector< std::string > _diffs_outputNames, const std::vector< uint > _dims_output, const std::vector< DMatrix > _outputDependencies)
virtual ~DiscreteTimeExport ()

Protected Member Functions

virtual returnValue copy (const DiscreteTimeExport &arg)
ExportVariable getAuxVariable () const

Protected Attributes

ExportVariable rk_diffsTemp3

Detailed Description

Allows to export a tailored discrete-time 'integrator' for fast model predictive control.

The class DiscreteTimeExport allows to export a tailored discrete-time 'integrator' for fast model predictive control.

Author:
Rien Quirynen

Definition at line 56 of file discrete_export.hpp.


Constructor & Destructor Documentation

BEGIN_NAMESPACE_ACADO DiscreteTimeExport::DiscreteTimeExport ( UserInteraction _userInteraction = 0,
const std::string &  _commonHeaderName = "" 
)

Default constructor.

Parameters:
[in]_userInteractionPointer to corresponding user interface.
[in]_commonHeaderNameName of common header file to be included.

Definition at line 44 of file discrete_export.cpp.

Copy constructor (deep copy).

Parameters:
[in]argRight-hand side object.

Definition at line 51 of file discrete_export.cpp.

Destructor.

Definition at line 58 of file discrete_export.cpp.


Member Function Documentation

returnValue DiscreteTimeExport::copy ( const DiscreteTimeExport arg) [protected, virtual]

Copies all class members from given object.

Parameters:
[in]argRight-hand side object.
Returns:
SUCCESSFUL_RETURN

Definition at line 496 of file discrete_export.cpp.

ExportVariable DiscreteTimeExport::getAuxVariable ( ) const [protected, virtual]

Returns the largest global export variable.

Returns:
SUCCESSFUL_RETURN

Implements IntegratorExport.

Definition at line 469 of file discrete_export.cpp.

Exports source code of the auto-generated integrator into the given directory.

Parameters:
[in]codeCode block containing the auto-generated integrator.
Returns:
SUCCESSFUL_RETURN

Implements IntegratorExport.

Definition at line 337 of file discrete_export.cpp.

returnValue DiscreteTimeExport::getDataDeclarations ( ExportStatementBlock declarations,
ExportStruct  dataStruct = ACADO_ANY 
) const [virtual]

Adds all data declarations of the auto-generated integrator to given list of declarations.

Parameters:
[in]declarationsList of declarations.
Returns:
SUCCESSFUL_RETURN

Implements IntegratorExport.

Reimplemented in NARXExport.

Definition at line 102 of file discrete_export.cpp.

Adds all function (forward) declarations of the auto-generated integrator to given list of declarations.

Parameters:
[in]declarationsList of declarations.
Returns:
SUCCESSFUL_RETURN

Implements IntegratorExport.

Definition at line 124 of file discrete_export.cpp.

DiscreteTimeExport & DiscreteTimeExport::operator= ( const DiscreteTimeExport arg)

Assignment operator (deep copy).

Parameters:
[in]argRight-hand side object.

Definition at line 442 of file discrete_export.cpp.

Assigns Differential Equation to be used by the integrator.

Parameters:
[in]rhsRight-hand side expression.
Returns:
SUCCESSFUL_RETURN

Implements IntegratorExport.

Reimplemented in NARXExport.

Definition at line 64 of file discrete_export.cpp.

returnValue DiscreteTimeExport::setNARXmodel ( const uint  delay,
const DMatrix parms 
) [virtual]

Sets a polynomial NARX model to be used by the integrator.

Parameters:
[in]delayThe delay for the states in the NARX model.
[in]parmsThe parameters defining the polynomial NARX model.
Returns:
SUCCESSFUL_RETURN

Implements IntegratorExport.

Reimplemented in NARXExport.

Definition at line 411 of file discrete_export.cpp.

Initializes export of a tailored integrator.

Returns:
SUCCESSFUL_RETURN

Implements IntegratorExport.

Reimplemented in NARXExport.

Definition at line 136 of file discrete_export.cpp.

returnValue DiscreteTimeExport::setupOutput ( const std::vector< Grid outputGrids_,
const std::vector< Expression rhs 
) [virtual]

Sets up the output with the grids for the different output functions.

Parameters:
outputGrids_The vector containing a grid for each output function.
rhsThe expressions corresponding the output functions.

Returns:
SUCCESSFUL_RETURN

Implements IntegratorExport.

Definition at line 417 of file discrete_export.cpp.

returnValue DiscreteTimeExport::setupOutput ( const std::vector< Grid outputGrids_,
const std::vector< std::string >  _outputNames,
const std::vector< std::string >  _diffs_outputNames,
const std::vector< uint _dims_output 
) [virtual]

Sets up the output with the grids for the different output functions.

Parameters:
outputGrids_The vector containing a grid for each output function.
_outputNamesThe names of the output functions.
_diffs_outputNamesThe names of the functions, evaluating the derivatives of the outputs.
_dims_outputThe dimensions of the output functions.

Returns:
SUCCESSFUL_RETURN

Implements IntegratorExport.

Definition at line 423 of file discrete_export.cpp.

returnValue DiscreteTimeExport::setupOutput ( const std::vector< Grid outputGrids_,
const std::vector< std::string >  _outputNames,
const std::vector< std::string >  _diffs_outputNames,
const std::vector< uint _dims_output,
const std::vector< DMatrix _outputDependencies 
) [virtual]

Sets up the output with the grids for the different output functions.

Parameters:
outputGrids_The vector containing a grid for each output function.
_outputNamesThe names of the output functions.
_diffs_outputNamesThe names of the functions, evaluating the derivatives of the outputs.
_dims_outputThe dimensions of the output functions.
_outputDependenciesA separate dependency matrix for each output.

Returns:
SUCCESSFUL_RETURN

Implements IntegratorExport.

Definition at line 432 of file discrete_export.cpp.


Member Data Documentation

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