diff --git a/matlab/perfect-foresight-models/perfect_foresight_solver.m b/matlab/perfect-foresight-models/perfect_foresight_solver.m index 580fb6a77e4261b2bec2dfd44972274d3b9cf5d3..7e28000ad535141d55cd92f930f56fdc40341657 100644 --- a/matlab/perfect-foresight-models/perfect_foresight_solver.m +++ b/matlab/perfect-foresight-models/perfect_foresight_solver.m @@ -111,7 +111,7 @@ if ~oo_.deterministic_simulation.status && ~options_.no_homotopy path_with_nans = any(any(isnan(oo_.endo_simul))); path_with_cplx = any(any(~isreal(oo_.endo_simul))); - if isequal(iteration,1) && (path_with_nans || path_with_cplx) + if isequal(iteration,1) oo_.endo_simul(:,M_.maximum_lag+1:end-M_.maximum_lead) = endoinit(:,1:options_.periods); elseif path_with_nans || path_with_cplx oo_.endo_simul(:,M_.maximum_lag+1:end-M_.maximum_lead) = saved_endo_simul(:,1+M_.maximum_endo_lag:end-M_.maximum_endo_lead);