Skip to content

Commit 93eacff

Browse files
committed
[FIX] retro-fitting on stopping-test
1 parent 3666d7a commit 93eacff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stoppingtest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function test_stopping_criterion(param::SDDPparameters, stats::SDDPStat)
2828
lb = stats.lower_bounds[end]
2929
ub = stats.upper_bounds[end]
3030
check_gap = (abs((ub-lb)/lb) < param.gap)
31-
check_iter = stats.niterations >= param.maxItNumber
31+
check_iter = stats.niterations > param.maxItNumber
3232
return check_gap || check_iter
3333
end
3434

0 commit comments

Comments
 (0)