Dynare++ questtion - nonconvergence

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.

Dynare++ questtion - nonconvergence

Postby andwes » Thu Dec 08, 2016 3:09 pm

Hi,

I'm trying to run a (fairly large) model on Dynare++. The model file runs fine on standard dynare ( version 4.3.3 used with matlab 2015b) using stoch_simul (se end of attached .mod file), although it takes som time, say 5 minutes. However, when trying to run the file in dynare++ I get the following error message:

Caught dynare exception: dynare3.cpp:172: could not obtain convergence in non-linear solver.

The starting values have been solved using a matlab file, so they should be correct (the resid command in standard dynare gives a bunch of zeros).

When looking at the jnl-file, iterations ends at 500 after running dynare++, so presumably I've hit the maximum number of iterations constraint. However, it solved fine using standard dynare. The solver could perhaps be different in dynare (I've tried the baseline and solution algorithm number 1) and dynare++, (althugh the initial values are the solution, so it should be able to solve in dynare++ as well, I think).

Does anyone have an idea about what could be the problem?

Many thanks

Andreas Westermark
Attachments
test_file.mod
Model file
(791.79 KiB) Downloaded 70 times
andwes
 
Posts: 20
Joined: Wed Mar 17, 2010 2:17 pm

Re: Dynare++ questtion - nonconvergence

Postby jpfeifer » Fri Dec 09, 2016 9:57 am

Hi,
which version of Dynare++ are you using? Because I get a lot of errors because you set some parameters twice. Therefore I cannot run the file.
Is there a reason you cannot use Dynare and want to use 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: Dynare++ questtion - nonconvergence

Postby andwes » Fri Dec 09, 2016 1:36 pm

Hi,

Thanks for the reply. I was previously running it on dynare 4.3.3. Now I've uploaded a new version of the file that works in 4.4.3 after eliminating parameters declared twice.

Best,

Andreas
Attachments
test_file.mod
(791.58 KiB) Downloaded 80 times
andwes
 
Posts: 20
Joined: Wed Mar 17, 2010 2:17 pm

Re: Dynare++ questtion - nonconvergence

Postby jpfeifer » Sat Dec 10, 2016 9:10 am

Hi,
given the size of your problem, Dynare++ cannot solve the steady state at its default tolerance of 10^-13. Your initial values are only accurate up to 10^-7 or so. If you use
Code: Select all
dynare++ --ss-tol 10^-10 test_file.mod

it will work. This sets the tolerance to 10^-10
------------
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


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 5 guests