Lift unnecessary restriction of not allowing simpsa with infinite bounds

Introduction of options_.huge_number makes this redundant
time-shift
Johannes Pfeifer 2015-05-13 20:33:14 +02:00
parent 6c7b4e8a74
commit cb1fc3ec3c
1 changed files with 1 additions and 5 deletions

View File

@ -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)