33 #include <acado/code_generation/templates/templates.hpp> 41 const std::string& _sourceFileName,
42 const std::string& _commonHeaderName,
43 const std::string& _realString,
44 const std::string& _intString,
46 const std::string& _commentString
48 : qpoHeader(QPOASES_HEADER, _headerFileName, _commonHeaderName, _realString, _intString, _precision, _commentString),
49 qpoSource(QPOASES_SOURCE, _sourceFileName, _commonHeaderName, _realString, _intString, _precision, _commentString)
54 const std::string& _solverDefine,
58 const std::string& _printLevel,
59 bool _useSinglePrecision,
61 const std::string& _commonHeader,
62 const std::string& _namespace,
63 const std::string& _primalSolution,
64 const std::string& _dualSolution,
65 const std::string& _sigma,
67 bool _externalCholesky,
68 const std::string& _qpH,
69 const std::string& _qpR,
70 const std::string& _qpg,
71 const std::string& _qpA,
72 const std::string& _qplb,
73 const std::string& _qpub,
74 const std::string& _qplbA,
75 const std::string& _qpubA
86 solverName =
"QProblem";
89 if (_externalCholesky ==
false)
91 s << _qpg <<
", " << _qpA <<
", " << _qplb <<
", " << _qpub <<
", " 94 if ( (
bool)_hotstartQP ==
true )
95 s <<
", " << _dualSolution;
97 ctor << solverName <<
" qp(" << nvmax <<
", " << ncmax <<
")";
101 solverName =
"QProblemB";
104 if (_externalCholesky ==
false)
108 if ( (
bool)_hotstartQP ==
true )
109 s <<
", " << _dualSolution;
111 ctor << solverName <<
" qp( " << nvmax <<
" )";
150 if ( _useSinglePrecision )
std::map< std::string, std::string > dictionary
Allows to pass back messages to the calling function.
virtual returnValue configure(const std::string &_prefix, const std::string &_solverDefine, const int nvmax, const int ncmax, const int nwsrmax, const std::string &_printLevel, bool _useSinglePrecision, const std::string &_commonHeader, const std::string &_namespace, const std::string &_primalSolution, const std::string &_dualSolution, const std::string &_sigma, bool _hotstartQP, bool _externalCholesky, const std::string &_qpH, const std::string &_qpR, const std::string &_qpg, const std::string &_qpA, const std::string &_qplb, const std::string &_qpub, const std::string &_qplbA, const std::string &_qpubA)
string toString(T const &value)
#define CLOSE_NAMESPACE_ACADO
ExportQpOasesInterface(const std::string &_headerFileName, const std::string &_sourceFileName, const std::string &_commonHeaderName="", const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16, const std::string &_commentString=std::string())
static std::string fcnPrefix
ExportTemplatedFile qpoSource
virtual returnValue exportCode()
#define BEGIN_NAMESPACE_ACADO
ExportTemplatedFile qpoHeader
virtual returnValue exportCode() const
returnValue fillTemplate()
static std::string varPrefix