Not stopping the algorithm after violation of BK-conditions

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.

Not stopping the algorithm after violation of BK-conditions

Postby Simon » Fri Mar 25, 2011 1:04 pm

Hello everyone,

I use the comand stoch_simul() within a loop to try many different combinations of parameters. For some parameter combinations, the model does not satisfy the Blanchard-Kahn conditions. My problem is that Dynare in this situation stops running the algorith and prints the according error message. Hence, my loop aborts when the parameter combination does for the first time not satisfy BK-condition.

Is there a way to suppress the stop of the run of the .mod-file? Is there a certain return value of stoch_simul() in this case?

many thanks in advance and greetings from Berlin,

Simon
Simon
 
Posts: 12
Joined: Wed Dec 22, 2010 12:58 am

Re: Not stopping the algorithm after violation of BK-conditions

Postby nymph » Fri Apr 01, 2011 4:38 am

Hi,

I have exactly the same problem when running loop in my dynare code. So is there a way to solve the problem?

Moreover, when running the loop, is there a way to have dynare print the parameters used for each run to indexation?

Thanks for any help!

Best,
Nymph
nymph
 
Posts: 10
Joined: Thu Mar 17, 2011 8:19 pm

Re: Not stopping the algorithm after violation of BK-conditions

Postby SébastienVillemot » Mon Apr 11, 2011 12:46 pm

Hi,

You should enclose the Dynare in a "try" and "catch" construct in order to catch the error. Have a look at MATLAB documentation for "try".

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Not stopping the algorithm after violation of BK-conditi

Postby Simon » Mon May 02, 2011 5:06 pm

many thanks!
Simon
 
Posts: 12
Joined: Wed Dec 22, 2010 12:58 am

Re: Not stopping the algorithm after violation of BK-conditi

Postby derenjali » Sat Feb 11, 2012 10:59 am

How long does a chapter 7 bankruptcy last on your credit report in Connecticut? I filed for a chapter 7 bankruptcy on December of 2001 and it has since been discharged. I would like to know how long that bankruptcy will be on my credit report. I filed the bankruptcy in the state of Connecticut. Thanks in advance for your help.
___________________________
keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite
derenjali
 
Posts: 1
Joined: Fri Feb 10, 2012 9:37 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests