# Welfare in Ramsey Policy

**URL:** <https://forum.dynare.org/t/welfare-in-ramsey-policy/936>\
**Category:** Dynare v4 (legacy)\
**Created:** [24 February 2009 15:39 UTC](https://forum.dynare.org/t/welfare-in-ramsey-policy/936 "2009-02-24T15:39:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcarton](https://forum.dynare.org/letter_avatar_proxy/v4/letter/b/b19c9b/32.png) [@bcarton](https://forum.dynare.org/u/bcarton)\
**Post date:** [24 February 2009 15:39 UTC](https://forum.dynare.org/t/welfare-in-ramsey-policy/936/1 "2009-02-24T15:39:34Z")

</div>

Dear all,  
‘Ramsey policy’ compute the first order approximation of the optimal policy rule. I would like to compute the second order approximation of welfare given by this rule.  
My first idea was to write the model with the rule given by ramsey policy but it also depends on (state) lagrange multiplier and I don’t know how to get the equations for the lagrange multipliers.  
Benjamin

---

<div class="post-metadata">

**Author:** ![stepan-a](https://forum.dynare.org/user_avatar/forum.dynare.org/stepan-a/32/6652_2.png) [@stepan-a](https://forum.dynare.org/u/stepan-a)\
**Post date:** [31 March 2009 09:56 UTC](https://forum.dynare.org/t/welfare-in-ramsey-policy/936/2 "2009-03-31T09:56:22Z")

</div>

Hi Benjamin,

It is not possible to use the **ramsey\_policy** command of dynare to compute the welfare because, as you say, this command performs only a first order approximation. If you want to compute a second order approximation, you have to write yourself the (non linear) equations of the Ramsey allocation in the **model** block (non linear foc + equations for the Lagrange multiplier). This can be done using the symbolic math toolbox of matlab or, if you don’t want to pay for this, the symbolic math library of python (sympy).

Best,  
Stéphane.

---

<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:** [24 July 2017 13:29 UTC](https://forum.dynare.org/t/welfare-in-ramsey-policy/936/3 "2017-07-24T13:29:03Z")

</div>



---

<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:** [24 July 2017 13:29 UTC](https://forum.dynare.org/t/welfare-in-ramsey-policy/936/4 "2017-07-24T13:29:53Z")

</div>


