# DSGE MODEL: Impossible to find the steady state. Either the model doesn't have a steady state, there are an infinity of steady states, or the guess values are too far from the solution

**URL:** https://forum.dynare.org/t/dsge-model-impossible-to-find-the-steady-state-either-the-model-doesnt-have-a-steady-state-there-are-an-infinity-of-steady-states-or-the-guess-values-are-too-far-from-the-solution/15080
**Category:** Steady state
**Created:** [26 January 2020 20:04 UTC](https://forum.dynare.org/t/dsge-model-impossible-to-find-the-steady-state-either-the-model-doesnt-have-a-steady-state-there-are-an-infinity-of-steady-states-or-the-guess-values-are-too-far-from-the-solution/15080 "2020-01-26T20:04:31Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![muhtar](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@muhtar](https://forum.dynare.org/u/muhtar)
#### Post date: [26 January 2020 20:04 UTC](https://forum.dynare.org/t/dsge-model-impossible-to-find-the-steady-state-either-the-model-doesnt-have-a-steady-state-there-are-an-infinity-of-steady-states-or-the-guess-values-are-too-far-from-the-solution/15080/1 "2020-01-26T20:04:31Z")

</div>

Hi, I was running a small DSGE model and i attached the code below. I checked the model, again and again, searched Dyanre for help. But still could not fix the issues.  
The error that shows up on dynare is  
“Impossible to find the steady-state. Either the model doesn’t have a steady state, there are an infinity of steady states, or the guess values are too  
far from the solution”.  
is there any way that I can fix this issue?.  
Thanks. [dynare\_simulation.mod](https://forum.dynare.org/uploads/short-url/l1sN7RFbgKubd0rTrBzz8XgFVY0.mod) (2.5 KB)

---

<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: [26 January 2020 20:11 UTC](https://forum.dynare.org/t/dsge-model-impossible-to-find-the-steady-state-either-the-model-doesnt-have-a-steady-state-there-are-an-infinity-of-steady-states-or-the-guess-values-are-too-far-from-the-solution/15080/2 "2020-01-26T20:11:29Z")

</div>

Check your code, in particular with respect to how the exogenous processes enter. For example,

```auto
ms=mrhos*ms(-1)+mepsils;

```

has steady state 0, but you provide a non-zero initial value.

---

<div class="post-metadata">

### Author: ![muhtar](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@muhtar](https://forum.dynare.org/u/muhtar)
#### Post date: [26 January 2020 22:58 UTC](https://forum.dynare.org/t/dsge-model-impossible-to-find-the-steady-state-either-the-model-doesnt-have-a-steady-state-there-are-an-infinity-of-steady-states-or-the-guess-values-are-too-far-from-the-solution/15080/3 "2020-01-26T22:58:57Z")

</div>

Hi, thanks for pointing out the error. But once i corrected this and other mistakes ( the current file is updated already), now it gives me an error like this:  
The steady state contains NaN or Inf?.  
So, what is the potential mistake now?.  
Thanks.

---

<div class="post-metadata">

### Author: ![solitude1210](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/d78d45/32.png) [@solitude1210](https://forum.dynare.org/u/solitude1210)
#### Post date: [28 January 2020 03:48 UTC](https://forum.dynare.org/t/dsge-model-impossible-to-find-the-steady-state-either-the-model-doesnt-have-a-steady-state-there-are-an-infinity-of-steady-states-or-the-guess-values-are-too-far-from-the-solution/15080/4 "2020-01-28T03:48:06Z")

</div>

I meet the same problem. I want to ask : have you solve the problem?

---

<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: [28 January 2020 12:53 UTC](https://forum.dynare.org/t/dsge-model-impossible-to-find-the-steady-state-either-the-model-doesnt-have-a-steady-state-there-are-an-infinity-of-steady-states-or-the-guess-values-are-too-far-from-the-solution/15080/5 "2020-01-28T12:53:55Z")

</div>

Please provide the updated file.

---

<div class="post-metadata">

### Author: ![muhtar](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@muhtar](https://forum.dynare.org/u/muhtar)
#### Post date: [28 January 2020 18:09 UTC](https://forum.dynare.org/t/dsge-model-impossible-to-find-the-steady-state-either-the-model-doesnt-have-a-steady-state-there-are-an-infinity-of-steady-states-or-the-guess-values-are-too-far-from-the-solution/15080/7 "2020-01-28T18:09:25Z")

</div>

Hi, i could not find the solution yet. Once i find, i will let you know.  
Thanks.

---

<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: [29 January 2020 14:50 UTC](https://forum.dynare.org/t/dsge-model-impossible-to-find-the-steady-state-either-the-model-doesnt-have-a-steady-state-there-are-an-infinity-of-steady-states-or-the-guess-values-are-too-far-from-the-solution/15080/8 "2020-01-29T14:50:56Z")

</div>

Put `resid` before `steady` to see that there are NaN residuals. Somewhere in your equations there must be division by 0 or something like that.

---

<div class="post-metadata">

### Author: ![muhtar](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@muhtar](https://forum.dynare.org/u/muhtar)
#### Post date: [29 January 2020 19:18 UTC](https://forum.dynare.org/t/dsge-model-impossible-to-find-the-steady-state-either-the-model-doesnt-have-a-steady-state-there-are-an-infinity-of-steady-states-or-the-guess-values-are-too-far-from-the-solution/15080/9 "2020-01-29T19:18:41Z")

</div>

Thanks for the reply.  
I tried and get the following similar error warning!!:

* * *

Error using print\_info (line 90)  
The steady state contains NaN or Inf

Error in stoch\_simul (line 100)  
print\_info(info, options\_.noprint, options\_);

Error in dynare\_simulation (line 288)  
info = stoch\_simul(var\_list\_);

Error in dynare (line 235)  
evalin(‘base’,fname) ;

* * *

it seems some values makes some expressions nearly zero.  
I Checked the equations again and could not find any mistake. it is also probably because of non-existence of unique solution for the system.
