export_algorithm.cpp
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 
36 
37 
39 
40 
41 //
42 // PUBLIC MEMBER FUNCTIONS:
43 //
44 
46  const std::string& _commonHeaderName
47  ) : AlgorithmicBase( _userInteraction )
48 {
49  setDimensions(0, 0, 0, 0, 0, 0, 0);
50  commonHeaderName = _commonHeaderName;
51 }
52 
53 
55 {}
56 
57 
59 {
60  return SUCCESSFUL_RETURN;
61 }
62 
63 
64 
66  uint _NU,
67  uint _NP,
68  uint _NI,
69  uint _NOD
70  )
71 {
72  return setDimensions(_NX, 0, 0, _NU, _NP, _NI, _NOD);
73 }
74 
75 
76 
78  uint _NDX,
79  uint _NXA,
80  uint _NU,
81  uint _NP,
82  uint _NI,
83  uint _NOD
84  )
85 {
86  NX = _NX;
87  NDX = _NDX;
88  NXA = _NXA;
89  NU = _NU;
90  NP = _NP;
91  N = _NI;
92  NOD = _NOD;
93 
94  return SUCCESSFUL_RETURN;
95 }
96 
97 
98 
100 {
101  return NX;
102 }
103 
104 
106 {
107  return NXA;
108 }
109 
110 
112 {
113  return NU;
114 }
115 
116 
118 {
119  return NP;
120 }
121 
123 {
124  return NOD;
125 }
126 
127 
129 {
130  return N;
131 }
132 
134 {
135  NY = NY_;
136 }
137 
139 {
140  return NY;
141 }
142 
144 {
145  NYN = NYN_;
146 }
147 
149 {
150  return NYN;
151 }
152 
154 
155 // 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
std::string commonHeaderName
uint getNY() const
virtual ~ExportAlgorithm()
Encapsulates all user interaction for setting options, logging data and plotting results.
uint getNYN() const
void setNY(uint NY_)
#define BEGIN_NAMESPACE_ACADO
virtual returnValue setup()
uint getNU() const
void setNYN(uint NYN_)


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