@@ -39,7 +39,7 @@ fulfilled.
3939function 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 " \t Upper-bound: " , upb,
135135 " \t Lower-bound: " , round (stats. lower_bounds[end ], 4 ),
136136 " \t Time: " , round (stats. exectime[end ], 2 )," s" )
137- else
137+ else
138138 println (" Pass number " , iteration_count,
139139 " \t Lower-bound: " , round (stats. lower_bounds[end ], 4 ),
140140 " \t Time: " , 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