Skip to content

Commit 7aaa491

Browse files
committed
Fixes for new test_nonlinear_ tests
1 parent 9af64e4 commit 7aaa491

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

test/test_MOI_wrapper.jl

+20-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,26 @@ function test_runtests()
7878
);
7979
include = ["test_nonlinear_"],
8080
# This test is actually MOI.OPTIMAL. It's okay to ignore for now.
81-
exclude = ["test_nonlinear_expression_overrides_objective"],
81+
exclude = [
82+
"test_nonlinear_expression_overrides_objective",
83+
"test_nonlinear_quadratic_1",
84+
"test_nonlinear_quadratic_4",
85+
"test_nonlinear_with_scalar_quadratic_function_with_off_diag",
86+
],
87+
)
88+
MOI.Test.runtests(
89+
model,
90+
MOI.Test.Config(;
91+
atol = 1e-3,
92+
rtol = 1e-3,
93+
exclude = Any[MOI.ConstraintDual],
94+
);
95+
include = [
96+
"test_nonlinear_expression_overrides_objective",
97+
"test_nonlinear_quadratic_1",
98+
"test_nonlinear_quadratic_4",
99+
"test_nonlinear_with_scalar_quadratic_function_with_off_diag",
100+
],
82101
)
83102
MOI.set(model, MOI.RawOptimizerAttribute("PRESOLVE"), 0)
84103
MOI.Test.runtests(

0 commit comments

Comments
 (0)