@@ -63,7 +63,7 @@ TEST(TestOsqpInterface, BasicQp)
63
63
64
64
{
65
65
// Define problem during optimization
66
- autoware::common::OSQPInterface osqp (false , 1e-6 );
66
+ autoware::common::OSQPInterface osqp (false , 4000 , 1e-6 );
67
67
const auto solution = osqp.QPInterface ::optimize (P, A, q, l, u);
68
68
const auto status = osqp.getStatus ();
69
69
const auto polish_status = osqp.getPolishStatus ();
@@ -72,7 +72,7 @@ TEST(TestOsqpInterface, BasicQp)
72
72
73
73
{
74
74
// Define problem during initialization
75
- autoware::common::OSQPInterface osqp (false , 1e-6 );
75
+ autoware::common::OSQPInterface osqp (false , 4000 , 1e-6 );
76
76
const auto solution = osqp.QPInterface ::optimize (P, A, q, l, u);
77
77
const auto status = osqp.getStatus ();
78
78
const auto polish_status = osqp.getPolishStatus ();
@@ -87,15 +87,15 @@ TEST(TestOsqpInterface, BasicQp)
87
87
std::vector<double > q_ini (2 , 0.0 );
88
88
std::vector<double > l_ini (4 , 0.0 );
89
89
std::vector<double > u_ini (4 , 0.0 );
90
- autoware::common::OSQPInterface osqp (false , 1e-6 );
90
+ autoware::common::OSQPInterface osqp (false , 4000 , 1e-6 );
91
91
osqp.QPInterface ::optimize (P_ini, A_ini, q_ini, l_ini, u_ini);
92
92
}
93
93
94
94
{
95
95
// Define problem during initialization with csc matrix
96
96
CSC_Matrix P_csc = calCSCMatrixTrapezoidal (P);
97
97
CSC_Matrix A_csc = calCSCMatrix (A);
98
- autoware::common::OSQPInterface osqp (false , 1e-6 );
98
+ autoware::common::OSQPInterface osqp (false , 4000 , 1e-6 );
99
99
100
100
const auto solution = osqp.optimize (P_csc, A_csc, q, l, u);
101
101
const auto status = osqp.getStatus ();
@@ -111,7 +111,7 @@ TEST(TestOsqpInterface, BasicQp)
111
111
std::vector<double > q_ini (2 , 0.0 );
112
112
std::vector<double > l_ini (4 , 0.0 );
113
113
std::vector<double > u_ini (4 , 0.0 );
114
- autoware::common::OSQPInterface osqp (false , 1e-6 );
114
+ autoware::common::OSQPInterface osqp (false , 4000 , 1e-6 );
115
115
osqp.optimize (P_ini_csc, A_ini_csc, q_ini, l_ini, u_ini);
116
116
117
117
// Redefine problem before optimization
@@ -132,7 +132,7 @@ TEST(TestOsqpInterface, BasicQp)
132
132
std::vector<double > q_ini (2 , 0.0 );
133
133
std::vector<double > l_ini (4 , 0.0 );
134
134
std::vector<double > u_ini (4 , 0.0 );
135
- autoware::common::OSQPInterface osqp (true , 1e-6 ); // enable warm start
135
+ autoware::common::OSQPInterface osqp (true , 4000 , 1e-6 ); // enable warm start
136
136
osqp.optimize (P_ini_csc, A_ini_csc, q_ini, l_ini, u_ini);
137
137
138
138
// Redefine problem before optimization
0 commit comments