irk_forward_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_IRK_FORWARD_EXPORT_HPP
36 #define ACADO_TOOLKIT_IRK_FORWARD_EXPORT_HPP
37 
41 
42 
44 
56 {
57  //
58  // PUBLIC MEMBER FUNCTIONS:
59  //
60 
61  public:
62 
68  ForwardIRKExport( UserInteraction* _userInteraction = 0,
69  const std::string& _commonHeaderName = ""
70  );
71 
77  );
78 
81  virtual ~ForwardIRKExport( );
82 
83 
89  );
90 
91 
96  virtual returnValue setup( );
97 
98 
106  ExportStruct dataStruct = ACADO_ANY
107  ) const;
108 
109 
117  ) const;
118 
119 
120 
128  );
129 
130 
131  protected:
132 
133 
143 
144 
152 
153 
161 
162 
172  const ExportIndex& index1,
173  const ExportIndex& index2,
174  const ExportVariable& Bh,
175  bool STATES );
176 
177 
190  const ExportIndex& index1,
191  const ExportIndex& index2,
192  const ExportIndex& index3,
193  const ExportIndex& tmp_index1,
194  const ExportIndex& tmp_index2,
195  const ExportVariable& Ah,
196  const ExportVariable& Bh,
197  const ExportVariable& det,
198  bool STATES,
199  uint number );
200 
201 
213  const ExportIndex& index1,
214  const ExportIndex& index2,
215  const ExportIndex& index3,
216  const ExportIndex& index4,
217  const ExportIndex& tmp_index1,
218  const ExportIndex& tmp_index2,
219  const ExportVariable& Ah,
220  const ExportVariable& Bh,
221  bool STATES,
222  uint number );
223 
224 
237  const ExportIndex& index0,
238  const ExportIndex& index1,
239  const ExportIndex& index2,
240  const ExportIndex& tmp_index1,
241  const ExportIndex& tmp_index2,
242  const ExportIndex& tmp_index3,
243  const ExportVariable& tmp_meas,
244  const ExportVariable& time_tmp,
245  bool STATES,
246  uint base );
247 
248 
257  const ExportIndex& index,
258  const ExportIndex& index0,
259  const ExportIndex& index1,
260  const ExportIndex& index2,
261  const ExportIndex& index3,
262  const ExportIndex& tmp_index1,
263  const ExportIndex& tmp_index2,
264  const ExportIndex& tmp_index3,
265  const ExportIndex& tmp_index4,
266  const ExportVariable& tmp_meas );
267 
268 
273  virtual ExportVariable getAuxVariable() const;
274 
275 
276  protected:
277 
278 
279 };
280 
281 
283 
284 
285 #endif // ACADO_TOOLKIT_IRK_FORWARD_EXPORT_HPP
286 
287 // end of file.
virtual returnValue setup()
returnValue getCRSIndex(uint output, ExportIndex row, ExportIndex col)
returnValue sensitivitiesOutputs(ExportStatementBlock *block, const ExportIndex &index0, const ExportIndex &index1, const ExportIndex &index2, const ExportIndex &tmp_index1, const ExportIndex &tmp_index2, const ExportIndex &tmp_index3, const ExportVariable &tmp_meas, const ExportVariable &time_tmp, bool STATES, uint base)
Allows to export a tailored Runge-Kutta sensitivity propagation for fast model predictive control...
virtual returnValue prepareInputSystem(ExportStatementBlock &code)
Allows to pass back messages to the calling function.
virtual returnValue prepareOutputSystem(ExportStatementBlock &code)
Block< Derived > block(Index startRow, Index startCol, Index blockRows, Index blockCols)
Definition: BlockMethods.h:56
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Definition: acado_types.hpp:42
virtual returnValue propagateOutputs(ExportStatementBlock *block, const ExportIndex &index, const ExportIndex &index0, const ExportIndex &index1, const ExportIndex &index2, const ExportIndex &index3, const ExportIndex &tmp_index1, const ExportIndex &tmp_index2, const ExportIndex &tmp_index3, const ExportIndex &tmp_index4, const ExportVariable &tmp_meas)
ForwardIRKExport(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
ForwardIRKExport & operator=(const ForwardIRKExport &arg)
#define CLOSE_NAMESPACE_ACADO
virtual returnValue getCode(ExportStatementBlock &code)
Defines a scalar-valued index variable to be used for exporting code.
Allows to export a tailored implicit Runge-Kutta integrator for fast model predictive control...
Definition: irk_export.hpp:55
ExportStruct
virtual returnValue getFunctionDeclarations(ExportStatementBlock &declarations) const
virtual ExportVariable getAuxVariable() const
Encapsulates all user interaction for setting options, logging data and plotting results.
virtual returnValue sensitivitiesOutputSystem(ExportStatementBlock *block, const ExportIndex &index1, const ExportIndex &index2, const ExportIndex &index3, const ExportIndex &index4, const ExportIndex &tmp_index1, const ExportIndex &tmp_index2, const ExportVariable &Ah, const ExportVariable &Bh, bool STATES, uint number)
RowXpr row(Index i)
Definition: BlockMethods.h:725
virtual returnValue sensitivitiesImplicitSystem(ExportStatementBlock *block, const ExportIndex &index1, const ExportIndex &index2, const ExportIndex &index3, const ExportIndex &tmp_index1, const ExportIndex &tmp_index2, const ExportVariable &Ah, const ExportVariable &Bh, const ExportVariable &det, bool STATES, uint number)
#define BEGIN_NAMESPACE_ACADO
USING_NAMESPACE_ACADO void output(const char *name, const Expression &e)
Allows to export a tailored implicit Runge-Kutta integrator with forward sensitivity generation for f...
ColXpr col(Index i)
Definition: BlockMethods.h:708
virtual returnValue sensitivitiesInputSystem(ExportStatementBlock *block, const ExportIndex &index1, const ExportIndex &index2, const ExportVariable &Bh, bool STATES)
virtual returnValue getDataDeclarations(ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const
Allows to export code for a block of statements.
Defines a matrix-valued variable to be used for exporting code.


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