Skip to content

Commit 3a67eca

Browse files
committed
[FIX] Remove unexpected stdout in SDDPoptimize
1 parent 12d6f71 commit 3a67eca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/SDDPoptimize.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fulfilled.
3939
function solve_SDDP(model::SPModel, param::SDDPparameters, display=0::Int64)
4040
# initialize value functions:
4141
V, problems = initialize_value_functions(model, param)
42-
println("initial value function intialized")
42+
(display > 0) && println("Initial value function loaded into memory.")
4343
# Run SDDP upon example:
4444
sddp_stats = run_SDDP!(model, param, V, problems, display)
4545
return V, problems, sddp_stats
@@ -134,7 +134,7 @@ function run_SDDP!(model::SPModel,
134134
"\tUpper-bound: ", upb,
135135
"\tLower-bound: ", round(stats.lower_bounds[end], 4),
136136
"\tTime: ", round(stats.exectime[end], 2),"s")
137-
else
137+
else
138138
println("Pass number ", iteration_count,
139139
"\tLower-bound: ", round(stats.lower_bounds[end], 4),
140140
"\tTime: ", round(stats.exectime[end], 2),"s")
@@ -320,7 +320,6 @@ function initialize_value_functions(model::SPModel,
320320
param::SDDPparameters)
321321

322322
solverProblems = build_models(model, param)
323-
println("model builded")
324323
V = PolyhedralFunction[
325324
PolyhedralFunction([], Array{Float64}(0, model.dimStates), 0) for i in 1:model.stageNumber]
326325

0 commit comments

Comments
 (0)