external_packages/qpOASES-3.0beta/include/qpOASES/Bounds.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of qpOASES.
3  *
4  * qpOASES -- An Implementation of the Online Active Set Strategy.
5  * Copyright (C) 2007-2011 by Hans Joachim Ferreau, Andreas Potschka,
6  * Christian Kirches et al. All rights reserved.
7  *
8  * qpOASES is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * qpOASES is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with qpOASES; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23 
24 
36 #ifndef QPOASES_BOUNDS_HPP
37 #define QPOASES_BOUNDS_HPP
38 
39 
40 #include <qpOASES/SubjectTo.hpp>
41 
42 
44 
45 
56 class Bounds : public SubjectTo
57 {
58  /*
59  * PUBLIC MEMBER FUNCTIONS
60  */
61  public:
63  Bounds( );
64 
66  Bounds( int _n
67  );
68 
70  Bounds( const Bounds& rhs
71  );
72 
74  virtual ~Bounds( );
75 
77  Bounds& operator=( const Bounds& rhs
78  );
79 
80 
84  returnValue init( int _n = 0
85  );
86 
87 
94  returnValue setupBound( int number,
95  SubjectToStatus _status
96  );
97 
104 
111 
118 
119 
124  returnValue moveFixedToFree( int number
125  );
126 
131  returnValue moveFreeToFixed( int number,
132  SubjectToStatus _status
133  );
134 
139  returnValue flipFixed( int number );
140 
144  returnValue swapFree( int number1,
145  int number2
146  );
147 
148 
151  inline int getNV( ) const;
152 
155  inline int getNFV( ) const;
156 
159  inline int getNBV( ) const;
160 
163  inline int getNUV( ) const;
164 
167  inline int getNFR( ) const;
168 
171  inline int getNFX( ) const;
172 
173 
176  inline Indexlist* getFree( );
177 
180  inline Indexlist* getFixed( );
181 
182 
194  virtual returnValue shift( int offset
195  );
196 
204  virtual returnValue rotate( int offset
205  );
206 
207 
212  returnValue print( );
213 
214 
215  /*
216  * PROTECTED MEMBER FUNCTIONS
217  */
218  protected:
221  returnValue clear( );
222 
225  returnValue copy( const Bounds& rhs
226  );
227 
228 
235  );
236 
237 
238  /*
239  * PROTECTED MEMBER VARIABLES
240  */
241  protected:
243  Indexlist fixed;
244 };
245 
246 
248 
249 #include <qpOASES/Bounds.ipp>
250 
251 #endif /* QPOASES_BOUNDS_HPP */
252 
253 
254 /*
255  * end of file
256  */
Indexlist * getFree()
virtual returnValue rotate(int offset)
int getNFV() const
Allows to pass back messages to the calling function.
Base class for managing working sets of bounds and constraints.
returnValue setupAll(SubjectToStatus _status)
int getNV() const
returnValue setupBound(int _number, SubjectToStatus _status)
returnValue copy(const Bounds &rhs)
virtual returnValue shift(int offset)
void rhs(const real_t *x, real_t *f)
int getNFR()
int getNUV() const
int getNBV() const
int getNFX()
Manages working sets of bounds (= box constraints).
Indexlist * getFixed()
returnValue moveFreeToFixed(int _number, SubjectToStatus _status)


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