@@ -116,14 +116,14 @@ function test_runtests(T)
116116 return
117117end
118118
119- function test_modify_ScalarCoefficientChange ()
120- inner = MOI. Utilities. Model {Float64 } ()
121- model = MOI. Bridges. Constraint. IntervalToHyperRectangle {Float64 } (inner)
119+ function test_modify_ScalarCoefficientChange (T )
120+ inner = MOI. Utilities. Model {T } ()
121+ model = MOI. Bridges. Constraint. IntervalToHyperRectangle {T } (inner)
122122 x = MOI. add_variable (model)
123- c = MOI. add_constraint (model, 1.0 * x, MOI. Interval (0.0 , 1.0 ))
124- @test ≈ (MOI. get (model, MOI. ConstraintFunction (), c), 1.0 * x)
125- MOI. modify (model, c, MOI. ScalarCoefficientChange (x, 2.0 ))
126- @test ≈ (MOI. get (model, MOI. ConstraintFunction (), c), 2.0 * x)
123+ c = MOI. add_constraint (model, T ( 1 ) * x, MOI. Interval (T ( 0 ), T ( 1 ) ))
124+ @test ≈ (MOI. get (model, MOI. ConstraintFunction (), c), T ( 1 ) * x)
125+ MOI. modify (model, c, MOI. ScalarCoefficientChange (x, T ( 2 ) ))
126+ @test ≈ (MOI. get (model, MOI. ConstraintFunction (), c), T ( 2 ) * x)
127127 return
128128end
129129
0 commit comments