Skip to content
Snippets Groups Projects
Commit 6b56b1f3 authored by Houtan Bastani's avatar Houtan Bastani Committed by GitHub
Browse files

Merge pull request #1480 from JohannesPfeifer/OSR_message

Make osr error message more informative
parents c3b37809 74867604
Branches
Tags
No related merge requests found
...@@ -126,7 +126,7 @@ elseif isequal(options_.osr.opt_algo,11) ...@@ -126,7 +126,7 @@ elseif isequal(options_.osr.opt_algo,11)
else else
if ~isempty(M_.osr.param_bounds) && ~(ismember(options_.osr.opt_algo,[1,2,5,9]) || ischar(options_.osr.opt_algo)) if ~isempty(M_.osr.param_bounds) && ~(ismember(options_.osr.opt_algo,[1,2,5,9]) || ischar(options_.osr.opt_algo))
error('OSR: OSR with bounds on parameters requires a constrained optimizer, i.e. 1,2,5, or 9.') error('OSR: OSR with bounds on parameters requires a constrained optimizer, i.e. opt_algo= 1,2,5, or 9.')
end end
%%do actual optimization %%do actual optimization
[p, f, exitflag] = dynare_minimize_objective(str2func('osr_obj'),t0,options_.osr.opt_algo,options_,M_.osr.param_bounds,cellstr(M_.param_names(i_params,:)),[],[], i_params,... [p, f, exitflag] = dynare_minimize_objective(str2func('osr_obj'),t0,options_.osr.opt_algo,options_,M_.osr.param_bounds,cellstr(M_.param_names(i_params,:)),[],[], i_params,...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment