From cb1fc3ec3c42ef29ed5e67eb81d7dde0673292e8 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Wed, 13 May 2015 20:33:14 +0200 Subject: [PATCH] Lift unnecessary restriction of not allowing simpsa with infinite bounds Introduction of options_.huge_number makes this redundant --- matlab/optimization/dynare_minimize_objective.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/matlab/optimization/dynare_minimize_objective.m b/matlab/optimization/dynare_minimize_objective.m index fc0431039..30d7c9660 100644 --- a/matlab/optimization/dynare_minimize_objective.m +++ b/matlab/optimization/dynare_minimize_objective.m @@ -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)