File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1306,6 +1306,11 @@ MOI.Utilities.@model(
13061306
13071307function _test_constrained_variables_in_RSOC (T)
13081308 bridged = MOI. Bridges. full_bridge_optimizer (NoRSOCModel {T} (), T)
1309+ # Remove the constraint bridge to force via Variable bridges.
1310+ MOI. Bridges. remove_bridge (
1311+ bridged,
1312+ MOI. Bridges. Constraint. RSOCtoSOCBridge{T},
1313+ )
13091314 @test MOI. supports_constraint (
13101315 bridged,
13111316 MOI. VectorOfVariables,
Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ function test_create_variables_using_supports_add_constrained_variable()
482482 Type[MOI. Nonpositives, MOI. Zeros, MOI. Nonnegatives]
483483 @test MOI. supports_add_constrained_variables (bridged_dest, MOI. Nonnegatives)
484484 @test MOI. get (bridged_dest, MOI. VariableBridgingCost {MOI.Nonnegatives} ()) ==
485- 2 .0
485+ 1 .0
486486 @test MOI. supports_constraint (
487487 bridged_dest,
488488 MOI. VectorOfVariables,
@@ -546,7 +546,7 @@ function test_create_variables_using_supports_add_constrained_variable()
546546 @test MOI. get (
547547 bridged_dest,
548548 MOI. VariableBridgingCost {MOI.GreaterThan{Float64}} (),
549- ) == 1 .0
549+ ) == 0 .0
550550 @test MOI. get (
551551 bridged_dest,
552552 MOI. ConstraintBridgingCost {MOI.VariableIndex,MOI.GreaterThan{Float64}} (),
@@ -560,7 +560,7 @@ function test_create_variables_using_supports_add_constrained_variable()
560560 @test MOI. get (
561561 bridged_dest,
562562 MOI. VariableBridgingCost {MOI.LessThan{Float64}} (),
563- ) == 1 .0
563+ ) == 0 .0
564564 @test MOI. get (
565565 bridged_dest,
566566 MOI. ConstraintBridgingCost {MOI.VariableIndex,MOI.LessThan{Float64}} (),
You can’t perform that action at this time.
0 commit comments