Problem in deterministic simulation

Dear All,

I experiment a deterministic simulation in with my model. I change the endval one of my variable (by 1 %), and obtain the following error:


variable SRD       period 2
1-	err = 13.9451
err_f = 22.9525
	Time of this iteration	: 8.695
variable RSR       period 6
2-	err = 4395.4199
err_f = 30.4353
	Time of this iteration	: 8.835
variable ERSW      period 2
3-	err = 341628173856777470
err_f = 1459996.1773
	Time of this iteration	: 23.06
Warning: Matrix is close to singular or badly scaled.
         Results may be inaccurate. RCOND = 3.050461e-036.
> In simk at 206
  In simul at 60
  In Aino at 1620
  In dynare at 79
Warning: Matrix is close to singular or badly scaled.
         Results may be inaccurate. RCOND = 1.792819e-036.

These error messages keep on coming until MaxIters is reached. Is there any way to get more information what might be the problematic part of the model code?

I can make such a permanent shock with another model variable without problems. The same error message is present also in the dynare version 3.

Best regards,


I found some information *

The symptoms in my case a similar of those.

Sorry for not looking carefully the forum before posting.


NB: * new ref

In this case, increasing the number of iterations won’t help. As you can see for the size of the errors the Newton procedure explodes instead of converging. It’s because the variables explode that a matrix ends up singular.

Try to diminish the size of the shock and see if you can solve it. Then you can try to increase the size the shock in a loop using the previous solution as initial value for the next experiment.



Many thanks Michel!

Does Dynare 4 automatically use the previous solution as the initial value? Ie, should the following code do the job?

for step_ = 0.996:-0.001:0.99;
		UPSILONSS = 1.085*step_;
	disp('Shock size: ' num2str(step_)]);


Yes, it should. Does it?