39 const std::string& _commonHeaderName
49 LOG(
LVL_DEBUG ) <<
"Solver: setup extra initialization... " << endl;
57 initialize <<
"ret = (int)initializeQpDunes();\n" 58 <<
"if ((return_t)ret != QPDUNES_OK) return ret;\n";
62 cleanupQpDunes.
setName(
"cleanupQpDunes" );
94 retSim.
setDoc(
"Status of the integration module. =0: OK, otherwise the error code.");
115 for(
uint i = 0; i <
NX; i++ ) {
130 prep << retSim.
getName() <<
" = prepareQpDunes( );" << endl;
141 tmp.
setDoc(
"Status code of the qpOASES QP solver." );
144 feedback.
doc(
"Feedback/estimation step of the RTI scheme." );
160 s << tmp.
getName() <<
" = solveQpDunes( );" << endl;
179 ss <<
"qpDUNES_shiftLambda( &qpData );" << endl
180 <<
"qpDUNES_shiftIntervals( &qpData );" << endl;
193 getKKT.
doc(
"Get the KKT tolerance of the current iterate." );
194 kkt.
setDoc(
"KKT tolerance." );
227 "KKT Tolerance with affine stage constraints is under development");
251 for (
unsigned el = 0; el <
NX; ++el)
270 int maxNumQPiterations;
274 if ( maxNumQPiterations <= 0 )
std::shared_ptr< ExportSplitQpDunesInterface > qpInterface
#define LOG(level)
Just define a handy macro for getting the logger.
Lowest level, the debug level.
std::string getFullName() const
virtual bool isDefined() const
ExportFunction condensePrep
uint getNumBlockVariables() const
ExportFunction & setName(const std::string &_name)
ExportFunction preparation
Allows to pass back messages to the calling function.
ExportVariable getRow(const ExportIndex &idx) const
virtual returnValue setupEvaluation()
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
ExportGaussNewtonBlockQpDunes(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
Allows to export code of a for-loop.
std::vector< unsigned > qpConDim
uint getNumberOfBlocks() const
#define CLOSE_NAMESPACE_ACADO
ExportVariable getElement(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
Defines a scalar-valued index variable to be used for exporting code.
An OCP solver based on the block N^2 condensing algorithm.
ExportVariable getRows(const ExportIndex &idx1, const ExportIndex &idx2) const
bool initialStateFixed() const
ExportFunction & setup(const std::string &_name="defaultFunctionName", 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)
virtual returnValue setDoc(const std::string &_doc)
virtual returnValue setup()
std::string commonHeaderName
ExportFunction modelSimulation
virtual ExportFunction & doc(const std::string &_doc)
double levenbergMarquardt
bool isGiven(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
ExportVariable getTranspose() const
Encapsulates all user interaction for setting options, logging data and plotting results.
ExportFunction shiftQpData
Allows to export code of an arbitrary function.
virtual returnValue setupQPInterface()
returnValue addStatement(const ExportStatement &_statement)
std::string getName() const
returnValue addLinebreak(uint num=1)
#define ACADOWARNINGTEXT(retval, text)
ExportFunction & setReturnValue(const ExportVariable &_functionReturnValue, bool _returnAsPointer=false)
uint getBlockSize() const
unsigned getNumComplexConstraints(void)
std::string getName() const
#define BEGIN_NAMESPACE_ACADO
Interface generator for the qpDUNES QP solver.
const std::string get(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
returnValue addFunction(const ExportFunction &_function)
virtual returnValue setup()
virtual returnValue getCode(ExportStatementBlock &code)
virtual returnValue getCode(ExportStatementBlock &code)
ExportVariable getCols(const ExportIndex &idx1, const ExportIndex &idx2) const
unsigned getNumQPvars() const
Allows to export code for a block of statements.
ExportFunction initialize
ExportFunction evaluateConstraints
ExportFunction evaluateObjective
ExportFunction & addIndex(const ExportIndex &_index)
ExportFunction regularizeHessian
ExportVariable makeColVector() const
Defines a matrix-valued variable to be used for exporting code.
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)