@@ -22,6 +22,22 @@ function runtests()
22
22
end
23
23
24
24
function test_MOI_Test_cached ()
25
+ second_order_exclude = String[
26
+ " test_conic_GeometricMeanCone_VectorAffineFunction" ,
27
+ " test_conic_GeometricMeanCone_VectorAffineFunction_2" ,
28
+ " test_conic_GeometricMeanCone_VectorOfVariables" ,
29
+ " test_conic_GeometricMeanCone_VectorOfVariables_2" ,
30
+ " test_conic_RotatedSecondOrderCone_INFEASIBLE_2" ,
31
+ " test_conic_RotatedSecondOrderCone_VectorAffineFunction" ,
32
+ " test_conic_RotatedSecondOrderCone_VectorOfVariables" ,
33
+ " test_conic_RotatedSecondOrderCone_out_of_order" ,
34
+ " test_conic_SecondOrderCone_Nonpositives" ,
35
+ " test_conic_SecondOrderCone_Nonnegatives" ,
36
+ " test_conic_SecondOrderCone_VectorAffineFunction" ,
37
+ " test_conic_SecondOrderCone_VectorOfVariables" ,
38
+ " test_conic_SecondOrderCone_out_of_order" ,
39
+ " test_constraint_PrimalStart_DualStart_SecondOrderCone" ,
40
+ ]
25
41
model = MOI. Utilities. CachingOptimizer (
26
42
MOI. Utilities. UniversalFallback (MOI. Utilities. Model {Float64} ()),
27
43
MOI. instantiate (KNITRO. Optimizer; with_bridge_type= Float64),
@@ -41,22 +57,6 @@ function test_MOI_Test_cached()
41
57
],
42
58
);
43
59
exclude= String[
44
- # TODO (odow): investigate SecondOrderCone-related failures
45
- # x-ref: https://github.com/jump-dev/KNITRO.jl/issues/201
46
- " test_conic_GeometricMeanCone_VectorAffineFunction" ,
47
- " test_conic_GeometricMeanCone_VectorAffineFunction_2" ,
48
- " test_conic_GeometricMeanCone_VectorOfVariables" ,
49
- " test_conic_GeometricMeanCone_VectorOfVariables_2" ,
50
- " test_conic_RotatedSecondOrderCone_INFEASIBLE_2" ,
51
- " test_conic_RotatedSecondOrderCone_VectorAffineFunction" ,
52
- " test_conic_RotatedSecondOrderCone_VectorOfVariables" ,
53
- " test_conic_RotatedSecondOrderCone_out_of_order" ,
54
- " test_conic_SecondOrderCone_Nonpositives" ,
55
- " test_conic_SecondOrderCone_Nonnegatives" ,
56
- " test_conic_SecondOrderCone_VectorAffineFunction" ,
57
- " test_conic_SecondOrderCone_VectorOfVariables" ,
58
- " test_conic_SecondOrderCone_out_of_order" ,
59
- " test_constraint_PrimalStart_DualStart_SecondOrderCone" ,
60
60
# Returns OTHER_ERROR, which is also reasonable.
61
61
" test_conic_empty_matrix" ,
62
62
# Uses the ZerosBridge and ConstraintDual
@@ -67,8 +67,25 @@ function test_MOI_Test_cached()
67
67
" test_solve_ObjectiveBound_MAX_SENSE_LP" ,
68
68
# KNITRO doesn't support INFEASIBILITY_CERTIFICATE results.
69
69
" test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_" ,
70
+ second_order_exclude... ,
70
71
],
71
72
)
73
+ MOI. Test. runtests (
74
+ model,
75
+ MOI. Test. Config (
76
+ atol= 1e-3 ,
77
+ rtol= 1e-3 ,
78
+ optimal_status= MOI. LOCALLY_SOLVED,
79
+ infeasible_status= MOI. LOCALLY_INFEASIBLE,
80
+ exclude= Any[
81
+ MOI. ConstraintBasisStatus,
82
+ MOI. VariableBasisStatus,
83
+ MOI. DualObjectiveValue,
84
+ MOI. ConstraintDual,
85
+ ],
86
+ );
87
+ include= second_order_exclude,
88
+ )
72
89
return
73
90
end
74
91
0 commit comments