Commit c2c88600 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

More explicit error message when no estimated_params and no smoother

Closes: #222
parent cc26a1d8
......@@ -152,6 +152,9 @@ if ~isempty(estim_params_) = lb;
bayestopt_.ub = ub;
else% If estim_params_ is empty (e.g. when running the smoother on a calibrated model)
if ~options_.smoother
error('ESTIMATION: the ''estimated_params'' block is mandatory (unless you are running a smoother)')
xparam1 = []; = [];
bayestopt_.ub = [];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment