From b26c1bc09f0d89f84b3bc958123f8dbc63f780ab Mon Sep 17 00:00:00 2001 From: Ray Zimmerman Date: Thu, 11 Apr 2024 15:55:16 -0600 Subject: [PATCH] Silence another potential intlinprog() warning in the tests. --- lib/t/t_most_30b_1_1_0_uc.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/t/t_most_30b_1_1_0_uc.m b/lib/t/t_most_30b_1_1_0_uc.m index 583fff9..238f47e 100644 --- a/lib/t/t_most_30b_1_1_0_uc.m +++ b/lib/t/t_most_30b_1_1_0_uc.m @@ -24,7 +24,7 @@ function t_most_30b_1_1_0_uc(quiet) % mpopt = mpoption('verbose', 2, 'out.all', -1); mpopt = mpoption(mpopt, 'out.bus', 0, 'out.branch', 0, 'out.gen', 2); mpopt = mpoption(mpopt, 'opf.violation', 5e-7, 'mips.comptol', 5e-8); -if have_feature('intlinprog') +if have_feature('intlinprog') && have_feature('intlinprog', 'vnum') < 24 mpopt = mpoption(mpopt, 'linprog.Algorithm', 'dual-simplex'); mpopt = mpoption(mpopt, 'intlinprog.RootLPAlgorithm', 'dual-simplex'); mpopt = mpoption(mpopt, 'intlinprog.TolCon', 1e-9);