Skip to content

Commit bf32123

Browse files
committed
Update
1 parent b94c326 commit bf32123

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

test/Bridges/General/test_lazy_bridge_optimizer.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,11 @@ MOI.Utilities.@model(
13061306

13071307
function _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,

test/Utilities/test_copy.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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}}(),

0 commit comments

Comments
 (0)