@@ -1035,6 +1035,8 @@ function test_modification_objective_scalarquadraticcoefficientchange(
1035
1035
@test ≈ (MOI. get (model, attr), T (1 ) * x * x + T (2 ) * x * y, config)
1036
1036
MOI. modify (model, attr, MOI. ScalarQuadraticCoefficientChange (x, y, T (4 )))
1037
1037
@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)
1038
1040
return
1039
1041
end
1040
1042
@@ -1055,5 +1057,7 @@ function test_modification_constraint_scalarquadraticcoefficientchange(
1055
1057
MOI. modify (model, c, MOI. ScalarQuadraticCoefficientChange (x, x, T (2 )))
1056
1058
MOI. modify (model, c, MOI. ScalarQuadraticCoefficientChange (x, y, - T (3 )))
1057
1059
@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)
1058
1062
return
1059
1063
end
0 commit comments