Skip to content

Commit

Permalink
rename iteration variable (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Jun 4, 2023
1 parent 5b0c5c2 commit d4ec204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redundancy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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})
= [MOI.add_constraint(model, λ, MOI.GreaterThan(zero(T))) for λ in λ]
= [MOI.add_constraint(model, λi, MOI.GreaterThan(zero(T))) for λi in λ]
else
= nothing
end
Expand Down

0 comments on commit d4ec204

Please sign in to comment.