# Blanchard Kahn violations when using OLR

**URL:** <https://forum.dynare.org/t/blanchard-kahn-violations-when-using-olr/247>\
**Category:** Dynare help (legacy posts)\
**Created:** [20 February 2007 02:27 UTC](https://forum.dynare.org/t/blanchard-kahn-violations-when-using-olr/247 "2007-02-20T02:27:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbeltran](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/e9a140/32.png) [@dbeltran](https://forum.dynare.org/u/dbeltran)\
**Post date:** [20 February 2007 02:27 UTC](https://forum.dynare.org/t/blanchard-kahn-violations-when-using-olr/247/1 "2007-02-20T02:27:41Z")

</div>

Hi Michel,

Thanks for your patience in trying your best to reply to all these emails, and for providing such a wonderful software for economists.

I’m trying to use the OLR function. Dynare calculates the steady state and performs the stochastic simulations for my model just fine. When I try to compute the optimal policy using olr, it crashes saying the Blanchard-Kahn conditions are not satisfied (indeterminacy). OSR seems to work fine, but not OLR. I am sending you the dynare .mod file for Monacelli’s SOE model extended for habit formation which I am using in my dissertation. The instrument I chose for olr was the interest rate “int.” I then removed the monetary policy rule equation when running olr.

//int=rho\_i_int(-1)+(1-rho\_i)_(psi\_pi_pie+psi\_y\_tilda_y\_gap)+ei;

I tried other policy instruments and removing other equations, but this did not solve the problem. Could this problem be due to the initialization of the optimization algorithm?

If you have any clues for me that would be great. The .mod file is attached.

Thank you so much.

Best,  
Daniel Beltran  
Univ. of CA, Santa Cruz  
[optimize\_Monacelli\_h\_ygap\_compare\_R\_olr.mod](https://forum.dynare.org/uploads/default/original/1X/75e060e110fc2c52193c557ab59de7c9cd347dfc.mod) (3.81 KB)

---

<div class="post-metadata">

**Author:** ![MichelJuillard](https://forum.dynare.org/user_avatar/forum.dynare.org/micheljuillard/32/5318_2.png) [@MichelJuillard](https://forum.dynare.org/u/MichelJuillard)\
**Post date:** [20 February 2007 09:07 UTC](https://forum.dynare.org/t/blanchard-kahn-violations-when-using-olr/247/2 "2007-02-20T09:07:01Z")

</div>

Dear Daniel,

thanks for the message. I will have a look. There is no theory that I’m aware of that will tell you that OLR solution will always satisfy BK conditions. I have examples where a simple rule will be uniquely stable, but not the OLR solution

Kind regards

Michel

---

<div class="post-metadata">

**Author:** ![dbeltran](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/e9a140/32.png) [@dbeltran](https://forum.dynare.org/u/dbeltran)\
**Post date:** [21 February 2007 02:08 UTC](https://forum.dynare.org/t/blanchard-kahn-violations-when-using-olr/247/3 "2007-02-21T02:08:27Z")

</div>

Hi Michel,

Thanks for looking into this. I’ll also try using different parameter values and hopefully it will work for at least one parameter combination.

Best,  
Daniel
