# Optimal simple rule

**URL:** <https://forum.dynare.org/t/optimal-simple-rule/230>\
**Category:** Dynare help (legacy posts)\
**Created:** [22 January 2007 14:50 UTC](https://forum.dynare.org/t/optimal-simple-rule/230 "2007-01-22T14:50:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lvogel](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/dfb087/32.png) [@lvogel](https://forum.dynare.org/u/lvogel)\
**Post date:** [22 January 2007 14:50 UTC](https://forum.dynare.org/t/optimal-simple-rule/230/1 "2007-01-22T14:50:03Z")

</div>

Dear Michel,

I have repeatedly used the optimal simple rule (osr) routine in linearized NNS models with a loss function over inflation and output.

Dealing with non-linear models now raises some questions, and I am not sure whether I have properly understood the manual on these issues.

I am looking for the optimal simple policy under a standard utility function, where

W (wealth) is the discounted sum of period utility, and

U = U© – d\*U(N)

is period utility as the sum of consumption utility U© and the weighted (d) disutility of labour U(N).

As I understood

optim\_weights;  
x a; pie b;  
end;

minimizes the LOSS function L = a_x^2 + b_pie^2.

Therefore

1. Maximizing WELFARE should be written as MINIMIZING the inverse of the welfare measure (or the deviation from flexprice or steady state welfare)?

2. Does osr focus on welfare as the discounted sum of period utility, or does it look at period utility and discounts it itself? Put differently, should I use W or U in the optim\_weights expression?

3. Supposed that I use U instead of W, the weights in optim\_weights may be expressed as either  
U 1; (i.e. using period utility)  
or  
U© 1; U(N) –d; (i.e. stating the two components of period utility separately)  
Is there any reason to prefer one version over the other?

Thanks a lot!

Lukas

---

<div class="post-metadata">

**Author:** ![MichelJuillard](https://forum.dynare.org/user_avatar/forum.dynare.org/micheljuillard/32/5318_2.png) [@MichelJuillard](https://forum.dynare.org/u/MichelJuillard)\
**Post date:** [24 January 2007 09:13 UTC](https://forum.dynare.org/t/optimal-simple-rule/230/2 "2007-01-24T09:13:39Z")

</div>

Dear Lukas

OSR will only work with quadratic objective. If you want another objective function, you need to write another version of osr\_obj.m

Best

Michel
