Skip to content

Commit

Permalink
Update set_map.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Jun 20, 2024
1 parent 6cf0646 commit ed11d1d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/Bridges/set_map.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,21 @@ the [`MOI.ConstraintSet`](@ref).
function map_set end

"""
inverse_map_set(bridge::MOI.Bridges.AbstractBridge, set)
inverse_map_set(::Type{BT}, set) where {BT}
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).
[`Variable.SetMapBridge`](@ref) and [`Constraint.SetMapBridge`](@ref).
This function is used for getting the [`MOI.ConstraintSet`](@ref).
The method can alternatively be defined on the bridge type. This legacy
interface is kept for backward compatibility.
"""
function inverse_map_set end
function inverse_map_set(bridge::AbstractBridge, set)
return map_function(typeof(bridge), set)

Check warning on line 44 in src/Bridges/set_map.jl

View check run for this annotation

Codecov / codecov/patch

src/Bridges/set_map.jl#L43-L44

Added lines #L43 - L44 were not covered by tests
end


"""
map_function(bridge::MOI.Bridges.AbstractBridge, func)
Expand Down

0 comments on commit ed11d1d

Please sign in to comment.