# Optimal Ramsey policy problem

**URL:** <https://forum.dynare.org/t/optimal-ramsey-policy-problem/21396>\
**Category:** Optimal Policy\
**Created:** [11 November 2022 06:49 UTC](https://forum.dynare.org/t/optimal-ramsey-policy-problem/21396 "2022-11-11T06:49:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![curry](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/a5b964/32.png) [@curry](https://forum.dynare.org/u/curry)\
**Post date:** [11 November 2022 06:49 UTC](https://forum.dynare.org/t/optimal-ramsey-policy-problem/21396/1 "2022-11-11T06:49:47Z")

</div>

[FMSxiao2cd.mod](https://forum.dynare.org/uploads/short-url/5jFMwUdR4xlkWQ7EpXBJEoH967f.mod) (2.8 KB)  
[FMSxiao2cd\_ss.m](https://forum.dynare.org/uploads/short-url/4XInf7PR7MHOXNvJiIP2KTVxADp.m) (2.2 KB)  
[FMSxiao2cd\_steadystate.m](https://forum.dynare.org/uploads/short-url/m0A1PjxzFj1F5OgA8FejHkmLHi0.m) (1.5 KB)  
[param\_xiao2c.m](https://forum.dynare.org/uploads/short-url/AiVvizH5AWe5mpHaMj3o4Jzn7er.m) (977 Bytes)  
Dear professor,  
I am doing a optimal Ramsey monetary policy model. The model reports the error that “The steadystate file did not compute the steady state”. However, all the variable’s steady state has been calculated out. It has passed the “steady” check, and if I remove the Ramsey command and use the “stoch\_simul” command, It could run well. I don’t know the reason, could you help me to figure it out, 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:** [11 November 2022 08:51 UTC](https://forum.dynare.org/t/optimal-ramsey-policy-problem/21396/2 "2022-11-11T08:51:16Z")

</div>

Your steady state file needs to be conditional on the instrument. You hardcode `R=1/beta` despite the planner choosing R.

---

<div class="post-metadata">

**Author:** ![curry](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/a5b964/32.png) [@curry](https://forum.dynare.org/u/curry)\
**Post date:** [11 November 2022 08:59 UTC](https://forum.dynare.org/t/optimal-ramsey-policy-problem/21396/3 "2022-11-11T08:59:18Z")

</div>

So what should I do? Should I express the variable’s steady state as R? How to realize it? I am still confused, could you help me to modify it.

---

<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:** [11 November 2022 09:02 UTC](https://forum.dynare.org/t/optimal-ramsey-policy-problem/21396/4 "2022-11-11T09:02:24Z")

</div>

See [Ramsey: multipliers NaN - #8 by jpfeifer](https://forum.dynare.org/t/ramsey-multipliers-nan/20595/8)
