external_packages/qpoases/INCLUDE/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-2008 by Hans Joachim Ferreau et al. All rights reserved.
6  *
7  * qpOASES is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * qpOASES is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with qpOASES; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  *
21  */
22 
23 
35 #ifndef QPOASES_BOUNDS_HPP
36 #define QPOASES_BOUNDS_HPP
37 
38 
39 #include <SubjectTo.hpp>
40 
41 
42 
50 class Bounds : public SubjectTo
51 {
52  /*
53  * PUBLIC MEMBER FUNCTIONS
54  */
55  public:
57  Bounds( );
58 
60  Bounds( const Bounds& rhs
61  );
62 
64  ~Bounds( );
65 
67  Bounds& operator=( const Bounds& rhs
68  );
69 
70 
73  returnValue init( int n
74  );
75 
76 
83  returnValue setupBound( int _number,
84  SubjectToStatus _status
85  );
86 
93 
94 
99  returnValue moveFixedToFree( int _number
100  );
101 
106  returnValue moveFreeToFixed( int _number,
107  SubjectToStatus _status
108  );
109 
113  returnValue swapFree( int number1,
114  int number2
115  );
116 
117 
120  inline int getNV( ) const;
121 
124  inline int getNFV( ) const;
125 
128  inline int getNBV( ) const;
129 
132  inline int getNUV( ) const;
133 
134 
137  inline returnValue setNFV( int n
138  );
139 
142  inline returnValue setNBV( int n
143  );
144 
147  inline returnValue setNUV( int n
148  );
149 
150 
153  inline int getNFR( );
154 
157  inline int getNFX( );
158 
159 
162  inline Indexlist* getFree( );
163 
166  inline Indexlist* getFixed( );
167 
168 
169  /*
170  * PROTECTED MEMBER VARIABLES
171  */
172  protected:
173  int nV;
174  int nFV;
175  int nBV;
176  int nUV;
178  Indexlist free;
179  Indexlist fixed;
180 };
181 
182 #include <Bounds.ipp>
183 
184 #endif /* QPOASES_BOUNDS_HPP */
185 
186 
187 /*
188  * end of file
189  */
int n
Definition: Bounds.h:58
Indexlist * getFree()
int getNFV() const
Allows to pass back messages to the calling function.
Base class for managing working sets of bounds and constraints.
int getNV() const
returnValue setupBound(int _number, SubjectToStatus _status)
returnValue setNUV(int n)
returnValue setNBV(int n)
returnValue setNFV(int n)
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