qpOASES 3.2.1
An Implementation of the Online Active Set Strategy
Constants.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-2017 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_HPP
36#define QPOASES_CONSTANTS_HPP
37
38
39#include <qpOASES/Types.hpp>
40
41
43
44
47#ifdef __USE_SINGLE_PRECISION__
48const real_t EPS = 1.193e-07f;
49#else
50const real_t EPS = 2.221e-16;
51#endif /* __USE_SINGLE_PRECISION__ */
52
53
57const real_t ZERO = 1.0e-25;
58
61const real_t INFTY = 1.0e20;
62
63
66const uint_t MAX_STRING_LENGTH = 160;
67
68
70
71
72#endif /* QPOASES_CONSTANTS_HPP */
73
74
75/*
76 * end of file
77 */
const uint_t MAX_STRING_LENGTH
Definition: Constants.hpp:66
const real_t INFTY
Definition: Constants.hpp:61
const real_t ZERO
Definition: Constants.hpp:57
BEGIN_NAMESPACE_QPOASES const real_t EPS
Definition: Constants.hpp:50
BEGIN_NAMESPACE_QPOASES typedef double real_t
Definition: Types.hpp:171
#define END_NAMESPACE_QPOASES
Definition: Types.hpp:110
#define BEGIN_NAMESPACE_QPOASES
Definition: Types.hpp:107