RepositoryJulia
DynareJulia

DynareJulia/Dynare.jl

A Julia rewrite of Dynare: solving, simulating and estimating DSGE models.

133stars
26forks
18issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: rational-expectations-equilibrium

#1 Repository of the week

1
TINIX TRENDING·Topic: perturbations

#1 Repository of the week

1
TINIX TRENDING·Topic: dsge-models

#1 Repository of the week

WORK IN PROGRESS

Requirements

  • Julia 64bit >= v1.10

Documentation

Installation

using Pkg
pkg"add Dynare"

It is strongly recommended to install Dynare in a fresh Julia environment in order to avoid conflicts with other packages

Update

If you already have a version of Dynare installed (not in development mode):

using Pkg
pkg"update"

Often, it is necessary to restart Julia to load the new version of Dynare.

Note that the version of the Dynare package is printed immediately after running Dynare:

julia> context = @dynare "example1";
Dynare version: 0.9.6
...

Running Dynare

Example (to be run in the directory Dynare.jl):

using Dynare
context = @dynare "./test/models/example1/example1.mod";

The results are in the context structure.

Supported Dynare instructions

  1. calib_smoother
  2. deterministic_trends
  3. endval
  4. estimated_params
  5. estimated_params_init
  6. estimation
  7. histval
  8. homotopy
  9. initval
  10. initval_file
  11. perfect_foresight_setup (only some options)
  12. perfect_foresight_solver (only some options, includind lmmcp)
  13. planner_objective
  14. ramsey_constraints
  15. ramsey_model
  16. shocks
  17. steady (including numerical solution)
  18. stoch_simul (only order=1)

Output

  1. The context structure is saved in the directory <path to modfile>/<modfilenane>/output/<modfilename>.jls. It can be loaded with
    using Serialization
    DD = Serialization.deserialize("<path to modfile>/<modefilename>/output/<modefilename>.jls")``
    
  2. Graphs are saved in <path to modfile>/<modfilenane>/graphs
  3. A log of the session is kept in <filename>.log.

Project web site

Extensions

  1. PATH algorithm for MCP problems
  • You need to load PATHSolver before running Dynare (once per Julia session)
    pkg"add PATHSolver"
    using PATHSolver
    context = @dynare ...
  1. PARDISO is high-performance solver for very large sparse linear systems. It can be used with perfect foresight simulation of very large models. You need to load Pardiso before running Dynare (once per Julia session)
   pkg"add Pardiso"
   using Pardiso
   context = @dynare ...

PATH licence

Dynare uses the PATH software by S. Dirkse, M.C. Ferris and T. Munson (https://pages.cs.wisc.edu/~ferris/path.html), as provided by PATHSolver.jl to solve prefect foresight models with occasionally binding constraints.

In order to use it, you need to add the free licence available at https://pages.cs.wisc.edu/~ferris/path/LICENSE in your file ~/.julia/config/startup.jl

ENV["PATH_LICENSE_STRING"] = "licence number provided in the above link"

Under Windows

  1. Create a new folder in your .julia directory called config
  2. In the .julia\config folder create a new text file: Right click → New → Text Document
  3. Inside the new text document, type:

ENV["PATH_LICENSE_STRING"] = "licence number provided in the above link"

  1. In the text document, go File → Save as
  2. In the dropdown Save as type option at the bottom of the pop-up window select All files
  3. In the field File name write startup.jl
  4. Press Save

In VScode

  1. Go to File → Open Folder, navigate through your folders and choose the one where you want to create the startup.jl file
  2. Go to File → New Text File
  3. In the new text file, type

ENV["PATH_LICENSE_STRING"] = "licence number provided in the above link"

  1. Go to File → Save
  2. In the dropdown Save as type option at the bottom of the pop-up window select All files
  3. In the field File name write startup.jl.
  4. Press Save

Bugs, limitations, and other issues

  1. With older Julia versions, in some circumstances, it is necessary to install first Pardiso, then build it, and finally install Dynare.jl
  2. Perfect foresight simulations for purely backward models (without any forward look isn't supported yet

Sponsors

  • Banque de France
  • DSGE-net

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
firecrawl/firecrawl

Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.

215.1k
Dec 2, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026
RepositoryJulia
TuringLang/Turing.jl

Bayesian inference with probabilistic programming.

2.3k
Nov 24, 2026
RepositoryJulia
tpapp/DynamicHMC.jl

Implementation of robust dynamic Hamiltonian Monte Carlo methods (NUTS) in Julia.

253
Oct 29, 2026
RepositoryJulia
bat/BAT.jl

A Bayesian Analysis Toolkit in Julia

229
Nov 20, 2026
RepositoryJulia
RJDennis/SolveDSGE.jl

A Julia package to solve, simulate, and analyze nonlinear DSGE models.

95
Aug 26, 2026
RepositoryPython
pymc-devs/pymc

Bayesian Modeling and Probabilistic Programming in Python

9.9k
Nov 25, 2026
RepositoryPython
pyro-ppl/pyro

Deep universal probabilistic programming with Python and PyTorch

9.1k
Oct 5, 2026