Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jun 13, 2023
1 parent 9b38f4c commit fbb830b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Bridges/Constraint/bridges/integer_to_zeroone.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
* [`MOI.VariableIndex`](@ref) in [`MOI.ZeroOne`](@ref)
* [`MOI.ScalarAffineFunction{T}`](@ref) in [`MOI.EqualTo{T}`](@ref)
## Developer note
This bridge is implemented as a constraint bridge instead of a variable bridge
because we don't want to substitute the linear combination of `y` for every
instance of `x`. Doing so would be expensive and greatly reduce the sparsity of
the constraints.
"""
mutable struct IntegerToZeroOneBridge{T} <: AbstractBridge
x::MOI.VariableIndex
Expand Down

0 comments on commit fbb830b

Please sign in to comment.