qpOASES  3.2.2
An Implementation of the Online Active Set Strategy
qp_data.in.hpp
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 
36 #define NV {{NV}}
37 #define NC {{NC}}
38 
39 const real_t Inf = INFTY;
40 
41 sparse_int_t H_ri[] = {
42  {% for d in H_ri %}
43  {{ d }},
44  {%- endfor %}
45 };
46 
47 sparse_int_t H_cp[] = {
48  {% for d in H_cp %}
49  {{ d }},
50  {%- endfor %}
51 };
52 
53 real_t H_val[] = {
54  {% for d in H_val %}
55  {{ d }},
56  {%- endfor %}
57 };
58 
59 sparse_int_t A_ri[] = {
60  {% for d in A_ri %}
61  {{ d }},
62  {%- endfor %}
63 };
64 
65 sparse_int_t A_cp[] = {
66  {% for d in A_cp %}
67  {{ d }},
68  {%- endfor %}
69 };
70 
71 real_t A_val[] = {
72  {% for d in A_val %}
73  {{ d }},
74  {%- endfor %}
75 };
76 
77 real_t g[] = {
78  {% for d in g %}
79  {{ d[0] }},
80  {%- endfor %}
81 };
82 
83 real_t lb[] = {
84  {% for d in lb %}
85  {{ d[0] }},
86  {%- endfor %}
87 };
88 
89 real_t ub[] = {
90  {% for d in ub %}
91  {{ d[0] }},
92  {%- endfor %}
93 };
94 
95 real_t lbA[] = {
96  {% for d in lbA %}
97  {{ d[0] }},
98  {%- endfor %}
99 };
100 
101 real_t ubA[] = {
102  {% for d in ubA %}
103  {{ d[0] }},
104  {%- endfor %}
105  };
106 
107 long H_nnz = {{ H_nnz }};
108 long A_nnz = {{ A_nnz }};
#define USING_NAMESPACE_QPOASES
Definition: Types.hpp:113
const real_t INFTY
Definition: Constants.hpp:61
BEGIN_NAMESPACE_QPOASES typedef double real_t
Definition: Types.hpp:171
int_t sparse_int_t
Definition: Types.hpp:199