Make osr error message more informative

time-shift
Johannes Pfeifer 2017-07-17 08:42:50 +02:00
parent 7d3f59607a
commit 7486760461
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ elseif isequal(options_.osr.opt_algo,11)
else
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
%%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,...