From 7aaa491c3cba1080422ff9b75c3c98d841dbbc6b Mon Sep 17 00:00:00 2001 From: odow Date: Mon, 6 Jan 2025 14:10:56 +1300 Subject: [PATCH] Fixes for new test_nonlinear_ tests --- test/test_MOI_wrapper.jl | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/test/test_MOI_wrapper.jl b/test/test_MOI_wrapper.jl index cf6f973c..3fca3d3f 100644 --- a/test/test_MOI_wrapper.jl +++ b/test/test_MOI_wrapper.jl @@ -78,7 +78,26 @@ function test_runtests() ); include = ["test_nonlinear_"], # This test is actually MOI.OPTIMAL. It's okay to ignore for now. - exclude = ["test_nonlinear_expression_overrides_objective"], + exclude = [ + "test_nonlinear_expression_overrides_objective", + "test_nonlinear_quadratic_1", + "test_nonlinear_quadratic_4", + "test_nonlinear_with_scalar_quadratic_function_with_off_diag", + ], + ) + MOI.Test.runtests( + model, + MOI.Test.Config(; + atol = 1e-3, + rtol = 1e-3, + exclude = Any[MOI.ConstraintDual], + ); + include = [ + "test_nonlinear_expression_overrides_objective", + "test_nonlinear_quadratic_1", + "test_nonlinear_quadratic_4", + "test_nonlinear_with_scalar_quadratic_function_with_off_diag", + ], ) MOI.set(model, MOI.RawOptimizerAttribute("PRESOLVE"), 0) MOI.Test.runtests(