Skip to content

Commit 77ddd62

Browse files
committed
packaging: Fix build
1 parent 2ea0269 commit 77ddd62

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/packaging/src/run-proxqp.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
#include <proxsuite/proxqp/dense/dense.hpp> // load the dense solver backend
22
#include <proxsuite/common/utils/random_qp_problems.hpp> // used for generating a random convex Qp
33

4-
using namespace proxsuite::proxqp;
4+
using namespace proxsuite;
55
using T = double;
66

77
int
88
main()
99
{
10-
isize dim = 10;
11-
isize n_eq(dim / 4);
12-
isize n_in(dim / 4);
10+
common::isize dim = 10;
11+
common::isize n_eq(dim / 4);
12+
common::isize n_in(dim / 4);
1313
// generate a random qp
1414
T sparsity_factor(0.15);
1515
T strong_convexity_factor(1.e-2);
1616

17-
dense::Model<T> qp = utils::dense_strongly_convex_qp(
17+
common::dense::Model<T> qp = common::utils::dense_strongly_convex_qp(
1818
dim, n_eq, n_in, sparsity_factor, strong_convexity_factor);
1919

20-
dense::QP<T> Qp(dim, n_eq, n_in); // create the QP object
20+
proxqp::dense::QP<T> Qp(dim, n_eq, n_in); // create the QP object
2121
Qp.init(qp.H, qp.g, qp.A, qp.b, qp.C, qp.l, qp.u); // initialize the model
2222
Qp.solve(); // solve the problem without warm start
2323

24-
auto x_wm = utils::rand::vector_rand<T>(dim);
25-
auto y_wm = utils::rand::vector_rand<T>(n_eq);
26-
auto z_wm = utils::rand::vector_rand<T>(n_in);
24+
auto x_wm = common::utils::rand::vector_rand<T>(dim);
25+
auto y_wm = common::utils::rand::vector_rand<T>(n_eq);
26+
auto z_wm = common::utils::rand::vector_rand<T>(n_in);
2727
Qp.solve(x_wm, y_wm,
2828
z_wm); // if you have a warm start, put it here
2929

0 commit comments

Comments
 (0)