# Unable to find the steady state

**URL:** <https://forum.dynare.org/t/unable-to-find-the-steady-state/27179>\
**Category:** Steady state\
**Created:** [14 February 2025 15:44 UTC](https://forum.dynare.org/t/unable-to-find-the-steady-state/27179 "2025-02-14T15:44:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenxin](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/ee59a6/32.png) [@chenxin](https://forum.dynare.org/u/chenxin)\
**Post date:** [14 February 2025 15:44 UTC](https://forum.dynare.org/t/unable-to-find-the-steady-state/27179/1 "2025-02-14T15:44:14Z")

</div>

Dear Professor, I am getting the following error while writing dynare code

错误使用 print\_info (line 32)  
Impossible to find the steady state (the sum of square residuals of the static equations  
is 0.2682). 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

出错 steady (line 102)  
print\_info(info,options\_.noprint, options\_);

出错 Copy\_of\_work3\_3.driver (line 429)  
steady;

出错 dynare (line 281)  
evalin(‘base’,[fname ‘.driver’]);

Here’s my code.  
[Copy\_of\_work3\_3.mod](https://forum.dynare.org/uploads/short-url/aIVHBQDiXaRGk9yzayKs6xK2zuF.mod) (3.8 KB)  
Eagerly awaiting your help! Thank you very much!

---

<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:** [15 February 2025 13:46 UTC](https://forum.dynare.org/t/unable-to-find-the-steady-state/27179/2 "2025-02-15T13:46:04Z")

</div>

1. Only do `exp()`-substitutions once the model runs. Even better, use an alternative. See [Question about understanding irfs in dynare - #4 by jpfeifer](https://forum.dynare.org/t/question-about-understanding-irfs-in-dynare/10622/4)
2. It seems you are setting up stochastic simulations, but with inequality constraints. That won’t work.

---

<div class="post-metadata">

**Author:** ![chenxin](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/ee59a6/32.png) [@chenxin](https://forum.dynare.org/u/chenxin)\
**Post date:** [15 February 2025 14:23 UTC](https://forum.dynare.org/t/unable-to-find-the-steady-state/27179/3 "2025-02-15T14:23:46Z")

</div>

Thank you for your answer for this! Do you mean that the model part cannot have inequality constraints?

---

<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:** [15 February 2025 16:58 UTC](https://forum.dynare.org/t/unable-to-find-the-steady-state/27179/4 "2025-02-15T16:58:23Z")

</div>

No, for that you would need OccBin or perfect foresight simulations.
