35 #ifndef ACADO_TOOLKIT_IRK_EXPORT_HPP 36 #define ACADO_TOOLKIT_IRK_EXPORT_HPP 69 const std::string& _commonHeaderName =
"" 139 const std::vector<Expression> rhs );
152 const std::vector<std::string> _outputNames,
153 const std::vector<std::string> _diffs_outputNames,
154 const std::vector<uint> _dims_output );
168 const std::vector<std::string> _outputNames,
169 const std::vector<std::string> _diffs_outputNames,
170 const std::vector<uint> _dims_output,
171 const std::vector<DMatrix> _outputDependencies );
268 const std::string& h );
373 bool DERIVATIVES =
false );
390 bool DERIVATIVES =
false );
483 const uint directions );
601 #include <acado/code_generation/integrators/irk_export.ipp> 604 #endif // ACADO_TOOLKIT_IRK_EXPORT_HPP DVector computeCombinations(const DVector &cVec, uint index, uint numEls)
DMatrix simplified_transf2
DVector evaluatePolynomial(double time)
returnValue initializeDDMatrix()
virtual returnValue setupOutput(const std::vector< Grid > outputGrids_, const std::vector< Expression > rhs)
std::vector< ExportVariable > gridVariables
returnValue setSimplifiedTransformations(const DMatrix &_transf1, const DMatrix &_transf2)
Allows to export a tailored Runge-Kutta integrator for fast model predictive control.
std::vector< ExportVariable > polynVariables
Allows to export code of an ACADO function.
virtual returnValue evaluateRhsImplicitSystem(ExportStatementBlock *block, const ExportIndex &k_index, const ExportIndex &stage)
Allows to pass back messages to the calling function.
returnValue initializeCoefficients()
ExportLinearSolver * solver
DMatrix simplified_transf1_T
virtual ~ImplicitRungeKuttaExport()
Block< Derived > block(Index startRow, Index startCol, Index blockRows, Index blockCols)
ImplicitRungeKuttaExport(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
virtual returnValue prepareInputSystem(ExportStatementBlock &code)
virtual returnValue evaluateStatesImplicitSystem(ExportStatementBlock *block, const ExportIndex &k_index, const ExportVariable &Ah, const ExportVariable &C, const ExportIndex &stage, const ExportIndex &i, const ExportIndex &tmp_index)
virtual returnValue solveImplicitSystem(ExportStatementBlock *block, const ExportIndex &index1, const ExportIndex &index2, const ExportIndex &index3, const ExportIndex &tmp_index, const ExportIndex &k_index, const ExportVariable &Ah, const ExportVariable &C, const ExportVariable &det, bool DERIVATIVES=false)
#define CLOSE_NAMESPACE_ACADO
ExportVariable rk_rhsOutputTemp
returnValue setSingleTransformations(const double _tau, const DVector &_low_tria, const DMatrix &_transf1, const DMatrix &_transf2)
Defines a scalar-valued index variable to be used for exporting code.
virtual returnValue copy(const ImplicitRungeKuttaExport &arg)
std::vector< uint > totalMeas
Base class for all variables within the symbolic expressions family.
Allows to export a tailored implicit Runge-Kutta integrator for fast model predictive control...
Expression jacobian(const Expression &arg1, const Expression &arg2)
virtual returnValue evaluateMatrix(ExportStatementBlock *block, const ExportIndex &index1, const ExportIndex &index2, const ExportIndex &tmp_index, const ExportIndex &k_index, const ExportVariable &_rk_A, const ExportVariable &Ah, const ExportVariable &C, bool evaluateB, bool DERIVATIVES)
std::vector< ExportVariable > numMeasVariables
DVector evaluateDerivedPolynomial(double time)
returnValue setModel(const std::string &_rhs, const std::string &_diffs_rhs)
uint getNumItsInit() const
ExportVariable rk_auxSolver
virtual returnValue solveOutputSystem(ExportStatementBlock *block, const ExportIndex &index1, const ExportIndex &index2, const ExportIndex &index3, const ExportIndex &tmp_index, const ExportVariable &Ah, bool DERIVATIVES=false)
ExportAcadoFunction lin_output
Encapsulates all user interaction for setting options, logging data and plotting results.
ExportVariable rk_diffsOutputTemp
virtual DMatrix formMatrix(const DMatrix &mass, const DMatrix &jacobian)
virtual returnValue getFunctionDeclarations(ExportStatementBlock &declarations) const
virtual returnValue getDataDeclarations(ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const
returnValue evaluateStatesOutputSystem(ExportStatementBlock *block, const ExportVariable &Ah, const ExportIndex &stage)
std::vector< ExportVariable > polynDerVariables
returnValue generateOutput(ExportStatementBlock *block, const ExportIndex &index0, const ExportIndex &index1, const ExportIndex &tmp_index1, const ExportIndex &tmp_index2, const ExportVariable &tmp_meas, const ExportVariable &time_tmp, const uint directions)
ImplicitRungeKuttaExport & operator=(const ImplicitRungeKuttaExport &arg)
returnValue prepareOutputEvaluation(ExportStatementBlock &code)
returnValue setEigenvalues(const DMatrix &_eig)
std::vector< ExportVariable > rk_outputs
#define BEGIN_NAMESPACE_ACADO
ExportVariable rk_rhsTemp
DMatrix simplified_transf2_T
virtual returnValue prepareOutputSystem(ExportStatementBlock &code)
virtual ExportVariable getAuxVariable() const
Allows to export automatically generated algorithms for solving linear systems of specific dimensions...
ExportVariable rk_diffsTemp3
std::vector< ExportIndex > numMeas
virtual returnValue setDifferentialEquation(const Expression &rhs)
DVector divideMeasurements(uint index)
ExportVariable polynEvalVar
Allows to export code for a block of statements.
virtual returnValue solveInputSystem(ExportStatementBlock *block, const ExportIndex &index1, const ExportIndex &index2, const ExportIndex &index3, const ExportIndex &tmp_index, const ExportVariable &Ah)
virtual returnValue getCode(ExportStatementBlock &code)
Defines a matrix-valued variable to be used for exporting code.
virtual returnValue setup()
DMatrix simplified_transf1