File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed
src/Bridges/Constraint/bridges Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -269,8 +269,8 @@ function conversion_cost(
269269 :: Type {
270270 <: Union {
271271 MOI. VariableIndex,
272- MOI. ScalarAffineFunction,
273- MOI. ScalarQuadraticFunction,
272+ MOI. ScalarAffineFunction{Float64} ,
273+ MOI. ScalarQuadraticFunction{Float64} ,
274274 },
275275 },
276276)
Original file line number Diff line number Diff line change @@ -525,10 +525,6 @@ function test_complex_objective()
525525 MOI. Utilities. Model {Float64} (),
526526 Float64,
527527 )
528- MOI. Bridges. remove_bridge (
529- dest,
530- MOI. Bridges. Objective. ToScalarNonlinearBridge{Float64},
531- ) # Otherwise, would be bridged to Nonlinear.
532528 @test_throws MOI. UnsupportedAttribute (attr) MOI. copy_to (dest, model)
533529 end
534530 return
Original file line number Diff line number Diff line change 188188
189189function test_print_active_bridges_objective_unsupported ()
190190 model = MOI. Bridges. full_bridge_optimizer (Model {Float64} (), Float64)
191- MOI. Bridges. remove_bridge (
192- model,
193- MOI. Bridges. Objective. ToScalarNonlinearBridge{Float64},
194- ) # Otherwise, Int would be bridged to Nonlinear.
195191 F = MOI. ScalarAffineFunction{Int}
196192 @test_throws (
197193 MOI. UnsupportedAttribute{MOI. ObjectiveFunction{F}},
You can’t perform that action at this time.
0 commit comments