Lift unnecessary restriction of not allowing simpsa with infinite bounds
Introduction of options_.huge_number makes this redundanttime-shift
parent
6c7b4e8a74
commit
cb1fc3ec3c
|
@ -46,11 +46,7 @@ function [opt_par_values,fval,exitflag,hessian_mat,options_,Scale]=dynare_minimi
|
|||
%% set bounds and parameter names if not already set
|
||||
n_params=size(start_par_value,1);
|
||||
if isempty(bounds)
|
||||
if isnumeric(minimizer_algorithm) && minimizer_algorithm==10
|
||||
error('Algorithm 10 (simpsa) requires upper and lower bounds')
|
||||
else
|
||||
bounds=[-Inf(n_params,1) Inf(n_params,1)];
|
||||
end
|
||||
bounds=[-Inf(n_params,1) Inf(n_params,1)];
|
||||
end
|
||||
|
||||
if isempty(parameter_names)
|
||||
|
|
Loading…
Reference in New Issue