tests/solve_algo_12_14/purely_backward_12.mod
raw| 1 | // Check the correctedness of perfect foresight simulation of a purely backward model with “solve_algo=12” |
| 2 | |
| 3 | @#include "purely_backward_common.inc" |
| 4 | |
| 5 | perfect_foresight_solver(solve_algo = 12); |
| 6 | |
| 7 | ref = load('purely_backward_reference/Output/purely_backward_reference_results.mat'); |
| 8 | |
| 9 | if max(max(abs(oo_.endo_simul - ref.oo_.endo_simul))) > 5e-5 |
| 10 | error('Incorrect results for perfect foresight with solve_algo=12') |
| 11 | end |
| 12 | |
| 13 |