@@ -1035,6 +1035,8 @@ function test_modification_objective_scalarquadraticcoefficientchange(
10351035 @test ≈ (MOI. get (model, attr), T (1 ) * x * x + T (2 ) * x * y, config)
10361036 MOI. modify (model, attr, MOI. ScalarQuadraticCoefficientChange (x, y, T (4 )))
10371037 @test ≈ (MOI. get (model, attr), T (1 ) * x * x + T (4 ) * x * y, config)
1038+ MOI. modify (model, attr, MOI. ScalarQuadraticCoefficientChange (y, x, T (6 )))
1039+ @test ≈ (MOI. get (model, attr), T (1 ) * x * x + T (6 ) * x * y, config)
10381040 return
10391041end
10401042
@@ -1055,5 +1057,7 @@ function test_modification_constraint_scalarquadraticcoefficientchange(
10551057 MOI. modify (model, c, MOI. ScalarQuadraticCoefficientChange (x, x, T (2 )))
10561058 MOI. modify (model, c, MOI. ScalarQuadraticCoefficientChange (x, y, - T (3 )))
10571059 @test ≈ (MOI. get (model, MOI. ConstraintFunction (), c), g, config)
1060+ MOI. modify (model, c, MOI. ScalarQuadraticCoefficientChange (y, x, - T (3 )))
1061+ @test ≈ (MOI. get (model, MOI. ConstraintFunction (), c), g, config)
10581062 return
10591063end
0 commit comments