diff --git a/src/redundancy.jl b/src/redundancy.jl index d4f379c4..48eaa3cd 100644 --- a/src/redundancy.jl +++ b/src/redundancy.jl @@ -319,7 +319,7 @@ end function _hull(model::MOI.ModelLike, ::Type{T}, hull::Vector{MOI.ScalarAffineFunction{T}}, rep, idxs, sum_one = idxs isa PointIndices) where T λ = MOI.add_variables(model, length(idxs)) if !(idxs isa Union{HyperPlaneIndices, LineIndices}) - cλ = [MOI.add_constraint(model, λ, MOI.GreaterThan(zero(T))) for λ in λ] + cλ = [MOI.add_constraint(model, λi, MOI.GreaterThan(zero(T))) for λi in λ] else cλ = nothing end