Page 1 of 1

Ignoring error messages from Dynare

PostPosted: Fri Oct 07, 2016 12:39 pm
by stsp
I want to loop in matlab over parameter settings. Sometimes the parameter settings will make the model unstable and thus result in an error message (Blanchard Kahn not satisfied).

I would actually want matlab to continue with the loop when this happens, and just ignore the error message.

Is this possible? If so, how??

Many thanks in advance!

Re: Ignoring error messages from Dynare

PostPosted: Fri Oct 07, 2016 1:22 pm
by jpfeifer
Depends on what you are looping over. If you just loop over
Code: Select all
resol

there will be no exception thrown. If you are looping over
Code: Select all
stoch_simul

you must set
Code: Select all
options_.noprint=1;

The error code will then be stored in info returned by
Code: Select all
stoch_simul