Page 1 of 1

Not stopping the algorithm after violation of BK-conditions

PostPosted: Fri Mar 25, 2011 1:04 pm
by Simon
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

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

PostPosted: Fri Apr 01, 2011 4:38 am
by nymph
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

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

PostPosted: Mon Apr 11, 2011 12:46 pm
by SébastienVillemot
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,

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

PostPosted: Mon May 02, 2011 5:06 pm
by Simon
many thanks!

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

PostPosted: Sat Feb 11, 2012 10:59 am
by derenjali
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