User-interface to automatically generate algorithms for fast model predictive control.
More...
|
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 () |
|
virtual int | addPlotWindow (PlotWindow &_window) |
|
virtual int | operator<< (PlotWindow &_window) |
|
virtual int | operator<< (LogRecord &_record) |
|
UserInteraction & | operator= (const UserInteraction &rhs) |
|
| UserInteraction () |
|
| UserInteraction (const UserInteraction &rhs) |
|
virtual | ~UserInteraction () |
|
returnValue | addOptionsList () |
|
returnValue | ensureConsistency () |
|
returnValue | ensureConsistency () |
|
returnValue | get (OptionsName name, int &value) const |
|
returnValue | get (OptionsName name, double &value) const |
|
returnValue | get (OptionsName name, std::string &value) const |
|
returnValue | get (uint idx, OptionsName name, int &value) const |
|
returnValue | get (uint idx, OptionsName name, double &value) const |
|
returnValue | get (uint idx, OptionsName name, std::string &value) const |
|
uint | getNumOptionsLists () const |
|
Options | getOptions (uint idx) const |
|
Options & | operator= (const Options &rhs) |
|
Options & | operator= (const Options &rhs) |
|
| Options () |
|
| Options () |
|
| Options (const Options &rhs) |
|
| Options (const Options &rhs) |
|
| Options () |
|
| Options (const OptionsList &_optionsList) |
|
returnValue | print () const |
|
returnValue | print () const |
|
returnValue | printOptionsList () const |
|
returnValue | printOptionsList (uint idx) const |
|
returnValue | set (OptionsName name, int value) |
|
returnValue | set (OptionsName name, double value) |
|
returnValue | set (OptionsName name, const std::string &value) |
|
returnValue | set (uint idx, OptionsName name, int value) |
|
returnValue | set (uint idx, OptionsName name, double value) |
|
returnValue | set (uint idx, OptionsName name, const std::string &value) |
|
returnValue | setOptions (const Options &arg) |
|
returnValue | setOptions (uint idx, const Options &arg) |
|
returnValue | setToDefault () |
|
returnValue | setToDefault () |
|
returnValue | setToFast () |
|
returnValue | setToFast () |
|
returnValue | setToMPC () |
|
returnValue | setToReliable () |
|
returnValue | setToReliable () |
|
| ~Options () |
|
| ~Options () |
|
virtual | ~Options () |
|
int | addLogRecord (LogRecord &record) |
|
returnValue | getAll (LogName _name, MatrixVariablesGrid &values) const |
|
returnValue | getFirst (LogName _name, DMatrix &firstValue) const |
|
returnValue | getFirst (LogName _name, VariablesGrid &firstValue) const |
|
returnValue | getLast (LogName _name, DMatrix &lastValue) const |
|
returnValue | getLast (LogName _name, VariablesGrid &lastValue) const |
|
returnValue | getLogRecord (LogRecord &_record) const |
|
uint | getNumLogRecords () const |
|
| Logging () |
|
int | operator<< (LogRecord &record) |
|
returnValue | printLoggingInfo () const |
|
returnValue | printNumDoubles () const |
|
returnValue | setAll (LogName _name, const MatrixVariablesGrid &values) |
|
returnValue | setLast (LogName _name, const DMatrix &value, double time=-INFTY) |
|
returnValue | setLast (LogName _name, VariablesGrid &value, double time=-INFTY) |
|
returnValue | updateLogRecord (LogRecord &_record) const |
|
virtual | ~Logging () |
|
int | addPlotWindow (PlotWindow &_window) |
|
uint | getNumPlotWindows () const |
|
returnValue | getPlotWindow (uint idx, PlotWindow &_window) const |
|
returnValue | getPlotWindow (PlotWindow &_window) const |
|
int | operator<< (PlotWindow &_window) |
|
Plotting & | operator= (const Plotting &rhs) |
|
virtual returnValue | plot (PlotFrequency _frequency=PLOT_IN_ANY_CASE) |
|
| Plotting () |
|
| Plotting (const Plotting &rhs) |
|
virtual returnValue | replot (PlotFrequency _frequency=PLOT_IN_ANY_CASE) |
|
virtual | ~Plotting () |
|
|
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 () |
|
virtual returnValue | getPlotDataFromMemberLoggings (PlotWindow &_window) const |
|
BlockStatus | getStatus () const |
|
returnValue | setStatus (BlockStatus _status) |
|
returnValue | addOption (OptionsName name, int value) |
|
returnValue | addOption (OptionsName name, double value) |
|
returnValue | addOption (OptionsName name, const std::string &value) |
|
returnValue | addOption (uint idx, OptionsName name, int value) |
|
returnValue | addOption (uint idx, OptionsName name, double value) |
|
returnValue | addOption (uint idx, OptionsName name, const std::string &value) |
|
returnValue | clearOptionsList () |
|
returnValue | copy (const Options &rhs) |
|
returnValue | copy (const Options &rhs) |
|
returnValue | declareOptionsUnchanged () |
|
returnValue | declareOptionsUnchanged (uint idx) |
|
BooleanType | haveOptionsChanged () const |
|
BooleanType | haveOptionsChanged (uint idx) const |
|
virtual returnValue | setupLogging () |
|
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.
\author Hans Joachim Ferreau, Boris Houska
Definition at line 55 of file export_module.hpp.
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 |
|
protectedpure virtual |
Exports main header file for using the exported algorithm.
@param[in] _dirName Name of directory to be used to export file.
@param[in] _fileName Name of file to be exported.
@param[in] _realString std::string to be used to declare real variables.
@param[in] _intString std::string to be used to declare integer variables.
@param[in] _precision Number of digits to be used for exporting real values.
\return SUCCESSFUL_RETURN
Implemented in OCPexport, and SIMexport.
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.
@param[in] dirName Name of directory to be used to export files.
@param[in] _realString std::string to be used to declare real variables.
@param[in] _intString std::string to be used to declare integer variables.
@param[in] _precision Number of digits to be used for exporting real values.
\return SUCCESSFUL_RETURN
Implemented in SIMexport, and OCPexport.