File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,7 @@ function test_relax_bounds()
66
66
end
67
67
68
68
function test_relax_no_warn ()
69
- src_str = """
70
- variables: x, y
71
- minobjective: x + y
72
- x >= 0.0
73
- y <= 0.0
74
- x in ZeroOne()
75
- y in Integer()
76
- """
77
- relaxed_str = """
69
+ input = """
78
70
variables: x, y
79
71
minobjective: x + y
80
72
x >= 0.0
@@ -83,12 +75,11 @@ function test_relax_no_warn()
83
75
y in Integer()
84
76
"""
85
77
model = MOI. Utilities. Model {Float64} ()
86
- MOI. Utilities. loadfromstring! (model, src_str)
87
- @test_logs (
88
- MOI. modify (model, MOI. Utilities. PenaltyRelaxation (; warn = false )),
89
- )
78
+ MOI. Utilities. loadfromstring! (model, input)
79
+ relaxation = MOI. Utilities. PenaltyRelaxation (; warn = false )
80
+ @test_logs MOI. modify (model, relaxation)
90
81
dest = MOI. Utilities. Model {Float64} ()
91
- MOI. Utilities. loadfromstring! (dest, relaxed_str )
82
+ MOI. Utilities. loadfromstring! (dest, input )
92
83
MOI. Bridges. _test_structural_identical (model, dest)
93
84
return
94
85
end
You can’t perform that action at this time.
0 commit comments