// Example that triggers homotopy in perfect foresight simulation.
// Tests the homotopy_marginal_linearization_fallback and homotopy_step_size_increase_success_count options

@#include "homotopy_linearization.inc"

perfect_foresight_setup(periods=200, endval_steady);

perfect_foresight_solver(homotopy_max_completion_share = 0.7,
                         homotopy_step_size_increase_success_count = 3,
                         homotopy_marginal_linearization_fallback,
                         steady_solve_algo = 13);

if ~oo_.deterministic_simulation.status
   error('Perfect foresight simulation failed')
end
