From 1fd4cec84697a1f04f17d4c385f533689c779fe5 Mon Sep 17 00:00:00 2001 From: Fabian Schramm <55981657+fabinsch@users.noreply.github.com> Date: Thu, 13 Jun 2024 11:39:25 +0200 Subject: [PATCH] unittest: fix by setting eps_primal_inf smaller - on windows, some feasible problems where detected as infeasible, setting a stricter threshold solves this issue --- test/src/dense_qp_with_eq_and_in.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/src/dense_qp_with_eq_and_in.cpp b/test/src/dense_qp_with_eq_and_in.cpp index 73de0d012..fb87a1135 100644 --- a/test/src/dense_qp_with_eq_and_in.cpp +++ b/test/src/dense_qp_with_eq_and_in.cpp @@ -188,6 +188,7 @@ DOCTEST_TEST_CASE("sparse random strongly convex qp with degenerate inequality " strong_convexity_factor); proxqp::dense::QP qp{ dim, n_eq, n_in }; // creating QP object qp.settings.eps_abs = eps_abs; + qp.settings.eps_primal_inf = 1e-6; qp.settings.eps_rel = 0; qp.init(qp_random.H, qp_random.g,