Skip to content

Commit 96c724f

Browse files
authored
Fix test_modification_objective_scalarquadraticcoefficientchange (#2320)
1 parent d9417ae commit 96c724f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Test/test_modification.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,7 @@ function test_modification_objective_scalarquadraticcoefficientchange(
10251025
@requires _supports(config, MOI.modify)
10261026
@requires _supports(config, MOI.ScalarQuadraticCoefficientChange)
10271027
x = MOI.add_variable(model)
1028+
MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
10281029
MOI.set(model, attr, T(1) * x * x + T(2) * x + T(3))
10291030
@test MOI.get(model, attr) T(1) * x * x + T(2) * x + T(3)
10301031
MOI.modify(model, attr, MOI.ScalarQuadraticCoefficientChange(x, x, T(4)))

0 commit comments

Comments
 (0)