"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "c59000ac3ad12ad5e1f769267742d10174de4921"
Unverified Commit fc7595d0 authored by Adrià Arrufat's avatar Adrià Arrufat Committed by GitHub
Browse files

Relax MPC test for macOS (#2500)

parent 86b3a809
...@@ -403,7 +403,7 @@ namespace ...@@ -403,7 +403,7 @@ namespace
dlog << LINFO << trans(alpha2); dlog << LINFO << trans(alpha2);
dlog << LINFO << "objective value: " << 0.5*trans(alpha)*Q*alpha + trans(b)*alpha; dlog << LINFO << "objective value: " << 0.5*trans(alpha)*Q*alpha + trans(b)*alpha;
dlog << LINFO << "objective value2: " << 0.5*trans(alpha2)*Q*alpha + trans(b)*alpha2; dlog << LINFO << "objective value2: " << 0.5*trans(alpha2)*Q*alpha + trans(b)*alpha2;
DLIB_TEST_MSG(max(abs(alpha-alpha2)) < 1e-7, max(abs(alpha-alpha2))); DLIB_TEST_MSG(max(abs(alpha-alpha2)) < 1e-6, max(abs(alpha-alpha2)));
} }
test_with_positive_target_error_thresh(); test_with_positive_target_error_thresh();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment