| 1 |
// Performs a simulation with a perfect_foresight_controlled_paths block |
| 2 |
// with the default stack_solve_algo=0 |
| 3 |
|
| 4 |
@#define shocks = true |
| 5 |
@#include "ramst_pf_controlled_paths_common.inc" |
| 6 |
|
| 7 |
perfect_foresight_setup(periods=30, first_simulation_period = 2001Y); |
| 8 |
perfect_foresight_solver(stack_solve_algo = 0); |
| 9 |
|
| 10 |
if ~oo_.deterministic_simulation.status |
| 11 |
error('Perfect foresight simulation failed') |
| 12 |
end |
| 13 |
|
| 14 |
if oo_.endo_simul(1, 3) ~= 1.6 || any(oo_.endo_simul(1, 5:6) ~= 1.7) || any(oo_.endo_simul(2, 8:10) ~= 13) ... |
| 15 |
|| any(oo_.endo_simul(3, 4:6) ~= 0.5) || oo_.exo_simul(2, 1) ~= 1.2 |
| 16 |
error('Perfect foresight with controlled paths failed') |
| 17 |
end |
| 18 |
|