qpoases3/include/qpOASES_e/Constants.h
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-2015 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_CONSTANTS_H
36 #define QPOASES_CONSTANTS_H
37 
38 
39 #include <qpOASES_e/Types.h>
40 
41 #ifdef __CODE_GENERATION__
42 
43  #define CONVERTTOSTRINGAUX(x) #x
44  #define CONVERTTOSTRING(x) CONVERTTOSTRINGAUX(x)
45 
46  #ifndef QPOASES_CUSTOM_INTERFACE
47  #include "acado_qpoases3_interface.h"
48  #else
49  #include CONVERTTOSTRING(QPOASES_CUSTOM_INTERFACE)
50  #endif
51 
52 #endif
53 
54 
56 
57 
58 #ifndef __EXTERNAL_DIMENSIONS__
59 
60  #define QPOASES_NVMAX 50
61  #define QPOASES_NCMAX 100
62  /*#define QPOASES_NVMAX 287
63  #define QPOASES_NCMAX 709*/
64 
65 #endif /* __EXTERNAL_DIMENSIONS__ */
66 
67 
70 #define NVMAX QPOASES_NVMAX
71 
74 #define NCMAX QPOASES_NCMAX
75 
76 #if ( QPOASES_NVMAX > QPOASES_NCMAX )
77 #define NVCMAX QPOASES_NVMAX
78 #else
79 #define NVCMAX QPOASES_NCMAX
80 #endif
81 
82 #if ( QPOASES_NVMAX > QPOASES_NCMAX )
83 #define NVCMIN QPOASES_NCMAX
84 #else
85 #define NVCMIN QPOASES_NVMAX
86 #endif
87 
88 
91 #define NQPMAX 1000
92 
93 
96 #ifndef __CODE_GENERATION__
97 
98  #ifdef __USE_SINGLE_PRECISION__
99  static const real_t QPOASES_EPS = 1.193e-07;
100  #else
101  static const real_t QPOASES_EPS = 2.221e-16;
102  #endif /* __USE_SINGLE_PRECISION__ */
103 
104 #endif /* __CODE_GENERATION__ */
105 
106 
110 static const real_t QPOASES_ZERO = 1.0e-25;
111 
114 static const real_t QPOASES_INFTY = 1.0e20;
115 
118 static const real_t QPOASES_TOL = 1.0e-25;
119 
120 
123 #define QPOASES_MAX_STRING_LENGTH 160
124 
125 
127 
128 
129 #endif /* QPOASES_CONSTANTS_H */
130 
131 
132 /*
133  * end of file
134  */
static const real_t QPOASES_ZERO
static const real_t QPOASES_INFTY
static const real_t QPOASES_EPS
double real_t
Definition: AD_test.c:10
static const real_t QPOASES_TOL


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