# Optimal policy parameters in a non-linear model

**URL:** <https://forum.dynare.org/t/optimal-policy-parameters-in-a-non-linear-model/11772>\
**Category:** Optimal Policy\
**Created:** [2 May 2018 14:40 UTC](https://forum.dynare.org/t/optimal-policy-parameters-in-a-non-linear-model/11772 "2018-05-02T14:40:38Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Grant](https://forum.dynare.org/letter_avatar_proxy/v4/letter/g/a5b964/32.png) [@Grant](https://forum.dynare.org/u/Grant)\
**Post date:** [9 May 2018 11:08 UTC](https://forum.dynare.org/t/optimal-policy-parameters-in-a-non-linear-model/11772/9 "2018-05-09T11:08:26Z")

</div>

Hi Aida,

Thanks for your help. Do you mean that I should put that code right before the “stoch\_simul” command? If so, what’s the difference if I put the maximization code after the “stoch\_simul” command?

Besides, where are the values of maximized welfare and the optimal parameters stored?

---

_[View the full topic](https://forum.dynare.org/t/optimal-policy-parameters-in-a-non-linear-model/11772)._
