# Problem Optimal Policy

**URL:** <https://forum.dynare.org/t/problem-optimal-policy/20904>\
**Category:** Optimal Policy\
**Created:** [16 August 2022 13:13 UTC](https://forum.dynare.org/t/problem-optimal-policy/20904 "2022-08-16T13:13:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wgonzalez](https://forum.dynare.org/letter_avatar_proxy/v4/letter/w/a6a055/32.png) [@wgonzalez](https://forum.dynare.org/u/wgonzalez)\
**Post date:** [16 August 2022 13:13 UTC](https://forum.dynare.org/t/problem-optimal-policy/20904/1 "2022-08-16T13:13:13Z")

</div>

[shadow\_open.mod](https://forum.dynare.org/uploads/short-url/vRSzG7qFGHXKJTflKMZD28SdVHd.mod) (14.2 KB)

Dear all, a question, when performing stoch\_simul, this model taken from Costa Junior et al (2020), works perfectly and gives good results, steady state equal to zero in most of the variables. But when trying to perform optimal policy exercises, it does not find the steady state or tells me that there are missing values or equal to infinity. Could it be a bug in dynare or I’m doing something wrong.

Best regards

---

<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:** [16 August 2022 14:37 UTC](https://forum.dynare.org/t/problem-optimal-policy/20904/2 "2022-08-16T14:37:37Z")

</div>

The `steady`-call will not work before calling `ramsey_model`. Moreover, you did not leave out the Taylor rule when defining an instrument. Finally, you hardcode the steady state of the interest rate, despite that being the instrument.
