OLG transition (deterministic simulation)

Hey,
Thank you for help in advance! I really appreciate it.
I'm trying to add a deterministic "shock" to my otherwise quite basic 4 cohort overlapping generations model.
As is visible in the file below, in period 3 there is a increase in population. The problem is, the resource constraint of the economy ( y= c + i ) does not hold during the transition. The constraint starts to hold only when the demographic change is complete (and there is "stationary" demography). Do you guys have an idea how I could make this work in dynare?
Thank you for your time in advance.
Sincerely,
M
Thank you for help in advance! I really appreciate it.
I'm trying to add a deterministic "shock" to my otherwise quite basic 4 cohort overlapping generations model.
As is visible in the file below, in period 3 there is a increase in population. The problem is, the resource constraint of the economy ( y= c + i ) does not hold during the transition. The constraint starts to hold only when the demographic change is complete (and there is "stationary" demography). Do you guys have an idea how I could make this work in dynare?
Thank you for your time in advance.
Sincerely,
M