Page 1 of 1

dynare.m

PostPosted: Sat Jan 10, 2009 3:44 am
by Gordon
Dear all,

I am a new comer to the World of Dynare. I cannot run dynare. I cannot open dynare.m. Could somebody help me?

best,

Gordon


octave-3.0.3.exe:2> pkg rebuild -noauto ftp ann database
octave-3.0.3.exe:3> addpath c:\dynare\4.0.2\matlab
octave-3.0.3.exe:4> mark_as_command dynare
octave-3.0.3.exe:5> cd c:\dynare\4.0.2\models
octave-3.0.3.exe:6> dynare('rbc4.mod')

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.

error: DYNARE: can't open rbc4.mod
error: evaluating if command near line 84, column 1
error: called from `dynare' in file `c:\dynare\4.0.2\matlab\dynare.m'

Re: dynare.m

PostPosted: Mon Jan 12, 2009 2:39 pm
by SébastienVillemot
Hi,

I can't understand how you get this. Are you sure that you have a file named "rbc4.mod" in your c:\dynare\4.0.2\models directory?

Three other remarks (which probably have no relation to your problem):
  • the line "pkg rebuild..." need not be typed every time you run Octave; only the first time
  • You can just type "dynare rbc4.mod" instead of "dynare('rbc4.mod')"; this is precisely the purpose of the "mark_as_command" statement
  • You should not put your models in the same directory than the one where Dynare is installed, because if you uninstall Dynare 4.0.2 this will delete your model files. A better location is probably c:\dynare\models

Best

Sébastien

Re: dynare.m

PostPosted: Tue Jan 13, 2009 2:00 pm
by Gordon
Thank you for your reply. However, my problem has not been solved. Gordon

octave-3.0.3.exe:5> dynare rbc4.mod

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.

error: DYNARE: can't open rbc4.mod
error: evaluating if command near line 84, column 1
error: called from `dynare' in file `c:\dynare\4.0.2\matlab\dynare.m'

Re: dynare.m

PostPosted: Tue Jan 13, 2009 3:52 pm
by SébastienVillemot
Please launch the "dir" command on the Octave prompt. This should list the files of the current working directory, as Octave sees them. This should indicate if "rbc4.mod" is seen by Octave or not.

One possibility is that your file is actually called "rbc4.mod.mod" (because of Windows hiding extensions by default, which confuses some people).

Best

Sébastien

Re: dynare.m

PostPosted: Wed Jan 14, 2009 11:53 am
by Gordon
Your saying on dir is very helpful. My files are named ’***.mod.txt. ’ I can run Dynare now. It is great. Thank you for your help.
Gordon