Skip to content

Commit 56ae7f8

Browse files
sandyspiersodow
andauthored
Return after timeout instead of break
Co-authored-by: Oscar Dowson <odow@users.noreply.github.com>
1 parent e0ad951 commit 56ae7f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/MultiObjectiveAlgorithms.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,7 @@ function _compute_ideal_point(model::Optimizer, start_time)
567567
end
568568
for (i, f) in enumerate(objectives)
569569
if _time_limit_exceeded(model, start_time)
570-
status = MOI.TIME_LIMIT
571-
break
570+
return
572571
end
573572
MOI.set(model.inner, MOI.ObjectiveFunction{typeof(f)}(), f)
574573
MOI.optimize!(model.inner)

0 commit comments

Comments
 (0)