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
uint getBlockSize() const
#define LOG(level)
Just define a handy macro for getting the logger.
Lowest level, the debug level.
ExportVariable getRow(const ExportIndex &idx) const
ExportFunction condensePrep
uint getNumBlockVariables() const
ExportFunction & setName(const std::string &_name)
ExportFunction preparation
ExportVariable getTranspose() const
bool initialStateFixed() const
bool isGiven(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
Allows to pass back messages to the calling function.
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
ExportVariable getElement(const ExportIndex &rowIdx, const ExportIndex &colIdx) const
#define CLOSE_NAMESPACE_ACADO
Defines a scalar-valued index variable to be used for exporting code.
An OCP solver based on the block N^2 condensing algorithm.
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)
virtual bool isDefined() const
ExportVariable getCols(const ExportIndex &idx1, const ExportIndex &idx2) const
double levenbergMarquardt
const std::string get(const ExportIndex &rowIdx, const ExportIndex &colIdx) 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 getFullName() const
returnValue addLinebreak(uint num=1)
#define ACADOWARNINGTEXT(retval, text)
ExportFunction & setReturnValue(const ExportVariable &_functionReturnValue, bool _returnAsPointer=false)
std::string getName() const
ExportVariable getRows(const ExportIndex &idx1, const ExportIndex &idx2) const
uint getNumberOfBlocks() const
unsigned getNumComplexConstraints(void)
#define BEGIN_NAMESPACE_ACADO
Interface generator for the qpDUNES QP solver.
returnValue addFunction(const ExportFunction &_function)
virtual returnValue setup()
virtual returnValue getCode(ExportStatementBlock &code)
virtual returnValue getCode(ExportStatementBlock &code)
Allows to export code for a block of statements.
ExportFunction initialize
ExportFunction evaluateConstraints
ExportFunction evaluateObjective
unsigned getNumQPvars() const
ExportFunction & addIndex(const ExportIndex &_index)
ExportFunction regularizeHessian
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)
ExportVariable makeColVector() const
std::string getName() const