Page 1 of 1

problem with simulation

PostPosted: Thu Aug 23, 2012 5:23 am
by jackf118
shi.mod
(1.45 KiB) Downloaded 73 times

When I use the program as attached to conduct simulation after get the steady state value, matlab show the errors as follows:

MODEL SIMULATION :

Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 2.116059e-016.
> In sim1 at 129
In simul at 100
In shi at 212
In dynare at 120
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 4.671822e-028.
> In sim1 at 129
In simul at 100
In shi at 212
In dynare at 120
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 4.773658e-087.
> In sim1 at 129
In simul at 100
In shi at 212
In dynare at 120
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 3.930813e-080.
> In sim1 at 129
In simul at 100
In shi at 212
In dynare at 120
Warning: Matrix is singular to working precision.
> In sim1 at 129
In simul at 100
In shi at 212
In dynare at 120

Total time of simulation :1.457

WARNING : maximum number of iterations is reached (modify options_.maxit_).

??? Undefined function or variable 'c'.

Error in ==> sim1 at 144
oo_.deterministic_simulation.errors = c/abs(err);

Error in ==> simul at 100
sim1;

Error in ==> shi at 212
simul();

Error in ==> dynare at 120
evalin('base',fname) ;

Can you help me fix it? Thank you so much!

Re: problem with simulation

PostPosted: Fri Aug 24, 2012 10:43 am
by kyri82
hey, are you sure you are defining an exogenous process for your model? it does not seem so...