export_algorithm.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_EXPORT_ALGORITHM_HPP
36 #define ACADO_TOOLKIT_EXPORT_ALGORITHM_HPP
37 
41 
48 
50 
62 {
63  //
64  // PUBLIC MEMBER FUNCTIONS:
65  //
66 
67  public:
68 
74  ExportAlgorithm( UserInteraction* _userInteraction = 0,
75  const std::string& _commonHeaderName = std::string()
76  );
77 
79  virtual ~ExportAlgorithm( );
80 
85  virtual returnValue setup( );
86 
87 
95  ExportStruct dataStruct = ACADO_ANY
96  ) const = 0;
97 
105  ) const = 0;
106 
107 
115  ) = 0;
116 
117 
127  returnValue setDimensions( uint _NX = 0,
128  uint _NU = 0,
129  uint _NP = 0,
130  uint _NI = 0,
131  uint _NOD = 0
132  );
133 
134 
147  uint _NDX,
148  uint _NXA,
149  uint _NU,
150  uint _NP,
151  uint _NI,
152  uint _NOD
153  );
154 
155 
160  uint getNX( ) const;
161 
166  uint getNXA( ) const;
167 
172  uint getNDX( ) const;
173 
178  uint getNU( ) const;
179 
184  uint getNP( ) const;
185 
190  uint getNOD( ) const;
191 
196  uint getN( ) const;
197 
198  void setNY( uint NY_ );
199  uint getNY( ) const;
200 
201  void setNYN( uint NYN_ );
202  uint getNYN( ) const;
203 
204  protected:
205 
212  uint N;
217  std::string commonHeaderName;
218 };
219 
220 
222 
223 
224 #endif // ACADO_TOOLKIT_EXPORT_ALGORITHM_HPP
225 
226 // end of file.
returnValue setDimensions(uint _NX=0, uint _NU=0, uint _NP=0, uint _NI=0, uint _NOD=0)
uint getN() const
uint getNXA() const
ExportAlgorithm(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName=std::string())
uint getNX() const
Allows to pass back messages to the calling function.
Base class for all algorithmic modules within the ACADO Toolkit providing some basic functionality...
uint getNOD() const
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Definition: acado_types.hpp:42
#define CLOSE_NAMESPACE_ACADO
uint getNP() const
Allows to export automatically generated algorithms for fast model predictive control.
std::string commonHeaderName
ExportStruct
uint getNY() const
virtual ~ExportAlgorithm()
Encapsulates all user interaction for setting options, logging data and plotting results.
uint getNYN() const
virtual returnValue getFunctionDeclarations(ExportStatementBlock &declarations) const =0
void setNY(uint NY_)
#define BEGIN_NAMESPACE_ACADO
virtual returnValue setup()
uint getNDX() const
virtual returnValue getDataDeclarations(ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const =0
uint getNU() const
Allows to export code for a block of statements.
virtual returnValue getCode(ExportStatementBlock &code)=0
void setNYN(uint NYN_)


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