Skip to content

Commit 075c865

Browse files
committed
[UPD] Change default parameters for compute_ub
1 parent b346d1f commit 075c865

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/SDDPoptimize.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ function run_SDDP!(model::SPModel,
143143
end
144144

145145
end
146-
146+
147147
##########
148148
# Estimate final upper bound with a great number of simulations:
149-
if (verbose>0) && (param.compute_upper_bound != 0)
149+
if (verbose>0) && (param.compute_upper_bound != -1)
150150
V0 = get_bellman_value(model, param, 1, V[1], model.initialState)
151151

152-
if param.compute_upper_bound == -1
152+
if param.compute_upper_bound == 0
153153
println("Estimate upper-bound with Monte-Carlo ...")
154154
upb, costs = estimate_upper_bound(model, param, V, problems)
155155
end

src/objects.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ type SDDPparameters
188188
monteCarloSize::Int64
189189

190190
function SDDPparameters(solver, passnumber=10, gap=0.,
191-
max_iterations=20, prune_cuts=0, compute_ub=0, montecarlo=10000)
191+
max_iterations=20, prune_cuts=0, compute_ub=-1, montecarlo=10000)
192192
return new(solver, passnumber, gap, max_iterations, prune_cuts, compute_ub, montecarlo)
193193
end
194194
end

0 commit comments

Comments
 (0)