Optimal monetary policy

Optimal monetary policy techniques are described from pages 75 to 79 in the Dynare's manual.
If I understand well,
1/ Dynare is able to compute 3 kind of policy rules: optimal rule (osr), commitment (ramsey_policy), and discretionary (discretionary_policy).
2/ it's only though simulation features that these policy results are obtained.
Then, if I want to run these optimal policy features in an estimation procedure, how can I proceed ?
(in other words, estimating a model assuming optimal monetary policy that I do not know).
There is maybe some examples (forum, Johannes's git repository), but not convinced I can.
Thank you in advance for your help
If I understand well,
1/ Dynare is able to compute 3 kind of policy rules: optimal rule (osr), commitment (ramsey_policy), and discretionary (discretionary_policy).
2/ it's only though simulation features that these policy results are obtained.
Then, if I want to run these optimal policy features in an estimation procedure, how can I proceed ?
(in other words, estimating a model assuming optimal monetary policy that I do not know).
There is maybe some examples (forum, Johannes's git repository), but not convinced I can.
Thank you in advance for your help