Interface generator for the qpDUNES QP solver. More...
#include <export_split_qpdunes_interface.hpp>
Public Member Functions | |
returnValue | configure (const unsigned _maxIter, const unsigned _printLevel, const std::string &_HH, const std::string &_g, const std::string &_gN, const std::string &_CC, const std::string &_c, const std::string &_DD, const std::string &_lb0, const std::string &_ub0, const std::string &_lb, const std::string &_ub, const std::string &_lbA, const std::string &_ubA, const std::string &_primal, const std::string &_lambda, const std::string &_mu, const std::vector< unsigned > &conDim, const std::string &_initialStateFixed, const std::string &_diagH, const std::string &_diagHN, const unsigned _NI, const unsigned _NX, const unsigned _NU) |
ExportSplitQpDunesInterface (const std::string &_fileName, const std::string &_commonHeaderName="", const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16, const std::string &_commentString=std::string()) | |
virtual | ~ExportSplitQpDunesInterface () |
Public Member Functions inherited from ExportTemplatedFile | |
virtual returnValue | configure () |
ExportTemplatedFile () | |
ExportTemplatedFile (const std::string &_templateName, const std::string &_fileName, const std::string &_commonHeaderName="", const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16, const std::string &_commentString=std::string()) | |
virtual returnValue | setup (const std::string &_templateName, const std::string &_fileName, const std::string &_commonHeaderName="", const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16, const std::string &_commentString=std::string()) |
virtual | ~ExportTemplatedFile () |
Public Member Functions inherited from ExportFile | |
virtual returnValue | exportCode () const |
ExportFile () | |
ExportFile (const std::string &_fileName, const std::string &_commonHeaderName="", const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16, const std::string &_commentString=std::string()) | |
virtual returnValue | setup (const std::string &_fileName, const std::string &_commonHeaderName="", const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16, const std::string &_commentString=std::string()) |
virtual | ~ExportFile () |
Public Member Functions inherited from ExportStatementBlock | |
returnValue | addComment (const std::string &_comment) |
returnValue | addComment (uint _nBlanks, const std::string &_comment) |
returnValue | addDeclaration (const ExportVariable &_data, ExportStruct _dataStruct=ACADO_ANY) |
returnValue | addDeclaration (const ExportIndex &_data, ExportStruct _dataStruct=ACADO_ANY) |
returnValue | addDeclaration (const ExportFunction &_f) |
returnValue | addDeclaration (const ExportAcadoFunction &_f) |
returnValue | addFunction (const ExportFunction &_function) |
returnValue | addFunctionCall (const std::string &_fName, const ExportArgument &_argument1=emptyConstExportArgument, const ExportArgument &_argument2=emptyConstExportArgument, const ExportArgument &_argument3=emptyConstExportArgument, const ExportArgument &_argument4=emptyConstExportArgument, const ExportArgument &_argument5=emptyConstExportArgument, const ExportArgument &_argument6=emptyConstExportArgument, const ExportArgument &_argument7=emptyConstExportArgument, const ExportArgument &_argument8=emptyConstExportArgument, const ExportArgument &_argument9=emptyConstExportArgument) |
returnValue | addFunctionCall (const ExportFunction &_f, const ExportArgument &_argument1=emptyConstExportArgument, const ExportArgument &_argument2=emptyConstExportArgument, const ExportArgument &_argument3=emptyConstExportArgument, const ExportArgument &_argument4=emptyConstExportArgument, const ExportArgument &_argument5=emptyConstExportArgument, const ExportArgument &_argument6=emptyConstExportArgument, const ExportArgument &_argument7=emptyConstExportArgument, const ExportArgument &_argument8=emptyConstExportArgument, const ExportArgument &_argument9=emptyConstExportArgument) |
returnValue | addLinebreak (uint num=1) |
returnValue | addStatement (const ExportStatement &_statement) |
returnValue | addStatement (const std::string &_statementString) |
returnValue | clear () |
virtual ExportStatement * | clone () const |
virtual returnValue | exportCode (std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const |
virtual returnValue | exportDataDeclaration (std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const |
ExportStatementBlock () | |
ExportStatementBlock (const ExportStatementBlock &arg) | |
uint | getNumStatements () const |
ExportStatementBlock & | operator= (const ExportStatementBlock &rhs) |
virtual | ~ExportStatementBlock () |
Public Member Functions inherited from ExportStatement | |
virtual ExportStatement & | acquire (ExportIndex &) |
virtual ExportStatement & | allocate (MemoryAllocatorPtr) |
ExportStatement () | |
ExportStatement (const ExportStatement &arg) | |
ExportStatement & | operator= (const ExportStatement &arg) |
virtual ExportStatement & | release (const ExportIndex &) |
virtual | ~ExportStatement () |
Additional Inherited Members | |
Public Types inherited from ExportStatement | |
typedef std::shared_ptr< MemoryAllocator > | MemoryAllocatorPtr |
typedef std::shared_ptr< ExportStatement > | StatementPtr |
typedef std::vector< StatementPtr > | StatementPtrArray |
Static Public Attributes inherited from ExportStatement | |
static std::string | fcnPrefix = "acado" |
static std::string | varPrefix = "ACADO" |
Protected Member Functions inherited from ExportTemplatedFile | |
returnValue | fillTemplate () |
Protected Attributes inherited from ExportTemplatedFile | |
std::map< std::string, std::string > | dictionary |
std::string | folders |
std::string | templateName |
Protected Attributes inherited from ExportFile | |
std::string | commentString |
std::string | commonHeaderName |
std::string | fileName |
std::string | intString |
int | precision |
std::string | realString |
Protected Attributes inherited from ExportStatementBlock | |
StatementPtrArray | statements |
Interface generator for the qpDUNES QP solver.
Definition at line 47 of file export_split_qpdunes_interface.hpp.
BEGIN_NAMESPACE_ACADO ExportSplitQpDunesInterface::ExportSplitQpDunesInterface | ( | const std::string & | _fileName, |
const std::string & | _commonHeaderName = "" , |
||
const std::string & | _realString = "real_t" , |
||
const std::string & | _intString = "int" , |
||
int | _precision = 16 , |
||
const std::string & | _commentString = std::string() |
||
) |
Default constructor.
@param[in] _fileName Name of exported file. @param[in] _commonHeaderName Name of common header file to be included. @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. @param[in] _commentstd::string std::string to be used for exporting comments. \return SUCCESSFUL_RETURN
Definition at line 39 of file export_split_qpdunes_interface.cpp.
|
inlinevirtual |
Destructor.
Definition at line 70 of file export_split_qpdunes_interface.hpp.
returnValue ExportSplitQpDunesInterface::configure | ( | const unsigned | _maxIter, |
const unsigned | _printLevel, | ||
const std::string & | _HH, | ||
const std::string & | _g, | ||
const std::string & | _gN, | ||
const std::string & | _CC, | ||
const std::string & | _c, | ||
const std::string & | _DD, | ||
const std::string & | _lb0, | ||
const std::string & | _ub0, | ||
const std::string & | _lb, | ||
const std::string & | _ub, | ||
const std::string & | _lbA, | ||
const std::string & | _ubA, | ||
const std::string & | _primal, | ||
const std::string & | _lambda, | ||
const std::string & | _mu, | ||
const std::vector< unsigned > & | conDim, | ||
const std::string & | _initialStateFixed, | ||
const std::string & | _diagH, | ||
const std::string & | _diagHN, | ||
const unsigned | _NI, | ||
const unsigned | _NX, | ||
const unsigned | _NU | ||
) |
Configure the template
Definition at line 48 of file export_split_qpdunes_interface.cpp.