Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00035 #ifndef ACADO_TOOLKIT_ERK_EXPORT_HPP
00036 #define ACADO_TOOLKIT_ERK_EXPORT_HPP
00037
00038 #include <acado/code_generation/integrators/rk_export.hpp>
00039
00040
00041 BEGIN_NAMESPACE_ACADO
00042
00043
00054 class ExplicitRungeKuttaExport : public RungeKuttaExport
00055 {
00056
00057
00058
00059
00060 public:
00061
00067 ExplicitRungeKuttaExport( UserInteraction* _userInteraction = 0,
00068 const std::string& _commonHeaderName = ""
00069 );
00070
00075 ExplicitRungeKuttaExport( const ExplicitRungeKuttaExport& arg
00076 );
00077
00080 virtual ~ExplicitRungeKuttaExport( );
00081
00082
00087 virtual returnValue setup( );
00088
00089
00097 virtual returnValue setDifferentialEquation( const Expression& rhs );
00098
00099
00106 virtual returnValue setLinearInput( const DMatrix& M1, const DMatrix& A1, const DMatrix& B1 );
00107
00108
00115 virtual returnValue setLinearOutput( const DMatrix& M3, const DMatrix& A3, const Expression& rhs );
00116
00117
00124 virtual returnValue setLinearOutput( const DMatrix& M3, const DMatrix& A3, const std::string& _rhs3, const std::string& _diffs_rhs3 );
00125
00126
00133 virtual returnValue getDataDeclarations( ExportStatementBlock& declarations,
00134 ExportStruct dataStruct = ACADO_ANY
00135 ) const;
00136
00137
00144 virtual returnValue getFunctionDeclarations( ExportStatementBlock& declarations
00145 ) const;
00146
00147
00148
00155 virtual returnValue getCode( ExportStatementBlock& code
00156 );
00157
00158
00166 virtual returnValue setupOutput( const std::vector<Grid> outputGrids_,
00167 const std::vector<Expression> rhs );
00168
00169
00179 virtual returnValue setupOutput( const std::vector<Grid> outputGrids_,
00180 const std::vector<std::string> _outputNames,
00181 const std::vector<std::string> _diffs_outputNames,
00182 const std::vector<uint> _dims_output );
00183
00184
00195 virtual returnValue setupOutput( const std::vector<Grid> outputGrids_,
00196 const std::vector<std::string> _outputNames,
00197 const std::vector<std::string> _diffs_outputNames,
00198 const std::vector<uint> _dims_output,
00199 const std::vector<DMatrix> _outputDependencies );
00200
00201
00202 protected:
00203
00204
00209 ExportVariable getAuxVariable() const;
00210
00211
00212 protected:
00213
00214
00215 };
00216
00217 CLOSE_NAMESPACE_ACADO
00218
00219
00220 #include <acado/code_generation/integrators/erk_adjoint_export.hpp>
00221 #include <acado/code_generation/integrators/erk_fob_export.hpp>
00222 #include <acado/code_generation/integrators/erk_3sweep_export.hpp>
00223 #include <acado/code_generation/integrators/erk_export.ipp>
00224
00225
00226 #endif // ACADO_TOOLKIT_ERK_EXPORT_HPP
00227
00228