Closed traversaro closed 3 weeks ago
Please ignore the failing tests that are due to https://github.com/robotology/osqp-eigen/issues/161 and will be fixed in https://github.com/robotology/osqp-eigen/pull/171 .
Thank you!!! You fixed a really annoying bug in the test!
Please ignore the failing tests that are due to #161 and will be fixed in #171 .
That really scared me when working on https://github.com/ami-iit/qpsolvers-eigen, as for some reason there the issue was much more frequent.
This was a bit hidden by https://github.com/robotology/osqp-eigen/issues/161, but I recently noticed that while most time the test
QPUnitTests
the output was:in some rare case, the test was failing as the solution found was much less accurate:
To remove the non-determinism, I also tried to set
solver.settings()->setAdaptiveRho(false);
to remove the non-determinism (see https://github.com/google/osqp-cpp?tab=readme-ov-file#faq), but this only made the failure deterministic, with output:After playing a bit with the tolerances, I noticed that setting the
polish
option to true ensure that the solution is always provided with high accuracy, so in this PR I enabled the option to avoid the risk of non-deterministic failure of QPUnitTests.