46 const std::string& _commonHeaderName
104 if( f_ODE.
getNDX() > 0 ) {
192 LOG(
LVL_DEBUG ) <<
"Preparing to export ForwardOverBackwardERKExport... " << endl;
244 rk_eta.
setDoc(
"Working array to pass the input values and return the results." );
245 reset_int.
setDoc(
"The internal memory of the integrator can be reset." );
248 integrate.
doc(
"Performs the integration and sensitivity propagation for one shooting interval." );
262 if( inputDim > rhsDim ) {
270 for(
uint run1 = 0; run1 < rkOrder; run1++ )
285 if( inputDim > rhsDim ) {
291 for(
uint run1 = 0; run1 < rkOrder; run1++ )
320 for(
uint j = 0; j <= i; j++ ) {
321 new_expr << expr(i,j);
#define LOG(level)
Just define a handy macro for getting the logger.
Lowest level, the debug level.
Expression symmetricDerivative(const Expression &arg1, const Expression &arg2, const Expression &forward_seed, const Expression &backward_seed, Expression *forward_result, Expression *backward_result)
virtual returnValue setDifferentialEquation(const Expression &rhs)
ExportVariable getRow(const ExportIndex &idx) const
Expression backwardDerivative(const Expression &arg1, const Expression &arg2)
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())
virtual returnValue setup()
ExportAcadoFunction diffs_rhs
virtual ExportVariable getAuxVariable() const
Allows to pass back messages to the calling function.
ForwardOverBackwardERKExport(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
GenericMatrix & makeVector()
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Allows to export code of a for-loop.
Expression getCols(const uint &colIdx1, const uint &colIdx2) const
returnValue setName(const std::string &_name)
#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)
Expression returnLowerTriangular(const Expression &expr)
virtual ExportFunction & doc(const std::string &_doc)
ExportVariable getCols(const ExportIndex &idx1, const ExportIndex &idx2) const
Expression multipleForwardDerivative(const Expression &arg1, const Expression &arg2, const Expression &seed)
const std::string getNameRHS() const
ExportVariable rk_forward_sweep
Expression & appendRows(const Expression &arg)
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)
Expression transpose() const
returnValue addLinebreak(uint num=1)
ExportFunction & setReturnValue(const ExportVariable &_functionReturnValue, bool _returnAsPointer=false)
uint getNumIntervals() const
virtual ~ForwardOverBackwardERKExport()
returnValue setGlobalExportVariable(const ExportVariable &var)
DifferentialStateDerivative dx
double getLastTime() const
Expression getSubMatrix(const uint &rowIdx1, const uint &rowIdx2, const uint &colIdx1, const uint &colIdx2) const
#define BEGIN_NAMESPACE_ACADO
ExportVariable error_code
returnValue clearStaticCounters()
Allows to export a tailored explicit Runge-Kutta integrator with forward-over-backward second order s...
Expression & appendCols(const Expression &arg)
virtual returnValue clear()
Expression multipleBackwardDerivative(const Expression &arg1, const Expression &arg2, const Expression &seed)
Expression getRows(const uint &rowIdx1, const uint &rowIdx2) const
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
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.