46 const std::string& _commonHeaderName
129 LOG(
LVL_DEBUG ) <<
"Preparing to export AdjointERKExport... " << endl;
174 rk_eta.
setDoc(
"Working array to pass the input values and return the results." );
175 reset_int.
setDoc(
"The internal memory of the integrator can be reset." );
178 integrate.
doc(
"Performs the integration and sensitivity propagation for one shooting interval." );
193 for(
uint run1 = 0; run1 < rkOrder; run1++ )
215 for(
uint run1 = 0; run1 < rkOrder; run1++ )
262 code <<
"#pragma omp threadprivate( "
#define LOG(level)
Just define a handy macro for getting the logger.
Lowest level, the debug level.
ExportVariable getRow(const ExportIndex &idx) const
Expression backwardDerivative(const Expression &arg1, const Expression &arg2)
Allows to export a tailored explicit Runge-Kutta integrator for fast model predictive control...
AdjointERKExport(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
double getFirstTime() const
ExportVariable & setup(const std::string &_name, uint _nRows=1, uint _nCols=1, ExportType _type=REAL, ExportStruct _dataStruct=ACADO_LOCAL, bool _callItByValue=false, const std::string &_prefix=std::string())
ExportAcadoFunction diffs_rhs
virtual ExportVariable getAuxVariable() const
Allows to pass back messages to the calling function.
virtual returnValue setup()
returnValue addComment(const std::string &_comment)
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Allows to export code of a for-loop.
string toString(T const &value)
returnValue setName(const std::string &_name)
virtual ~AdjointERKExport()
#define CLOSE_NAMESPACE_ACADO
GenericMatrix< double > DMatrix
const std::string getNameDiffsRHS() const
Defines a scalar-valued index variable to be used for exporting code.
Base class for all variables within the symbolic expressions family.
virtual returnValue setDoc(const std::string &_doc)
virtual ExportFunction & doc(const std::string &_doc)
ExportVariable getCols(const ExportIndex &idx1, const ExportIndex &idx2) const
const std::string getNameRHS() const
ExportVariable rk_forward_sweep
Encapsulates all user interaction for setting options, logging data and plotting results.
Allows to export code of an arbitrary function.
returnValue setDataStruct(ExportStruct _dataStruct)
returnValue addStatement(const ExportStatement &_statement)
virtual returnValue getDataDeclarations(ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const
std::string getFullName() const
virtual returnValue getDataDeclarations(ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const
returnValue addLinebreak(uint num=1)
ExportFunction & setReturnValue(const ExportVariable &_functionReturnValue, bool _returnAsPointer=false)
uint getNumIntervals() const
virtual returnValue setDifferentialEquation(const Expression &rhs)
returnValue setGlobalExportVariable(const ExportVariable &var)
DifferentialStateDerivative dx
returnValue addDeclaration(const ExportVariable &_data, ExportStruct _dataStruct=ACADO_ANY)
double getLastTime() const
#define BEGIN_NAMESPACE_ACADO
ExportVariable error_code
returnValue clearStaticCounters()
returnValue addFunction(const ExportFunction &_function)
virtual returnValue clear()
Allows to export code for a block of statements.
Allows to export a tailored explicit Runge-Kutta integrator with adjoint first order sensitivity prop...
ExportArgument getAddress(const ExportIndex &_rowIdx, const ExportIndex &_colIdx=emptyConstExportIndex) const
ExportVariable getCol(const ExportIndex &idx) const
virtual returnValue getCode(ExportStatementBlock &code)
returnValue init(const Function &_f, const std::string &_name="acadoFcn", const uint _numX=0, const uint _numXA=0, const uint _numU=0, const uint _numP=0, const uint _numDX=0, const uint _numOD=0)
ExportFunction & addIndex(const ExportIndex &_index)
#define ACADOERROR(retval)
virtual bool equidistantControlGrid() 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)
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.