Perfect foresight simulation with multiple shocks

Dear Dr. Pfeifer,

I am trying to conduct a perfect foresight simulation as described on slides 57-59 in this presentation by Villemot: https://sebastien.villemot.name/pdf/talks/2019/deterministic.pdf, deterministic-examples/rbc_unexpected.mod · 73579ccff9f96e25f0cc0f4b96fcc74c9040f096 · Sébastien Villemot / perfect-foresight-slides · GitLab.

Specifically, I would like to implement a perfect foresight simulations in which the economy is hit by two shocks in different periods (e.g., a pre-announced shock in period 1 and then an unexpected shock in period 10 as in the slides). I could implement this following the slides when both shocks are transitory. However, I am wondering if there is a way to declare the second shock as permanent (instead of transitory as described in the example in the slides).

Thanks in advance.

Dynare has a new syntax for experiments like this. See tests/deterministic_simulations/pfwee_learnt_in.mod · master · Dynare / dynare · GitLab and the manual.