Skip to content

Commit 2ea7d5f

Browse files
authored
Update DominguezRios.jl
1 parent f3cf90c commit 2ea7d5f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/algorithms/DominguezRios.jl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,20 +195,16 @@ function minimize_multiobjective!(algorithm::DominguezRios, model::Optimizer)
195195
k = 0
196196
status = MOI.OPTIMAL
197197
B_prev = Vector{Union{Nothing,_DominguezRiosBox}}(nothing, n)
198-
iter = 0
199198
while any(!isempty(l) for l in L)
200-
iter += 1
201199
if (ret = _check_premature_termination(model)) !== nothing
202200
status = ret
203201
break
204202
end
205203
i, k = _select_next_box(L, k)
206204
B = L[k][i]
207-
# We check for the repeated search of similar boxes
208-
# in the same optimization direction. We wait for n
209-
# iterations so that every direction has at least
210-
# one box. If the same box were search before, we
211-
# delete it from the list of boxes.
205+
# We check for the repeated search of similar boxes in the same
206+
# optimization direction. If the same box was searched before, we delete
207+
# it from the list of boxes.
212208
if _isapprox(B_prev[k], B)
213209
deleteat!(L[k], i)
214210
continue

0 commit comments

Comments
 (0)