@@ -22,21 +22,21 @@ 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" ,
25
+ second_order_exclude = [
26
+ r" ^ test_conic_GeometricMeanCone_VectorAffineFunction$ " ,
27
+ r" ^ test_conic_GeometricMeanCone_VectorAffineFunction_2$ " ,
28
+ r" ^ test_conic_GeometricMeanCone_VectorOfVariables$ " ,
29
+ r" ^ test_conic_GeometricMeanCone_VectorOfVariables_2$ " ,
30
+ r" ^ test_conic_RotatedSecondOrderCone_INFEASIBLE_2$ " ,
31
+ r" ^ test_conic_RotatedSecondOrderCone_VectorAffineFunction$ " ,
32
+ r" ^ test_conic_RotatedSecondOrderCone_VectorOfVariables$ " ,
33
+ r" ^ test_conic_RotatedSecondOrderCone_out_of_order$ " ,
34
+ r" ^ test_conic_SecondOrderCone_Nonpositives$ " ,
35
+ r" ^ test_conic_SecondOrderCone_Nonnegatives$ " ,
36
+ r" ^ test_conic_SecondOrderCone_VectorAffineFunction$ " ,
37
+ r" ^ test_conic_SecondOrderCone_VectorOfVariables$ " ,
38
+ r" ^ test_conic_SecondOrderCone_out_of_order$ " ,
39
+ r" ^ test_constraint_PrimalStart_DualStart_SecondOrderCone$ " ,
40
40
]
41
41
model =
42
42
MOI. instantiate (KNITRO. Optimizer; with_bridge_type= Float64, with_cache_type= Float64)
@@ -51,19 +51,21 @@ function test_MOI_Test_cached()
51
51
MOI. Test. runtests (
52
52
model,
53
53
config;
54
- exclude= String[
54
+ exclude= Union{ String,Regex} [
55
55
# TODO (odow): this test is flakey.
56
- " test_cpsat_ReifiedAllDifferent" ,
56
+ r" ^test_cpsat_ReifiedAllDifferent$" ,
57
+ # TODO (odow): investigate issue with bridges
58
+ r" ^test_basic_VectorNonlinearFunction_GeometricMeanCone$" ,
57
59
# Returns OTHER_ERROR, which is also reasonable.
58
- " test_conic_empty_matrix" ,
60
+ r" ^ test_conic_empty_matrix$ " ,
59
61
# Uses the ZerosBridge and ConstraintDual
60
- " test_conic_linear_VectorOfVariables_2" ,
62
+ r" ^ test_conic_linear_VectorOfVariables_2$ " ,
61
63
# Returns ITERATION_LIMIT instead of DUAL_INFEASIBLE, which is okay.
62
- " test_linear_DUAL_INFEASIBLE" ,
64
+ r" ^ test_linear_DUAL_INFEASIBLE$ " ,
63
65
# Incorrect ObjectiveBound with an LP, but that's understandable.
64
- " test_solve_ObjectiveBound_MAX_SENSE_LP" ,
66
+ r" ^ test_solve_ObjectiveBound_MAX_SENSE_LP$ " ,
65
67
# KNITRO doesn't support INFEASIBILITY_CERTIFICATE results.
66
- " test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_" ,
68
+ r" ^ test_solve_DualStatus_INFEASIBILITY_CERTIFICATE_$ " ,
67
69
# ConstraintDual not supported for SecondOrderCone
68
70
second_order_exclude... ,
69
71
],
0 commit comments