Skip to content

Commit

Permalink
Update Constraint.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jan 2, 2025
1 parent 10e897d commit 77e1362
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Bridges/Constraint/Constraint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ function add_all_bridges(model, ::Type{T}) where {T}
# IndicatorGreaterToLessThanBridge are added.
MOI.Bridges.add_bridge(model, IndicatorSOS1Bridge{T})
MOI.Bridges.add_bridge(model, IndicatorToMILPBridge{T})
MOI.Bridges.add_bridge(model, InequalityToComplementsBridge{T})
# * InequalityToComplementsBridge{T}
# This bridge is not added because of a bug in Convex.jl:
# https://github.com/jump-dev/Convex.jl/blob/ca5324217575af263bfeee20b3e0526bed051887/src/MOI_wrapper.jl#L119-L133
# It is also really useful only to PATHSolver.jl, which could add this
# to MOI.ListOfRequiredBridges.
MOI.Bridges.add_bridge(model, IntegerToZeroOneBridge{T})
MOI.Bridges.add_bridge(model, LessToGreaterBridge{T})
if T <: AbstractFloat # See note in docstring of AbstractToIntervalBridge
Expand Down

0 comments on commit 77e1362

Please sign in to comment.