discrete_export.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of ACADO Toolkit.
3  *
4  * ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
5  * Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
6  * Milan Vukov, Rien Quirynen, KU Leuven.
7  * Developed within the Optimization in Engineering Center (OPTEC)
8  * under supervision of Moritz Diehl. All rights reserved.
9  *
10  * ACADO Toolkit is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 3 of the License, or (at your option) any later version.
14  *
15  * ACADO Toolkit is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with ACADO Toolkit; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25 
26 
27 
35 #ifndef ACADO_TOOLKIT_DT_EXPORT_HPP
36 #define ACADO_TOOLKIT_DT_EXPORT_HPP
37 
39 
41 
42 
44 
45 
57 {
58  //
59  // PUBLIC MEMBER FUNCTIONS:
60  //
61  public:
62 
68  DiscreteTimeExport( UserInteraction* _userInteraction = 0,
69  const std::string& _commonHeaderName = ""
70  );
71 
77  );
78 
81  virtual ~DiscreteTimeExport( );
82 
88  );
89 
90 
95  virtual returnValue setup( );
96 
97 
106 
107 
115  virtual returnValue setNARXmodel( const uint delay, const DMatrix& parms );
116 
117 
125  virtual returnValue setupOutput( const std::vector<Grid> outputGrids_,
126  const std::vector<Expression> rhs );
127 
128 
138  virtual returnValue setupOutput( const std::vector<Grid> outputGrids_,
139  const std::vector<std::string> _outputNames,
140  const std::vector<std::string> _diffs_outputNames,
141  const std::vector<uint> _dims_output );
142 
143 
154  virtual returnValue setupOutput( const std::vector<Grid> outputGrids_,
155  const std::vector<std::string> _outputNames,
156  const std::vector<std::string> _diffs_outputNames,
157  const std::vector<uint> _dims_output,
158  const std::vector<DMatrix> _outputDependencies );
159 
160 
168  ExportStruct dataStruct = ACADO_ANY
169  ) const;
170 
171 
179  ) const;
180 
181 
182 
190  );
191 
192 
193 
194  protected:
195 
196 
202 
203 
210  virtual returnValue copy( const DiscreteTimeExport& arg
211  );
212 
213 
214  protected:
215 
217 
218 };
219 
221  const std::string &_commonHeaderName );
222 
223 
225 
226 
227 #endif // ACADO_TOOLKIT_DT_EXPORT_HPP
228 
229 // end of file.
virtual returnValue copy(const DiscreteTimeExport &arg)
ExportVariable getAuxVariable() const
virtual returnValue setupOutput(const std::vector< Grid > outputGrids_, const std::vector< Expression > rhs)
Allows to pass back messages to the calling function.
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Definition: acado_types.hpp:42
virtual returnValue getFunctionDeclarations(ExportStatementBlock &declarations) const
#define CLOSE_NAMESPACE_ACADO
Base class for all variables within the symbolic expressions family.
Definition: expression.hpp:56
virtual returnValue getDataDeclarations(ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const
ExportStruct
virtual returnValue getCode(ExportStatementBlock &code)
DiscreteTimeExport(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
virtual returnValue setNARXmodel(const uint delay, const DMatrix &parms)
virtual returnValue setup()
Allows to export a tailored discrete-time &#39;integrator&#39; for fast model predictive control.
ExportVariable rk_diffsTemp3
Encapsulates all user interaction for setting options, logging data and plotting results.
IntegratorExport * createDiscreteTimeExport(UserInteraction *_userInteraction, const std::string &_commonHeaderName)
virtual ~DiscreteTimeExport()
Allows to export a tailored integrator for fast model predictive control.
DiscreteTimeExport & operator=(const DiscreteTimeExport &arg)
virtual returnValue setDifferentialEquation(const Expression &rhs)
#define BEGIN_NAMESPACE_ACADO
Allows to export code for a block of statements.
Defines a matrix-valued variable to be used for exporting code.
ExportAcadoFunction rhs


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:32