diff --git a/matlab/perfect-foresight-models/perfect_foresight_solver.m b/matlab/perfect-foresight-models/perfect_foresight_solver.m index b9a321924dab635a481a376d1dd4eb758b238866..b15135af2cf42f40f0855b26624b354d2be5cf3c 100644 --- a/matlab/perfect-foresight-models/perfect_foresight_solver.m +++ b/matlab/perfect-foresight-models/perfect_foresight_solver.m @@ -64,30 +64,6 @@ if ~oo_.deterministic_simulation.status && ~options_.no_homotopy fprintf('Switching to a homotopy method...\n') end - if ~M_.maximum_lag && M_.maximum_lead>0 - disp('Homotopy not implemented for purely forward models!') - disp('Failed to solve the model!') - disp('Return with empty oo_.endo_simul.') - oo_.endo_simul = []; - return - end - - if ~M_.maximum_lead && M_.maximum_lag>0 - disp('Homotopy not implemented for purely backward models!') - disp('Failed to solve the model!') - disp('Return with empty oo_.endo_simul.') - oo_.endo_simul = []; - return - end - - if ~M_.maximum_lead && ~M_.maximum_lag - disp('Homotopy not implemented for purely static models!') - disp('Failed to solve the model!') - disp('Return with empty oo_.endo_simul.') - oo_.endo_simul = []; - return - end - % Disable warnings if homotopy warning_old_state = warning; warning off all