Page 1 of 1

Optimal Policy using OSR

PostPosted: Sat Aug 29, 2015 10:43 pm
by camara_cmb
Hi

I have been trying to calculate the osr for mi DSGE model for the first time. The parameter I would like to evaluate which is it´s optimal value is called "T", and in the parameter section of my code I have given it a value "T=0.1;".

When I run my code I get the following statement

OPTIMAL SIMPLE RULE


OSR: Initial value of the objective function: 0

-----------------
-----------------
f at the beginning of new iteration, 0.0000000000
Norm of dx 0
----
Improvement on iteration 1 = 0.000000000
improvement < crit termination
zero gradient

OPTIMAL VALUE OF THE PARAMETERS:

T 0.1

Objective function : 0


When I change the value of T at the parameter section of my code, the Optimal Value is always the one I set as parameter. Any clue why this happens?
Thanks in advance

Re: Optimal Policy using OSR

PostPosted: Sun Aug 30, 2015 7:10 am
by jpfeifer
For some reason your objective function is flat in the parameter T. Maybe it's not identified or you did a mistake when coding it. Check where T enters the model.

Re: Optimal Policy using OSR

PostPosted: Wed Sep 02, 2015 3:33 am
by camara_cmb
Thanks for your reply!
Is there an example code for optimal policy other than the one in the user guide or manual?
I have tried the command for different parameters other than T, those that influence the procyclicality of government expenditure for example, and I always get the same result.
Thanks in advance for any comment

Re: Optimal Policy using OSR

PostPosted: Wed Sep 02, 2015 6:09 am
by jpfeifer
Please provide me with the file.
Some OSR examples are at https://github.com/DynareTeam/dynare/tree/master/tests/optimal_policy

Re: Optimal Policy using OSR

PostPosted: Sat Sep 05, 2015 5:45 pm
by camara_cmb
Thanks!
I could calculate the optimal value of the parameters in my model thanks to your examples!
I have one extra question, if you have the time, can I fix an upper or lower bound over the value the parameters?

Re: Optimal Policy using OSR

PostPosted: Sat Sep 05, 2015 6:05 pm
by jpfeifer