Dynare with Octave

Dynare is now able to run on GNU Octave, which is basically a free clone of MATLAB.

Octave 3.0.x and 3.2.x series are supported.

Note: Dynare doesn't work on Octave 3.2.0, because of a bug in Octave's which() function. This bug was fixed in Octave 3.2.2.

About Octave

GNU Octave is a free clone of MATLAB, running under Linux, Windows and MacOS.

It normally runs in a command window, and displays graphics in separate windows (using Gnuplot).

Some ressources:

Installing Dynare 4.0 with Octave

The following instructions are only for Dynare 4.0. For unstable/snapshot version of Dynare, see BuildingDynareFromSource.

Windows (without Cygwin)

This is the recommended way for Windows users.

Note: the distribution of Octave for Windows contains a nice text editor, which you can invoke with edit as you would under MATLAB.

Windows (with Cygwin)

mv /usr/lib/octave-3.0.3/libctave.dll.a /usr/lib/octave-3.0.3/liboctave.dll.a 

Note that graphics are not supported when Octave is run from the Cygwin prompt; you need to use the option nograph in your MOD file. If you want graphics, install the X windows server.

GNU/Linux

For Debian or Ubuntu distributions, see InstallOnDebianOrUbuntu.

For other distributions:

Running Dynare with Octave

First, you should run Octave.

Under Linux, at the prompt, just type:

octave

Under Windows, you should have a shortcut already installed in your Start menu.

It is also possible to run Octave under Emacs.

Then, from Octave, add the path to Dynare with the addpath command, as you would under MATLAB:

addpath REPLACE_WITH_INSTALL_PATH/matlab

It is possible to autoexecute this command at each Octave start by adding it to the .octaverc startup file (under Linux, this file should be put in the home directory; under Windows, it should be put at the root of the user home under Documents and Settings).

Invoking Dynare on Octave 3.2

If your MOD file is ramst.mod, just type:

dynare ramst

Invoking Dynare on Octave 3.0

Unless you tell it to do otherwise, Octave 3.0 won't accept the short syntax when typing dynare command. In other words, to run Dynare on ramst.mod, you need to type:

dynare('ramst')

rather than:

dynare ramst

However, you can force Octave 3.0 to accept the short syntax by typing the following (or by adding it to your .octaverc):

mark_as_command dynare

Current status of Dynare with Octave

Main differences between MATLAB and Octave which are dealt with by Dynare