I have the following code for a basic New Keynesian model in a deterministic set up with one negative technology shock in period 1 (size 0.01) including a restriction on the nominal interest rate (ZLB constrain)
I would like to extend my Taylor rule to allow for an inflation target (“pi_target”) but I’m struggling with it I only get one eigenvalue outside the unit circle (need 2 to satisfy the Blanchard-Kahn condition).

Also - I would like to allow for the nominal interest rate to be positive in equilibrium which I also cannot figure out how to do properly. I would like it to be positive in steady state to mimic reality and so that the ZLB is not binding all the time.

[code] var x pi i ez;
varexo epsz;
parameters betta sigma omega eta phipi phix rhoz pi_target;

betta =0.98; %Discount factor
omega =0.75; %Calvo parameter price stickiness
phipi =1.5; %Taylor rule: feedback on expected inflation
phix =0.125; %Taylor rule: feedback on output gap
eta = 1; %Labor supply parameter
sigma = 2; %CRRA parameter in consumption
rhoz = 0.9; %persistence of technology shock
pi_target=0;

model(linear);
x = x(+1)-(1/sigma)(i-pi(+1))-ez;
pi = bettapi(+1)+((sigma+eta)(1-bettaomega)(1-omega)/omega)x;
i = max(0,phipi(pi-pi_target)+phixx);
ez = rhoz*ez(-1)+epsz;
end;

In that case, you need to extend your model. Also note that there is a distinction between the deviation of the nominal interest rate from its mean, which is 0 in steady state and the level of the nominal interest rate, which in steady state is the real interest rate + inflation rate. If you compare with Gali’s textbook, he does not use percentage deviations from steady state, but the logarithm of the nominal interest rate (because his model is roughly log-linear)

My model is based on the Walsh textbook but I see your point. So I should base my basic NK model on Gali’s textbook in order to get the desired result?

I may have misunderstood you. All I am saying is: if you are not using levels, it depends if you are talking about absolute deviations or percentage deviations. Say the real interest rate in steady state is 1/beta=1.05. In that case, the absolute deviation is at most allowed to be 0.05 percentage points. But the percentage deviation can be at most 0.05/1.05

For the basic NK model in the Walsh (2010) textbook I think the nominal interest rate is the absolute deviation from steady state based on the appendix in chapter 2 (page 84)