Hi,
I am trying to simulate a simple general equilibrium model introduced by Wen (2002). My problem is the capital investment decisions must be made in advance for at least one period. So, the capital investment will not respond to demand shocks instantaneously. Some of the first order conditions have the lagged expectation operator and I tried to incorporate it to the code (first two equations). However, the Blanchard condition is not met. Without the operators there is a steady state solution and I also get the impulse responses, but that's not what I want to solve.
Any help is highly appreciated. I attached my .mod file.
Thanks.