diff --git a/src/Bridges/Constraint/bridges/set_dot_scaling.jl b/src/Bridges/Constraint/bridges/set_dot_scaling.jl index 0eef72de82..6d2f930157 100644 --- a/src/Bridges/Constraint/bridges/set_dot_scaling.jl +++ b/src/Bridges/Constraint/bridges/set_dot_scaling.jl @@ -151,14 +151,14 @@ end function MOI.Bridges.map_set( ::Type{<:SetDotInverseScalingBridge{T,S}}, set::MOI.Scaled{S}, -) where {T,S} +) where {T,S<:MOI.AbstractVectorSet} return set.set end function MOI.Bridges.inverse_map_set( ::Type{<:SetDotInverseScalingBridge{T,S}}, set::S, -) where {T,S} +) where {T,S<:MOI.AbstractVectorSet} return MOI.Scaled(set) end diff --git a/src/Bridges/set_map.jl b/src/Bridges/set_map.jl index def51a5f7e..d43796105b 100644 --- a/src/Bridges/set_map.jl +++ b/src/Bridges/set_map.jl @@ -21,9 +21,7 @@ Return the preimage of `set` through the linear map `A` defined in [`Variable.SetMapBridge`](@ref) and [`Constraint.SetMapBridge`](@ref). This is used for getting the [`MOI.ConstraintSet`](@ref). """ -function inverse_map_set(BT::Type, set::MOI.AbstractSet) - return throw(MethodError(inverse_map_set, (typeof(BT), typeof(set)))) -end +function inverse_map_set end """ map_function(::Type{BT}, func) where {BT}