From fbb830b2b1dd1f3dd54caaa67149fc752b1b169e Mon Sep 17 00:00:00 2001 From: odow Date: Wed, 14 Jun 2023 10:40:23 +1200 Subject: [PATCH] Update --- src/Bridges/Constraint/bridges/integer_to_zeroone.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Bridges/Constraint/bridges/integer_to_zeroone.jl b/src/Bridges/Constraint/bridges/integer_to_zeroone.jl index ab0242f40f..4f31530e13 100644 --- a/src/Bridges/Constraint/bridges/integer_to_zeroone.jl +++ b/src/Bridges/Constraint/bridges/integer_to_zeroone.jl @@ -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