# The steady state file doesn't compute the steady state

**URL:** <https://forum.dynare.org/t/the-steady-state-file-doesnt-compute-the-steady-state/27378>\
**Category:** Steady state\
**Created:** [31 March 2025 06:44 UTC](https://forum.dynare.org/t/the-steady-state-file-doesnt-compute-the-steady-state/27378 "2025-03-31T06:44:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hussein](https://forum.dynare.org/user_avatar/forum.dynare.org/hussein/32/20781_2.png) [@Hussein](https://forum.dynare.org/u/Hussein)\
**Post date:** [31 March 2025 06:44 UTC](https://forum.dynare.org/t/the-steady-state-file-doesnt-compute-the-steady-state/27378/1 "2025-03-31T06:44:39Z")

</div>

Hi all,

I hope you’re doing well.

I’m new to DSGE and Dynare. I just started my PhD, and I’m learning step by step. I have been provided with a model, and I was asked to add oil production to it.

The files I received are:

[rbc\_steadystate.m](https://forum.dynare.org/uploads/short-url/78PZaQwJwueHzw4lNmUCIr4cAHy.m) (2.8 KB)  
[rbc.mod](https://forum.dynare.org/uploads/short-url/habiaFzIqUN4Zzk8evqSaWL2ZwD.mod) (1.6 KB)

My amendments:

[rbc1.mod](https://forum.dynare.org/uploads/short-url/r9NPMKod5E0ovwpS9IMtxXF8TmA.mod) (1.8 KB)  
[rbc1\_steadystate.m](https://forum.dynare.org/uploads/short-url/4nnVZEB2agwUkqn3QFfBZiYxow4.m) (2.8 KB)

I tried to solve all the errors, but couldn’t. I would appreciate it if you could help me find the errors and how to solve them.

Best regards,  
Hussein

---

<div class="post-metadata">

**Author:** ![Jingjing](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@Jingjing](https://forum.dynare.org/u/Jingjing)\
**Post date:** [31 March 2025 08:53 UTC](https://forum.dynare.org/t/the-steady-state-file-doesnt-compute-the-steady-state/27378/2 "2025-03-31T08:53:25Z")

</div>

Dynare 6.0 reports the following: this indicates that the values of equations 2, 4, 8, and 9 cannot make the residuals of the equations reach zero.

 ![image](https://forum.dynare.org/uploads/default/original/3X/0/c/0c3db998ff6308aad9c22fe3292bdcf2c432c1ad.png)

Based on your observation of the `steadystate.mod` file, the error likely stems from issues with the variable **k** (capital) in the steady-state computation.  
Since in mod file:`k = (1-DELTA)*k(-1) + y - c - G;`  
but in steadystate file:`k = kovern*n;`so the equations have residuals.  
You should check the value of `k`.

---

<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:** [31 March 2025 12:54 UTC](https://forum.dynare.org/t/the-steady-state-file-doesnt-compute-the-steady-state/27378/3 "2025-03-31T12:54:29Z")

</div>

Your approach to the steady state solving is wrong. In the original file, all model-local variables only depend on parameters. In your new file, you suddenly introduce a variable `q`.

---

<div class="post-metadata">

**Author:** ![Hussein](https://forum.dynare.org/user_avatar/forum.dynare.org/hussein/32/20781_2.png) [@Hussein](https://forum.dynare.org/u/Hussein)\
**Post date:** [31 March 2025 13:07 UTC](https://forum.dynare.org/t/the-steady-state-file-doesnt-compute-the-steady-state/27378/4 "2025-03-31T13:07:10Z")

</div>

Thank you @Jingjing for your reply, I will check that and get back to the post.

---

<div class="post-metadata">

**Author:** ![Hussein](https://forum.dynare.org/user_avatar/forum.dynare.org/hussein/32/20781_2.png) [@Hussein](https://forum.dynare.org/u/Hussein)\
**Post date:** [31 March 2025 13:10 UTC](https://forum.dynare.org/t/the-steady-state-file-doesnt-compute-the-steady-state/27378/5 "2025-03-31T13:10:59Z")

</div>

Thank you @jpfeifer, I still have some difficulties learning that, I will work on it and get back.
