Skip to content

Commit f39c73f

Browse files
committed
[UPD] Avoid unvalid prunning methods in def of params
1 parent b10b933 commit f39c73f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/objects.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ type SDDPparameters
170170
compute_ub=-1, montecarlo_final=10000, montecarlo_in_iter = 100,
171171
mipsolver=nothing,
172172
rho0=0., alpha=1.)
173+
174+
if ~(pruning_algo ["none", "mixed", "territory", "exact"])
175+
throw(ArgumentError("`pruning_algo` must be `none`, `mixed`, `territory`, `exact`"))
176+
end
173177
is_acc = (rho0 > 0.)
174178
accparams = is_acc? Dict(:ρ0=>rho0, :alpha=>alpha, :rho=>rho0): Dict()
175179

0 commit comments

Comments
 (0)