tests/deterministic_simulations/pfwee_homotopy_linearization.mod
raw| 1 | /* Example that triggers homotopy in perfect foresight simulation with |
| 2 | expectation errors, and tests linearization. */ |
| 3 | |
| 4 | @#include "pfwee_homotopy.inc" |
| 5 | |
| 6 | perfect_foresight_with_expectation_errors_setup(periods=200); |
| 7 | perfect_foresight_with_expectation_errors_solver(homotopy_max_completion_share = 0.8, homotopy_linearization_fallback, steady_solve_algo = 13); |
| 8 | |
| 9 | if ~oo_.deterministic_simulation.status |
| 10 | error('Perfect foresight simulation failed') |
| 11 | end |