Skip to content

Commit ee01b1b

Browse files
committed
[FIX] Hotfix: toq without tic in SDDPoptimize
1 parent a24be19 commit ee01b1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/SDDPoptimize.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ function run_SDDP(model::SPModel,
8888

8989
while (iteration_count < param.maxItNumber) & (~stopping_test)
9090
# Time execution of current pass:
91-
tic()
91+
if display > 0
92+
tic()
93+
end
9294

9395
# Build given number of scenarios according to distribution
9496
# law specified in model.noises:
@@ -132,7 +134,6 @@ function run_SDDP(model::SPModel,
132134
if (display>0)
133135
upb = upper_bound(costs)
134136
V0 = get_bellman_value(model, param, 1, V[1], model.initialState)
135-
time = toq()
136137

137138
println("Estimate upper-bound with Monte-Carlo ...")
138139
upb, costs = estimate_upper_bound(model, param, V, problems)

0 commit comments

Comments
 (0)