Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
......@@ -152,6 +152,9 @@ if ~isempty(estim_params_)
bayestopt_.lb = 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)')
end
xparam1 = [];
bayestopt_.lb = [];
bayestopt_.ub = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment