User-interface to automatically generate algorithms for fast model predictive control. More...
#include <export_module.hpp>
Public Member Functions | |
virtual returnValue | exportCode (const std::string &dirName, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16)=0 |
ExportModule () | |
virtual | ~ExportModule () |
Protected Member Functions | |
virtual returnValue | collectDataDeclarations (ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const =0 |
virtual returnValue | collectFunctionDeclarations (ExportStatementBlock &declarations) const =0 |
virtual returnValue | exportAcadoHeader (const std::string &_dirName, const std::string &_fileName, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const =0 |
returnValue | setupOptions () |
Protected Attributes | |
std::string | commonHeaderName |
User-interface to automatically generate algorithms for fast model predictive control.
The class ExportModule is a user-interface to automatically generate tailored algorithms for fast model predictive control. It takes an optimal control problem (OCP) formulation and generates code based on given user options.
Definition at line 55 of file export_module.hpp.
Default constructor.
Definition at line 44 of file export_module.cpp.
ExportModule::~ExportModule | ( | ) | [virtual] |
Destructor.
Definition at line 52 of file export_module.cpp.
virtual returnValue ExportModule::collectDataDeclarations | ( | ExportStatementBlock & | declarations, |
ExportStruct | dataStruct = ACADO_ANY |
||
) | const [protected, pure virtual] |
virtual returnValue ExportModule::collectFunctionDeclarations | ( | ExportStatementBlock & | declarations | ) | const [protected, pure virtual] |
virtual returnValue ExportModule::exportAcadoHeader | ( | const std::string & | _dirName, |
const std::string & | _fileName, | ||
const std::string & | _realString = "real_t" , |
||
const std::string & | _intString = "int" , |
||
int | _precision = 16 |
||
) | const [protected, pure virtual] |
Exports main header file for using the exported algorithm.
[in] | _dirName | Name of directory to be used to export file. |
[in] | _fileName | Name of file to be exported. |
[in] | _realString | std::string to be used to declare real variables. |
[in] | _intString | std::string to be used to declare integer variables. |
[in] | _precision | Number of digits to be used for exporting real values. |
virtual returnValue ExportModule::exportCode | ( | const std::string & | dirName, |
const std::string & | _realString = "real_t" , |
||
const std::string & | _intString = "int" , |
||
int | _precision = 16 |
||
) | [pure virtual] |
Exports all files of the auto-generated code into the given directory.
[in] | dirName | Name of directory to be used to export files. |
[in] | _realString | std::string to be used to declare real variables. |
[in] | _intString | std::string to be used to declare integer variables. |
[in] | _precision | Number of digits to be used for exporting real values. |
returnValue ExportModule::setupOptions | ( | ) | [protected, virtual] |
Sets-up default options.
Reimplemented from Options.
Definition at line 59 of file export_module.cpp.
std::string ExportModule::commonHeaderName [protected] |
Name of common header file.
Definition at line 135 of file export_module.hpp.