Converting from Dynare 3 to Dynare 4

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Converting from Dynare 3 to Dynare 4

Postby pmaier » Mon Mar 29, 2010 10:57 pm

Hi,

I am trying to run a Dynare file written under Dynare 3.065 under Dynare 4.1. The file works perfectly under Dynare 3; yet under Dynare 4, all I get is the following:

>> dynare Japan_ML

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.

Starting Dynare (version 4.1.0).
Starting preprocessing of the model file ...
Found 24 equation(s).
Evaluating expressions...done
Computing static model derivatives:
- order 1
Computing dynamic model derivatives:
- order 1
- order 2
Processing outputs ...done
Preprocessing completed.
Starting MATLAB/Octave computing.

??? Error: File: Japan_ML.m Line: 221 Column: 23
Unexpected MATLAB operator.

Error in ==> dynare at 132
evalin('base',fname) ;


I checked that I cd'd to the correct directory before I run the file, and Dynare has been added to the path, too. I've tried this both with Matlab running on XP and Mac. Other Dynare files are executed without any difficulties (on both platforms), so I'm assuming that my Dynare installation isn't the issue. Instead I'm thinking that there's something in the code that Dynare 3 likes, but Dynare 4 doesn't - but I can't quite figure out what that is.

Any help would be appreciated,

Philipp
Attachments
Japan_ML.mod
(9.47 KiB) Downloaded 294 times
pmaier
 
Posts: 2
Joined: Mon Mar 29, 2010 10:44 pm

Re: Converting from Dynare 3 to Dynare 4

Postby htastan » Wed Mar 31, 2010 12:14 pm

It seems that Dynare v.4.1 doesn't like the // syntax to comment out the info lines or it is used improperly. After replacing them with % and excluding the estimation chunk your code works just fine.
Japan_ML.mod
(9.64 KiB) Downloaded 74 times
htastan
 
Posts: 10
Joined: Wed Mar 31, 2010 12:10 pm

Re: Converting from Dynare 3 to Dynare 4

Postby pmaier » Wed Mar 31, 2010 2:33 pm

Wow. You are absolutely right.

Thanks a million! Philipp
pmaier
 
Posts: 2
Joined: Mon Mar 29, 2010 10:44 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests