From 6968fbee5450f5da9cd708f1d494d2e61d2f8c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Sun, 25 Aug 2019 14:14:15 +0200 Subject: [PATCH] Remove MOIB --- src/JuMP.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/JuMP.jl b/src/JuMP.jl index 1fcdca90fb3..e114a4eaab4 100644 --- a/src/JuMP.jl +++ b/src/JuMP.jl @@ -318,36 +318,36 @@ function bridge_constraints(model::Model) end function _moi_add_bridge(model::Nothing, - BridgeType::Type{<:MOIB.AbstractBridge}) + BridgeType::Type{<:MOI.Bridges.AbstractBridge}) # No optimizer is attached, the bridge will be added when one is attached return end function _moi_add_bridge(model::MOI.ModelLike, - BridgeType::Type{<:MOIB.AbstractBridge}) + BridgeType::Type{<:MOI.Bridges.AbstractBridge}) error("Cannot add bridge if `bridge_constraints` was set to `false` in the", " `Model` constructor.") end function _moi_add_bridge(bridge_opt::MOI.Bridges.LazyBridgeOptimizer, - BridgeType::Type{<:MOIB.AbstractBridge}) + BridgeType::Type{<:MOI.Bridges.AbstractBridge}) MOI.Bridges.add_bridge(bridge_opt, BridgeType{Float64}) return end function _moi_add_bridge(caching_opt::MOIU.CachingOptimizer, - BridgeType::Type{<:MOIB.AbstractBridge}) + BridgeType::Type{<:MOI.Bridges.AbstractBridge}) _moi_add_bridge(caching_opt.optimizer, BridgeType) return end """ add_bridge(model::Model, - BridgeType::Type{<:MOIB.AbstractBridge}) + BridgeType::Type{<:MOI.Bridges.AbstractBridge}) Add `BridgeType` to the list of bridges that can be used to transform unsupported constraints into an equivalent formulation using only constraints supported by the optimizer. """ function add_bridge(model::Model, - BridgeType::Type{<:MOIB.AbstractBridge}) + BridgeType::Type{<:MOI.Bridges.AbstractBridge}) push!(model.bridge_types, BridgeType) # The type of `backend(model)` is not type-stable, so we use a function # barrier (`_moi_add_bridge`) to improve performance.