BGG model with investment delays

hi, everyone.do you ever copy the BGG(1999) model with investment delays.In dynare code ,if i set the investment with a head(equation 4.19),then ,the b_k condition is not satified,so ,how can i modify it ,thank you !
BGG1.mod (3.16 KB)

This seems to do the trick. Put this instead of equation 4.19

q = psi*(i2 - k(-1));//4.19 i2(-1) = i;
Change your var declaration to

thank u very much. I get it! :stuck_out_tongue: