Help! Equation solved, inaccuracy possible

Hi, everyone. I have a question and I hope someone can please answer me. Thanks!
When I run my mod, I get good results, but I receive the information below:

Equation solved, inaccuracy possible.
The vector of function values is near zero, as measured by the selected value
of the function tolerance. However, the last step was ineffective.

I wonder if this means something wrong and how should I do? PS: I use model_diagnostics and it shows “No obvious problems with this mod-file were detected”.

1 Like

Hi. Are you using a numeric solver in the steady state file, or it’s from Dynare itself?

You are right! I have used a numeric solver to deliver steady states to dynare. The fsolve give me fvals near zeros and the exitflag is 3.

Allow me to be more specified. I firstly solve the steady states with a m file, and then use

set_param_value(‘beta’,beta);

to deliver ss into dynare. So, is this where the problem comes from?

For what I can understand, this means that the solution found satisfies the specified tolerances, nonetheless some of the numeric characteristics of the last step may indicate that this is not an actual solution (check this topic in Matlab’s forum). In summary, it means what it says, that the solution found to that static equation might be inaccurate.

Though, I don’t actually know which potential consequences this could have in the computation of the dynamic model’s solution. It will run most of the times fine (as you experienced), but I don’t know if a potential not-actually-a-solution solution of the steady state would harm the dynamic solution.

No, the problem does not come from that part of the code, but from the equation you’re trying to solve itself. I mean, maybe that equation does not have a solution that is near the initial guess you provided, and thus the solver is not able to do so, for example. To be more clear it’s not a code problem, it’s a (potential) numeric problem.

Thanks for your answer! I can understand what you mean, while when I follow your topic, I also see someone say it’s not a mistake