You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Bridge of type `MathOptInterface.Bridges.Constraint.SplitIntervalBridge{Float64,MathOptInterface.SingleVariable}` "*
146
+
"Bridge of type `$MOI.Bridges.Constraint.SplitIntervalBridge{Float64,$MOI.SingleVariable,$MOI.Interval{Float64},$MOI.GreaterThan{Float64},$MOI.LessThan{Float64}}` "*
147
147
"does not support accessing the attribute `$attr`.")
148
148
x = MOI.add_variable(bridged_mock)
149
149
ci = MOI.add_constraint(bridged_mock, MOI.SingleVariable(x),
@@ -228,9 +228,9 @@ end
228
228
229
229
@testset"Show"begin
230
230
@testsprint(show, bridged_mock) ==raw"""
231
-
MOIB.Constraint.SingleBridgeOptimizer{MOIB.Constraint.LessToGreaterBridge{Float64,F,G} where G<:MOI.AbstractScalarFunction where F<:MOI.AbstractScalarFunction,MOIB.Constraint.SingleBridgeOptimizer{MOIB.Constraint.SplitIntervalBridge{Float64,F} where F<:MOI.AbstractScalarFunction,MOIU.MockOptimizer{NoIntervalModel{Float64}}}}
231
+
MOIB.Constraint.SingleBridgeOptimizer{MOIB.Constraint.LessToGreaterBridge{Float64,F,G} where G<:MOI.AbstractScalarFunction where F<:MOI.AbstractScalarFunction,MOIB.Constraint.SingleBridgeOptimizer{MOIB.Constraint.SplitIntervalBridge{Float64,F,S,LS,US} where US<:MOI.AbstractSet where LS<:MOI.AbstractSet where S<:MOI.AbstractSet where F<:MOI.AbstractFunction,MOIU.MockOptimizer{NoIntervalModel{Float64}}}}
232
232
with 1 constraint bridge
233
-
with inner model MOIB.Constraint.SingleBridgeOptimizer{MOIB.Constraint.SplitIntervalBridge{Float64,F} where F<:MOI.AbstractScalarFunction,MOIU.MockOptimizer{NoIntervalModel{Float64}}}
233
+
with inner model MOIB.Constraint.SingleBridgeOptimizer{MOIB.Constraint.SplitIntervalBridge{Float64,F,S,LS,US} where US<:MOI.AbstractSet where LS<:MOI.AbstractSet where S<:MOI.AbstractSet where F<:MOI.AbstractFunction,MOIU.MockOptimizer{NoIntervalModel{Float64}}}
234
234
with 0 constraint bridges
235
235
with inner model MOIU.MockOptimizer{NoIntervalModel{Float64}}"""
Bridge graph with 1 variable nodes, 1 variable nodes and 0 objective nodes.
338
+
Bridge graph with 1 variable nodes, 1 constraint nodes and 0 objective nodes.
339
339
[1] constrained variables in `MOI.PositiveSemidefiniteConeSquare` are not supported
340
340
(1) `MOI.VectorOfVariables`-in-`MOI.PositiveSemidefiniteConeSquare` constraints are bridged (distance 1) by MOIB.Constraint.SquareBridge{$T,MOI.VectorOfVariables,MOI.ScalarAffineFunction{$T},MOI.PositiveSemidefiniteConeTriangle,MOI.PositiveSemidefiniteConeSquare}.
Bridge graph with 1 variable nodes, 3 variable nodes and 0 objective nodes.
346
+
Bridge graph with 1 variable nodes, 3 constraint nodes and 0 objective nodes.
347
347
[1] constrained variables in `MOI.PositiveSemidefiniteConeSquare` are supported (distance 6) by adding free variables and then constrain them, see (1).
348
348
(1) `MOI.VectorAffineFunction{$T}`-in-`MOI.PositiveSemidefiniteConeSquare` constraints are bridged (distance 3) by MOIB.Constraint.SquareBridge{$T,MOI.VectorAffineFunction{$T},MOI.ScalarAffineFunction{$T},MOI.PositiveSemidefiniteConeTriangle,MOI.PositiveSemidefiniteConeSquare}.
349
349
(2) `MOI.VectorAffineFunction{$T}`-in-`MOI.Zeros` constraints are bridged (distance 1) by MOIB.Constraint.ScalarizeBridge{$T,MOI.ScalarAffineFunction{$T},MOI.EqualTo{$T}}.
@@ -409,7 +409,7 @@ Constrained variables in `MOI.LessThan{$T}` are not supported and cannot be brid
409
409
Cannot add free variables and then constrain them because free variables are bridged but no functionize bridge was added.
410
410
"""
411
411
@testsprint(MOIB.print_graph, bridged) =="""
412
-
Bridge graph with 1 variable nodes, 1 variable nodes and 0 objective nodes.
412
+
Bridge graph with 1 variable nodes, 1 constraint nodes and 0 objective nodes.
413
413
[1] constrained variables in `MOI.LessThan{$T}` are not supported
414
414
(1) `MOI.SingleVariable`-in-`MOI.LessThan{$T}` constraints are not supported
415
415
"""
@@ -426,7 +426,7 @@ Constrained variables in `MOI.LessThan{$T}` are not supported and cannot be brid
`MOI.ScalarAffineFunction{$T}`-in-`MOI.Interval{$T}` constraints are not supported and cannot be bridged into supported constrained variables and constraints. See details below:
484
484
(1) `MOI.ScalarAffineFunction{$T}`-in-`MOI.Interval{$T}` constraints are not supported because:
485
-
Cannot use `MOIB.Constraint.SplitIntervalBridge{$T,MOI.ScalarAffineFunction{$T}}` because:
485
+
Cannot use `MOIB.Constraint.SplitIntervalBridge{$T,MOI.ScalarAffineFunction{$T},MOI.Interval{$T},MOI.GreaterThan{$T},MOI.LessThan{$T}}` because:
486
486
(2) `MOI.ScalarAffineFunction{$T}`-in-`MOI.GreaterThan{$T}` constraints are not supported
487
487
(3) `MOI.ScalarAffineFunction{$T}`-in-`MOI.LessThan{$T}` constraints are not supported
488
488
(2) `MOI.ScalarAffineFunction{$T}`-in-`MOI.GreaterThan{$T}` constraints are not supported because no added bridge supports bridging it.
@@ -498,7 +498,7 @@ Bridge graph with 2 variable nodes, 1 variable nodes and 0 objective nodes.
498
498
[3] constrained variables in `MOI.Interval{$T}` are not supported because no added bridge supports bridging it.
499
499
Cannot add free variables and then constrain them because free variables are bridged but no functionize bridge was added.
500
500
(1) `MOI.ScalarAffineFunction{$T}`-in-`MOI.Interval{$T}` constraints are not supported because:
501
-
Cannot use `MOIB.Constraint.SplitIntervalBridge{$T,MOI.ScalarAffineFunction{$T}}` because:
501
+
Cannot use `MOIB.Constraint.SplitIntervalBridge{$T,MOI.ScalarAffineFunction{$T},MOI.Interval{$T},MOI.GreaterThan{$T},MOI.LessThan{$T}}` because:
502
502
(2) `MOI.ScalarAffineFunction{$T}`-in-`MOI.GreaterThan{$T}` constraints are not supported
503
503
(3) `MOI.ScalarAffineFunction{$T}`-in-`MOI.LessThan{$T}` constraints are not supported
504
504
Cannot use `MOIB.Constraint.ScalarSlackBridge{$T,MOI.ScalarAffineFunction{$T},MOI.Interval{$T}}` because:
@@ -522,7 +522,7 @@ Bridge graph with 2 variable nodes, 1 variable nodes and 0 objective nodes.
522
522
[4] constrained variables in `MOI.Interval{$T}` are not supported because no added bridge supports bridging it.
523
523
Cannot add free variables and then constrain them because free variables are bridged but no functionize bridge was added.
524
524
(1) `MOI.ScalarAffineFunction{$T}`-in-`MOI.Interval{$T}` constraints are not supported because:
525
-
Cannot use `MOIB.Constraint.SplitIntervalBridge{$T,MOI.ScalarAffineFunction{$T}}` because:
525
+
Cannot use `MOIB.Constraint.SplitIntervalBridge{$T,MOI.ScalarAffineFunction{$T},MOI.Interval{$T},MOI.GreaterThan{$T},MOI.LessThan{$T}}` because:
526
526
(3) `MOI.ScalarAffineFunction{$T}`-in-`MOI.LessThan{$T}` constraints are not supported
527
527
Cannot use `MOIB.Constraint.ScalarSlackBridge{$T,MOI.ScalarAffineFunction{$T},MOI.Interval{$T}}` because:
528
528
[4] constrained variables in `MOI.Interval{$T}` are not supported
@@ -612,7 +612,7 @@ Objective function of type `MOI.ScalarQuadraticFunction{$T}` is not supported an
@testdebug_string(MOIB.debug_supports, attr) =="Objective function of type `MOI.ScalarQuadraticFunction{$T}` is supported.\n"
614
614
@testsprint(MOIB.print_graph, bridged) =="""
615
-
Bridge graph with 1 variable nodes, 5 variable nodes and 2 objective nodes.
615
+
Bridge graph with 1 variable nodes, 5 constraint nodes and 2 objective nodes.
616
616
[1] constrained variables in `MOI.RotatedSecondOrderCone` are bridged (distance 2) by MOIB.Variable.RSOCtoPSDBridge{$T}.
617
617
(1) `MOI.ScalarQuadraticFunction{$T}`-in-`MOI.GreaterThan{$T}` constraints are bridged (distance 5) by MOIB.Constraint.QuadtoSOCBridge{$T}.
618
618
(2) `MOI.VectorAffineFunction{$T}`-in-`MOI.RotatedSecondOrderCone` constraints are bridged (distance 4) by MOIB.Constraint.VectorSlackBridge{$T,MOI.VectorAffineFunction{$T},MOI.RotatedSecondOrderCone}.
@@ -712,7 +712,7 @@ end
712
712
@test!MOIB.is_variable_bridged(bridged, cy)
713
713
@test MOIB.bridge(bridged, cy) isa MOIB.Constraint.RSOCBridge{T}
714
714
@testsprint(MOIB.print_graph, bridged) =="""
715
-
Bridge graph with 4 variable nodes, 8 variable nodes and 0 objective nodes.
715
+
Bridge graph with 4 variable nodes, 9 constraint nodes and 0 objective nodes.
716
716
[1] constrained variables in `MOI.SecondOrderCone` are supported (distance 2) by adding free variables and then constrain them, see (1).
717
717
[2] constrained variables in `MOI.RotatedSecondOrderCone` are supported (distance 2) by adding free variables and then constrain them, see (3).
718
718
[3] constrained variables in `MOI.PositiveSemidefiniteConeTriangle` are not supported
@@ -725,6 +725,7 @@ Bridge graph with 4 variable nodes, 8 variable nodes and 0 objective nodes.
725
725
(6) `MOI.VectorOfVariables`-in-`MOI.Nonnegatives` constraints are bridged (distance 1) by MOIB.Constraint.NonnegToNonposBridge{$T,MOI.VectorAffineFunction{$T},MOI.VectorOfVariables}.
726
726
(7) `MOI.SingleVariable`-in-`MOI.GreaterThan{$T}` constraints are bridged (distance 1) by MOIB.Constraint.GreaterToLessBridge{$T,MOI.ScalarAffineFunction{$T},MOI.SingleVariable}.
727
727
(8) `MOI.SingleVariable`-in-`MOI.EqualTo{$T}` constraints are bridged (distance 1) by MOIB.Constraint.VectorizeBridge{$T,MOI.VectorAffineFunction{$T},MOI.Zeros,MOI.SingleVariable}.
728
+
(9) `MOI.SingleVariable`-in-`MOI.LessThan{$T}` constraints are bridged (distance 1) by MOIB.Constraint.LessToGreaterBridge{$T,MOI.ScalarAffineFunction{$T},MOI.SingleVariable}.
0 commit comments