erk_export.hpp
Go to the documentation of this file.
00001 /*
00002  *    This file is part of ACADO Toolkit.
00003  *
00004  *    ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
00005  *    Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
00006  *    Milan Vukov, Rien Quirynen, KU Leuven.
00007  *    Developed within the Optimization in Engineering Center (OPTEC)
00008  *    under supervision of Moritz Diehl. All rights reserved.
00009  *
00010  *    ACADO Toolkit is free software; you can redistribute it and/or
00011  *    modify it under the terms of the GNU Lesser General Public
00012  *    License as published by the Free Software Foundation; either
00013  *    version 3 of the License, or (at your option) any later version.
00014  *
00015  *    ACADO Toolkit is distributed in the hope that it will be useful,
00016  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  *    Lesser General Public License for more details.
00019  *
00020  *    You should have received a copy of the GNU Lesser General Public
00021  *    License along with ACADO Toolkit; if not, write to the Free Software
00022  *    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
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     // PUBLIC MEMBER FUNCTIONS:
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 // end of file.


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Thu Aug 27 2015 11:58:09