Differences between revisions 2 and 3
Revision 2 as of 2008-05-23 16:45:26
Size: 1922
Comment:
Revision 3 as of 2008-05-26 10:27:08
Size: 3077
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#language en
Line 3: Line 5:
Porting of Dynare to [http://www.octave.org Octave] is under progress. Development is done using Octave version 3.0 (now available in Debian Testing aka "Lenny"). Porting of Dynare to Octave is under progress. Development is done using Octave version 3.0.

== About Octave ==

Octave is a free clone of Matlab, running under both Linux and Windows.

Ressources:

 * [http://www.octave.org Octave official site]
 * [http://octave.sourceforge.net Octave Forge]: a set of extensions for Octave
 * Official [http://www.gnu.org/software/octave/doc/interpreter/ Octave manual] online

== Development of Dynare for Octave ==
Line 13: Line 27:
== Installing and running Dynare for Octave == == Installing Dynare for Octave ==
Line 15: Line 29:
Under Debian "Lenny", install package {{{octave3.0}}}. === Octave ===
Line 17: Line 31:
At the prompt, type: Under Debian "Lenny", install package {{{octave3.0}}}

For Windows, the Cygwin package is quite outdated. You should rather download [http://sourceforge.net/project/showfiles.php?group_id=2888&package_id=40078 precompiled binaries from Octave Forge].

=== Dynare ===

If you don't already have a subversion copy of the whole Dynare tree, you should type (under Linux or under Cygwin prompt, assuming you have installed the {{{subversion}}} package):
{{{
svn checkout http://www.cepremap.cnrs.fr/svn/branches/dynare_v4_octave
}}}


== Running Dynare for Octave ==

First, you should run Octave.

Under Linux, at the prompt, just type:
Line 21: Line 51:
Under Windows, you should have a shortcut already installed in your Start menu.
Line 22: Line 53:
Then add path to {{{dynare_v4_octave}}} using the {{{addpath}}} command, as you would under Matlab. It is possible to autoexecute this command at each Octave start by adding it to the {{{~/.octaverc}}} init file. Then, from Octave, add the path to {{{dynare_v4_octave}}} using the {{{addpath}}} command, as you would under 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}}}).

Dynare for Octave

Porting of Dynare to Octave is under progress. Development is done using Octave version 3.0.

About Octave

Octave is a free clone of Matlab, running under both Linux and Windows.

Ressources:

Development of Dynare for Octave

A specific subversion branch has been created under branches/dynare_v4_octave. Note that this branch is supposed to work on both Matlab and Octave (using tests to differentiate between the two when necessary). Please report any failure to run under Matlab.

It is possible to view the differences between Matlab and Octave versions of Dynare by issuing:

svn diff http://www.cepremap.cnrs.fr/svn/dynare_v4 http://www.cepremap.cnrs.fr/svn/branches/dynare_v4_octave

Note: be aware that recent changes to Matlab version of Dynare may not have been yet merged into the Octave branch, and may thus appear as spurious differences.

Installing Dynare for Octave

Octave

Under Debian "Lenny", install package octave3.0

For Windows, the Cygwin package is quite outdated. You should rather download [http://sourceforge.net/project/showfiles.php?group_id=2888&package_id=40078 precompiled binaries from Octave Forge].

Dynare

If you don't already have a subversion copy of the whole Dynare tree, you should type (under Linux or under Cygwin prompt, assuming you have installed the subversion package):

svn checkout http://www.cepremap.cnrs.fr/svn/branches/dynare_v4_octave

Running Dynare for 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.

Then, from Octave, add the path to dynare_v4_octave using the addpath command, as you would under 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).

At first glance, Octave doesn't accept short syntax when typing dynare command (need to investigate that issue). In other words, to run Dynare on ramst.mod, you need to type:

dynare('ramst')

rather than:

dynare ramst

List of issues between Matlab and Octave

  • Warning handling is different between Matlab and Octave, and necessitated some adjustments.
  • Ajustments were obviously necessary where version() function is called

  • Generalized eigenvalues are not implemented as a primitive (i.e. eig(A,B) doesn't exist in Octave). This implied a change in dr1.m

Current status of development

  • Simple deterministic models should work

DynareWiki: OctaveCompatibility (last edited 2012-10-08 11:47:00 by SébastienVillemot)