From 732f753fb7b2bf6bb81e4496d2d5ec8eabbe9b98 Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Sat, 17 Feb 2024 10:07:55 +0800 Subject: [PATCH] 240217.100755.HKT correct the definition of iprint in testprima.m --- matlab/tests/private/isequiv.m | 1 + matlab/tests/testprima.m | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/matlab/tests/private/isequiv.m b/matlab/tests/private/isequiv.m index cc9e454e75..d842b33b83 100644 --- a/matlab/tests/private/isequiv.m +++ b/matlab/tests/private/isequiv.m @@ -716,6 +716,7 @@ function isequiv(solvers, options) 'ERRINROS', ... 'ERRINRSM', ... 'GOULDQP1', ... + 'HATFLDGLS', ... 'HYDCAR6LS', ... 'LSQFIT', ... 'METHANL8LS', ... diff --git a/matlab/tests/testprima.m b/matlab/tests/testprima.m index 600e2c8964..fa67c85eb9 100644 --- a/matlab/tests/testprima.m +++ b/matlab/tests/testprima.m @@ -120,7 +120,7 @@ function testprima(release, precision, nrun) options.solver = solver; options.classical = clflag; problem.options = options; - problem.options.iprint = round(4*(2*rand() - 1)) * release; + problem.options.iprint = round(4*(2*rand() - 1)) * (1 - release); switch type case 'unconstrained'