@@ -39,6 +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" )
4243 # Run SDDP upon example:
4344 sddp_stats = run_SDDP! (model, param, V, problems, display)
4445 return V, problems, sddp_stats
@@ -128,10 +129,16 @@ function run_SDDP!(model::SPModel,
128129 push! (stats. upper_bounds, upb)
129130
130131 if (display > 0 ) && (iteration_count% display== 0 )
131- println (" Pass number " , iteration_count,
132+ if upb < Inf
133+ println (" Pass number " , iteration_count,
132134 " \t Upper-bound: " , upb,
133135 " \t Lower-bound: " , round (stats. lower_bounds[end ], 4 ),
134136 " \t Time: " , round (stats. exectime[end ], 2 )," s" )
137+ else
138+ println (" Pass number " , iteration_count,
139+ " \t Lower-bound: " , round (stats. lower_bounds[end ], 4 ),
140+ " \t Time: " , round (stats. exectime[end ], 2 )," s" )
141+ end
135142 end
136143
137144 end
@@ -313,7 +320,7 @@ function initialize_value_functions(model::SPModel,
313320 param:: SDDPparameters )
314321
315322 solverProblems = build_models (model, param)
316-
323+ println ( " model builded " )
317324 V = PolyhedralFunction[
318325 PolyhedralFunction ([], Array {Float64} (0 , model. dimStates), 0 ) for i in 1 : model. stageNumber]
319326
0 commit comments