# A Toolkit for Models with Occasionally Binding Constraints

**URL:** https://forum.dynare.org/t/a-toolkit-for-models-with-occasionally-binding-constraints/3316
**Category:** Dynare contributions and examples
**Created:** [2 August 2013 14:11 UTC](https://forum.dynare.org/t/a-toolkit-for-models-with-occasionally-binding-constraints/3316 "2013-08-02T14:11:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![iacoviel](https://forum.dynare.org/letter_avatar_proxy/v4/letter/i/ea666f/32.png) [@iacoviel](https://forum.dynare.org/u/iacoviel)
#### Post date: [2 August 2013 14:11 UTC](https://forum.dynare.org/t/a-toolkit-for-models-with-occasionally-binding-constraints/3316/1 "2013-08-02T14:11:40Z")

</div>

Luca Guerrieri and I have developed a Dynare compatible toolkit to solve models with occasionally binding constraints. The toolkit is available here

[www2.bc.edu/matteo-iacoviello/research\_files/occbin\_20130531.zip](http://www2.bc.edu/matteo-iacoviello/research_files/occbin_20130531.zip)

from my research webpage which is [www2.bc.edu/matteo-iacoviello/research.htm](http://www2.bc.edu/matteo-iacoviello/research.htm)

and contains extensive documentation and several example files, from models with ZLB to models with borrowing constraints to models with irreversible capital.

The background paper is here

[www2.bc.edu/matteo-iacoviello/research\_files/TOOLKIT\_PAPER.pdf](http://www2.bc.edu/matteo-iacoviello/research_files/TOOLKIT_PAPER.pdf)

Enjoy and comments welcome.

Matteo Iacoviello

---

<div class="post-metadata">

### Author: ![federico](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/c2a13f/32.png) [@federico](https://forum.dynare.org/u/federico)
#### Post date: [7 August 2013 09:14 UTC](https://forum.dynare.org/t/a-toolkit-for-models-with-occasionally-binding-constraints/3316/2 "2013-08-07T09:14:50Z")

</div>

Dear prof Iacoviello,

First of all, excellent work , as always.

I downloaded your toolkit and run same examples, just few remarks.

a)  
In the main file setpathdynare4 after

path(dir1,path);  
path(dir2,path);

you have also to add  
path(dir3,path);  
otherwise matlab does not rcognize the toolkit file in his path

b) The toolkit seems to work not only with 4.3.1 dynare version, but also with the 4.3.2 and the 4.3.3 (at least same examples and under a window machine).

I’ am excited to further explore the potentiality of your toolbox.  
Again , excellent work.

Federico

---

<div class="post-metadata">

### Author: ![miljes](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/958977/32.png) [@miljes](https://forum.dynare.org/u/miljes)
#### Post date: [4 October 2017 09:37 UTC](https://forum.dynare.org/t/a-toolkit-for-models-with-occasionally-binding-constraints/3316/3 "2017-10-04T09:37:36Z")

</div>

Dear prof. Iacoviello,  
I am very interested in your toolkit for solving models with occasionally binding constraints. I have a few questions, which are related to the assumptions of the method.

1. in file runsim\_dnk.m baseline2=[ -0.04 -0.04 -0.04 -0.04 0 0  
0.00 0.00 0.00 0.00 0.0 0.0 ]’;  
What are these numbers -0.04. Maybe preference shocks. Does this mean that shocks (preference and government expenditures) are perfectly observed (not random)?
2. Can you shortly describe assuptions of the method (particularly about types of shocks, deterministic environment, disadvantages of the method).  
Thank you in advance for the answer!
