Skip to content

Commit

Permalink
Fix test_modification_objective_scalarquadraticcoefficientchange (#2320)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 24, 2023
1 parent d9417ae commit 96c724f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Test/test_modification.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@ function test_modification_objective_scalarquadraticcoefficientchange(
@requires _supports(config, MOI.modify)
@requires _supports(config, MOI.ScalarQuadraticCoefficientChange)
x = MOI.add_variable(model)
MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
MOI.set(model, attr, T(1) * x * x + T(2) * x + T(3))
@test MOI.get(model, attr) T(1) * x * x + T(2) * x + T(3)
MOI.modify(model, attr, MOI.ScalarQuadraticCoefficientChange(x, x, T(4)))
Expand Down

0 comments on commit 96c724f

Please sign in to comment.