external_packages/qpoases/INCLUDE/SubjectTo.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_SUBJECTTO_HPP
36 #define QPOASES_SUBJECTTO_HPP
37 
38 
39 #include <Indexlist.hpp>
40 
41 
42 
50 class SubjectTo
51 {
52  /*
53  * PUBLIC MEMBER FUNCTIONS
54  */
55  public:
57  SubjectTo( );
58 
60  SubjectTo( const SubjectTo& rhs
61  );
62 
64  ~SubjectTo( );
65 
68  );
69 
70 
73  returnValue init( int n
74  );
75 
76 
80  inline SubjectToType getType( int i
81  ) const ;
82 
86  inline SubjectToStatus getStatus( int i
87  ) const;
88 
89 
93  inline returnValue setType( int i,
94  SubjectToType value
95  );
96 
100  inline returnValue setStatus( int i,
101  SubjectToStatus value
102  );
103 
104 
106  inline void setNoLower( BooleanType _status
107  );
108 
110  inline void setNoUpper( BooleanType _status
111  );
112 
113 
116  inline BooleanType isNoLower( ) const;
117 
120  inline BooleanType isNoUpper( ) const;
121 
122 
123  /*
124  * PROTECTED MEMBER FUNCTIONS
125  */
126  protected:
130  returnValue addIndex( Indexlist* const indexlist,
131  int newnumber,
132  SubjectToStatus newstatus
133  );
134 
138  returnValue removeIndex( Indexlist* const indexlist,
139  int removenumber
140  );
141 
145  returnValue swapIndex( Indexlist* const indexlist,
146  int number1,
147  int number2
148  );
149 
150 
151  /*
152  * PROTECTED MEMBER VARIABLES
153  */
154  protected:
162  /*
163  * PRIVATE MEMBER VARIABLES
164  */
165  private:
166  int size;
167 };
168 
169 
170 
171 #include <SubjectTo.ipp>
172 
173 #endif /* QPOASES_SUBJECTTO_HPP */
174 
175 
176 /*
177  * end of file
178  */
void setNoLower(BooleanType _status)
returnValue setType(int i, SubjectToType value)
BooleanType isNoLower() const
Allows to pass back messages to the calling function.
Base class for managing working sets of bounds and constraints.
returnValue swapIndex(Indexlist *const indexlist, int number1, int number2)
returnValue addIndex(Indexlist *const indexlist, int newnumber, SubjectToStatus newstatus)
SubjectToStatus getStatus(int i) const
returnValue removeIndex(Indexlist *const indexlist, int removenumber)
void rhs(const real_t *x, real_t *f)
SubjectToType getType(int i) const
BooleanType isNoUpper() const
void setNoUpper(BooleanType _status)
returnValue setStatus(int i, SubjectToStatus value)


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