Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
external_packages
qpOASES-3.0beta
include
qpOASES
external_packages/qpOASES-3.0beta/include/qpOASES/Types.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
35
#ifndef QPOASES_TYPES_HPP
36
#define QPOASES_TYPES_HPP
37
38
39
/* If your compiler does not support the snprintf() function,
40
* uncomment the following line and try to compile again. */
41
/* #define snprintf _snprintf */
42
43
44
/* Uncomment the following line for setting the __DSPACE__ flag. */
45
/* #define __DSPACE__ */
46
47
/* Uncomment the following line for setting the __XPCTARGET__ flag. */
48
/* #define __XPCTARGET__ */
49
50
51
/* Uncomment the following line to enable debug information. */
52
/* #define __DEBUG__ */
53
54
/* Uncomment the following line to enable debug iteration output. */
55
/* #define __DEBUG_ITER__ */
56
57
/* Uncomment the following line to enable suppress any kind of console output. */
58
/* #define __SUPPRESSANYOUTPUT__ */
59
60
63
#define __ALWAYS_INITIALISE_WITH_ALL_EQUALITIES__
64
65
/* Uncomment the following line to activate the use of a special treatment of
66
* inactive constraints that is more efficient in case of QP formulations
67
* comprising many constraints. */
68
/* #define __MANY_CONSTRAINTS__ */
69
70
/* Uncomment the following line to activate the use of an alternative Givens
71
* plane rotation requiring only three multiplications. */
72
/* #define __USE_THREE_MULTS_GIVENS__ */
73
74
/* Uncomment the following line to activate the use of single precision arithmetic. */
75
/* #define __USE_SINGLE_PRECISION__ */
76
77
78
79
/* Work-around for Borland BCC 5.5 compiler. */
80
#ifdef __BORLANDC__
81
#define __STDC__ 1
82
#endif
83
84
85
/* Work-around for Microsoft compilers. */
86
#ifdef _MSC_VER
87
#if (_MSC_VER < 1900)
88
/* Work-around for Microsoft compilers with version older than 2015. */
89
#define snprintf _snprintf
90
#endif
91
#endif
92
93
94
#ifdef __DSPACE__
95
/* This fix ensures a compilable code only,
96
* but all snprintf commands won't work. */
97
#define snprintf printf
98
#endif
99
100
#ifdef __DSPACE__
101
103
#define BEGIN_NAMESPACE_QPOASES
104
106
#define END_NAMESPACE_QPOASES
107
109
#define USING_NAMESPACE_QPOASES
110
112
#define REFER_NAMESPACE_QPOASES
113
114
#else
115
117
#define BEGIN_NAMESPACE_QPOASES namespace qpOASES {
118
120
#define END_NAMESPACE_QPOASES }
121
123
#define USING_NAMESPACE_QPOASES using namespace qpOASES;
124
126
#define REFER_NAMESPACE_QPOASES qpOASES::
127
128
#endif
129
130
132
#define RR( I,J ) R[(I)+nV*(J)]
133
135
#define QQ( I,J ) Q[(I)+nV*(J)]
136
138
#define TT( I,J ) T[(I)*sizeT+(J)]
139
140
141
142
BEGIN_NAMESPACE_QPOASES
143
144
146
#ifdef __USE_SINGLE_PRECISION__
147
typedef
float
real_t
;
148
#else
149
typedef
double
real_t
;
150
#endif
/* __USE_SINGLE_PRECISION__ */
151
152
154
#if defined( BT_FALSE ) && defined( BT_TRUE )
155
#undef BT_FALSE
156
#undef BT_TRUE
157
#endif
/* defined( BT_TRUE ) && defined( BT_FALSE ) */
158
enum
BooleanType
159
{
160
BT_FALSE
,
161
BT_TRUE
162
};
163
164
167
enum
PrintLevel
168
{
169
PL_TABULAR
= -1,
170
PL_NONE
,
171
PL_LOW
,
172
PL_MEDIUM
,
173
PL_HIGH
174
};
175
176
178
enum
VisibilityStatus
179
{
180
VS_HIDDEN
,
181
VS_VISIBLE
182
};
183
184
187
enum
QProblemStatus
188
{
189
QPS_NOTINITIALISED
,
190
QPS_PREPARINGAUXILIARYQP
,
192
QPS_AUXILIARYQPSOLVED
,
194
QPS_PERFORMINGHOMOTOPY
,
196
QPS_HOMOTOPYQPSOLVED
,
197
QPS_SOLVED
198
};
199
200
202
enum
HessianType
203
{
204
HST_ZERO
,
205
HST_IDENTITY
,
206
HST_POSDEF
,
207
HST_POSDEF_NULLSPACE
,
208
HST_SEMIDEF
,
209
HST_UNKNOWN
210
};
211
212
214
enum
SubjectToType
215
{
216
ST_UNBOUNDED
,
217
ST_BOUNDED
,
218
ST_EQUALITY
,
219
ST_UNKNOWN
220
};
221
222
224
enum
SubjectToStatus
225
{
226
ST_INACTIVE
,
227
ST_LOWER
,
228
ST_UPPER
,
229
ST_UNDEFINED
230
};
231
232
233
234
END_NAMESPACE_QPOASES
235
236
237
#endif
/* QPOASES_TYPES_HPP */
238
239
240
/*
241
* end of file
242
*/
PL_NONE
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:170
BT_TRUE
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:161
ST_BOUNDED
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:217
PL_MEDIUM
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:172
QPS_NOTINITIALISED
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:189
HST_UNKNOWN
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:209
ST_UNBOUNDED
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:216
VisibilityStatus
VisibilityStatus
Definition:
acado_message_handling.hpp:51
PL_TABULAR
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:169
PL_LOW
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:171
ST_UPPER
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:228
HessianType
HessianType
Definition:
examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Types.hpp:116
QPS_PREPARINGAUXILIARYQP
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:190
HST_POSDEF
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:206
QPS_SOLVED
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:197
HST_IDENTITY
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:205
ST_EQUALITY
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:218
QPS_PERFORMINGHOMOTOPY
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:194
HST_SEMIDEF
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:208
BooleanType
BooleanType
Definition:
examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Types.hpp:44
ST_UNKNOWN
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:219
VS_HIDDEN
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:180
ST_INACTIVE
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:226
SubjectToStatus
SubjectToStatus
Definition:
examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Types.hpp:97
HST_ZERO
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:204
VS_VISIBLE
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:181
END_NAMESPACE_QPOASES
#define END_NAMESPACE_QPOASES
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:120
real_t
BEGIN_NAMESPACE_QPOASES typedef double real_t
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:149
PrintLevel
PrintLevel
Definition:
acado_types.hpp:292
SubjectToType
SubjectToType
Definition:
examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Types.hpp:87
PL_HIGH
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:173
QPS_HOMOTOPYQPSOLVED
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:196
HST_POSDEF_NULLSPACE
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:207
ST_LOWER
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:227
BT_FALSE
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:160
BEGIN_NAMESPACE_QPOASES
#define BEGIN_NAMESPACE_QPOASES
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:117
QProblemStatus
QProblemStatus
Definition:
examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Types.hpp:72
QPS_AUXILIARYQPSOLVED
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:192
ST_UNDEFINED
Definition:
external_packages/qpOASES-3.0beta/include/qpOASES/Types.hpp:229
acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:15