# Why one of my residulas is same before and after running it?

**URL:** <https://forum.dynare.org/t/why-one-of-my-residulas-is-same-before-and-after-running-it/21886>\
**Category:** Semistructural Modeling\
**Created:** [3 February 2023 14:38 UTC](https://forum.dynare.org/t/why-one-of-my-residulas-is-same-before-and-after-running-it/21886 "2023-02-03T14:38:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nancy1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/n/b19c9b/32.png) [@Nancy1](https://forum.dynare.org/u/Nancy1)\
**Post date:** [3 February 2023 14:38 UTC](https://forum.dynare.org/t/why-one-of-my-residulas-is-same-before-and-after-running-it/21886/1 "2023-02-03T14:38:58Z")

</div>

Hi all,

I am trying to simulate my model. I have 16 equations, and one residual of them is the same before and after finding steady command.  
I put `resid` command before and after steady command. One resid value given initial values is same as the resid value from best-fitting results. Before steady command was implemented, the resid of the equation was 37.81, and after steady command was executed, the resid is 37.81.  
Can you give me a clue why this happens?  
Thank you

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [5 February 2023 19:41 UTC](https://forum.dynare.org/t/why-one-of-my-residulas-is-same-before-and-after-running-it/21886/2 "2023-02-05T19:41:59Z")

</div>

Without seeing the codes it is impossible to tell. But it may indicate that the program was unable to improve upon the residuals. This may happen in models with unit roots, which have infinitely many steady states and the Newton algorithm may therefore not find a direction for improvement.
