Skip to content
Snippets Groups Projects
Commit 36670c62 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
(cherry picked from commit c2c88600)
parent e00bdc81
Branches
Tags
No related merge requests found
......@@ -149,6 +149,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