discrete_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_DT_EXPORT_HPP
00036 #define ACADO_TOOLKIT_DT_EXPORT_HPP
00037 
00038 #include <acado/code_generation/integrators/integrator_export.hpp>
00039 
00040 #include <acado/code_generation/export_algorithm_factory.hpp>
00041 
00042 
00043 BEGIN_NAMESPACE_ACADO
00044 
00045 
00056 class DiscreteTimeExport : public IntegratorExport
00057 {
00058     //
00059     // PUBLIC MEMBER FUNCTIONS:
00060     //
00061     public:
00062 
00068         DiscreteTimeExport(     UserInteraction* _userInteraction = 0,
00069                                                         const std::string& _commonHeaderName = ""
00070                                                         );
00071 
00076         DiscreteTimeExport(     const DiscreteTimeExport& arg
00077                                                         );
00078 
00081         virtual ~DiscreteTimeExport( );
00082 
00087                 DiscreteTimeExport& operator=(  const DiscreteTimeExport& arg
00088                                                                                 );
00089 
00090 
00095                 virtual returnValue setup( );
00096 
00097 
00105                 virtual returnValue setDifferentialEquation( const Expression& rhs );
00106 
00107 
00115                 virtual returnValue setNARXmodel( const uint delay, const DMatrix& parms );
00116 
00117 
00125                 virtual returnValue setupOutput(  const std::vector<Grid> outputGrids_,
00126                                                                                   const std::vector<Expression> rhs );
00127 
00128 
00138                 virtual returnValue setupOutput(  const std::vector<Grid> outputGrids_,
00139                                                                                   const std::vector<std::string> _outputNames,
00140                                                                                   const std::vector<std::string> _diffs_outputNames,
00141                                                                                   const std::vector<uint> _dims_output );
00142 
00143 
00154                 virtual returnValue setupOutput(  const std::vector<Grid> outputGrids_,
00155                                                                                   const std::vector<std::string> _outputNames,
00156                                                                                   const std::vector<std::string> _diffs_outputNames,
00157                                                                                   const std::vector<uint> _dims_output,
00158                                                                                   const std::vector<DMatrix> _outputDependencies );
00159 
00160 
00167                 virtual returnValue getDataDeclarations(        ExportStatementBlock& declarations,
00168                                                                                                         ExportStruct dataStruct = ACADO_ANY
00169                                                                                                         ) const;
00170 
00171 
00178                 virtual returnValue getFunctionDeclarations(    ExportStatementBlock& declarations
00179                                                                                                                 ) const;
00180 
00181 
00182 
00189                 virtual returnValue getCode(    ExportStatementBlock& code
00190                                                                                 );
00191 
00192 
00193 
00194         protected:
00195 
00196 
00201                 ExportVariable getAuxVariable() const;
00202 
00203 
00210                 virtual returnValue copy(       const DiscreteTimeExport& arg
00211                                                         );
00212 
00213 
00214     protected:
00215 
00216                 ExportVariable  rk_diffsTemp3;
00217 
00218 };
00219 
00220 IntegratorExport* createDiscreteTimeExport(     UserInteraction* _userInteraction,
00221                                                                                         const std::string &_commonHeaderName );
00222 
00223 
00224 CLOSE_NAMESPACE_ACADO
00225 
00226 
00227 #endif  // ACADO_TOOLKIT_DT_EXPORT_HPP
00228 
00229 // end of file.


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