Invalid Argument Error

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.

Invalid Argument Error

Postby tirupam » Wed Apr 02, 2014 3:59 pm

Dear All, sorry if this is a very basic error, but I cannot figure this out.

In the attached code, when I am running using 4.3.1 or 4.4.2, I am getting the following error.

Starting Dynare (version 4.4.2).
Starting preprocessing of the model file ...
Substitution of Expectation operator: added 2 auxiliary variables and equations.
Found 22 equation(s).
Evaluating expressions...done
Computing static model derivatives:
- order 1
Computing dynamic model derivatives:
- order 1
ERROR: Invalid argument
Processing outputs ...
Error using dynare (line 174)
DYNARE: preprocessing failed

Please let me know if you can see the problem.
Thanks and regards,
Tirupam
Attachments
dyn_lev_none.mod
(2.07 KiB) Downloaded 86 times
tirupam
 
Posts: 6
Joined: Wed Apr 02, 2014 3:30 pm

Re: Invalid Argument Error

Postby jpfeifer » Thu Apr 03, 2014 7:52 am

I cannot replicated the issue with the posted mod-file. Have you tried reinstalling Dynare?
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Invalid Argument Error

Postby tirupam » Thu Apr 03, 2014 2:42 pm

Thank you.
I reinstalled Dynare multiple times, but I get the same error. I am using Matlab 2013b.
I ran some other dynare codes using the same setup, and they are running fine.

I can try to investigate the ERROR that I am getting "INVALID ARGUMENT" if I can
understand whether the problem is with my equations or with initial values etc.
tirupam
 
Posts: 6
Joined: Wed Apr 02, 2014 3:30 pm

Re: Invalid Argument Error

Postby jpfeifer » Thu Apr 03, 2014 3:08 pm

Try putting the mod-file in an empty folder. As the file runs on my machine, there is nothing inherently wrong with it (except for problems with the steady state that cannot cause your error)
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Invalid Argument Error

Postby tirupam » Thu Apr 03, 2014 3:14 pm

Thank you very much Johannes. Putting the mod file in a separate folder ran the file okay (except other errors which I can handle now).
Thank you again, your help really saved a lot of my time.
Best regards,
Tirupam
tirupam
 
Posts: 6
Joined: Wed Apr 02, 2014 3:30 pm

Re: Invalid Argument Error

Postby jpfeifer » Thu Apr 03, 2014 3:17 pm

Ok. That means there is a conflict with a similarly named file in the original folder.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Invalid Argument Error

Postby tirupam » Thu Apr 03, 2014 3:23 pm

That would be the explanation. Since running the dynare code creates other files with similar names, which may have errors, and might have been interfering.
tirupam
 
Posts: 6
Joined: Wed Apr 02, 2014 3:30 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests