Dynare with Octave

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

Octave versions greater or equal to 3.0.0 are supported.

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 with Octave

Windows (without Cygwin)

This is the recommended way for Windows users.

Note that the version of Octave compiled with Visual C++ that we used for making the Dynare 4.0.3 package is no longer distributed. So, until we release a new Dynare version, Octave users under Windows have to recompile the MEX files.

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 "Lenny" or Ubuntu "Hardy Heron" or "Intrepid Ibex", 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).

Unless you tell it to do otherwise, Octave 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 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