File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,21 @@ MOI.supports_constraint(::ModelNoVAFinSOC{Float64},
167
167
:: Type{MOI.VectorAffineFunction{Float64}} ,
168
168
:: Type{MOI.SecondOrderCone} ) = false
169
169
170
+ # Model supporting nothing
171
+ MOIU. @model NothingModel () () () () () () () ()
172
+
170
173
@testset " LazyBridgeOptimizer" begin
174
+ @testset " Unsupported constraint with cycles" begin
175
+ # Test that `supports_constraint` works correctly when it is not
176
+ # supported but the bridges forms a cycle
177
+ mock = MOIU. MockOptimizer (NothingModel {Float64} ())
178
+ bridged = MOIB. full_bridge_optimizer (mock, Float64)
179
+ @test ! MOI. supports_constraint (
180
+ bridged, MOI. SingleVariable, MOI. GreaterThan{Float64})
181
+ @test ! MOI. supports_constraint (
182
+ bridged, MOI. VectorAffineFunction{Float64}, MOI. Nonpositives)
183
+ end
184
+
171
185
mock = MOIU. MockOptimizer (NoRSOCModel {Float64} ())
172
186
bridged_mock = MOIB. LazyBridgeOptimizer (
173
187
mock, MOIB. AllBridgedConstraints {Float64} ())
You can’t perform that action at this time.
0 commit comments