Thank you for your reply. However, when I am coding these parameters in steady state model (as you did) , the dynare is giving me Waring as
%%
MODEL_DIAGNOSTICS: The Jacobian of the static model contains Inf or NaN. The problem arises from:
Derivative of Equation 15 with respect to Variable ygap (initial value of ygap: 0)
Derivative of Equation 15 with respect to Variable wgap (initial value of wgap: 0)
Derivative of Equation 40 with respect to Variable wgap (initial value of wgap: 0)
Derivative of Equation 13 with respect to Variable wigap (initial value of wigap: 0)
Derivative of Equation 14 with respect to Variable wigap (initial value of wigap: 0)
Derivative of Equation 16 with respect to Variable wigap (initial value of wigap: 0)
Derivative of Equation 20 with respect to Variable wigap (initial value of wigap: 0)
Derivative of Equation 13 with respect to Variable wegap (initial value of wegap: 0)
Derivative of Equation 14 with respect to Variable wegap (initial value of wegap: 0)
Derivative of Equation 17 with respect to Variable wegap (initial value of wegap: 0)
Derivative of Equation 20 with respect to Variable wegap (initial value of wegap: 0)
Derivative of Equation 40 with respect to Variable wegap (initial value of wegap: 0)
Derivative of Equation 15 with respect to Variable sgap (initial value of sgap: 0)
Derivative of Equation 16 with respect to Variable cigap (initial value of cigap: 0)
Derivative of Equation 17 with respect to Variable cegap (initial value of cegap: 0)
Derivative of Equation 16 with respect to Variable nigap (initial value of nigap: 0)
Derivative of Equation 38 with respect to Variable nigap (initial value of nigap: 0)
Derivative of Equation 17 with respect to Variable negap (initial value of negap: 0)
Derivative of Equation 38 with respect to Variable negap (initial value of negap: 0)
MODEL_DIAGNOSTICS: The problem most often occurs, because a variable with
MODEL_DIAGNOSTICS: exponent smaller than 1 has been initialized to 0. Taking the derivative
MODEL_DIAGNOSTICS: and evaluating it at the steady state then results in a division by 0.
MODEL_DIAGNOSTICS: If you are using model-local variables (# operator), check their values as well.
%%
No such warning is coming if I have model parameters as parameters or as local variables.
At the same time the optimal value is still not same as when I am running them individually.
Can you please help me this.
Thank you very much for your help Sir. I am still in bit of trouble. I am running modified mod file with steady state model block separately and one time within loop by changing the value of f.
When run separately at value of f = 0.5, the optimal value is 0.68 and 0.89.
But when run within the loop, at f=0.5, the optimal value is 0.66 and 0.96.
Is this ok to have this kind of difference ?
Is this because of some kind of optimisation problem ? I am also getting
Warning:Non-Finite fitness range.
In Cmaes at 974
In dynare _minimize_objective at 360
In Osrl at 132
I am using opt_algo=9 in my code.
I will be very helpful for comment on this.
Thanks in Advance
Thanks a lot ! I was careless. I modified the model and it works now.However ,I am confused about a question.In command window , there is:
OPTIMAL VALUE OF THE PARAMETERS:
phiy 31.7588
phipi 38.978
phiq 8.11791
rho1 0
Objective function : 0.000193508
But in oo_.osr.optim_params ,there is :
Then, for my above model, which are the optimal parameters?
I am not sure whether I am correct. Still, I have no idea about how I can get the data in the table:for example,for every parameter weight ,the corresponding OSR parameters and variance ( used for computing loss ),etc.Where can I find them?
You are currently doing a loop where you compute the optimal rule parameters for each weight. You simply need to extract the results from oo_.osr.optim_params at each step.
Thanks. Now I use OSR to compute optimal simple rule for A given value of the objective function weight. Then I change the objective function weight manually and can get what I want.
Now I have another problem:After I run my above model file, I get a curve that slopes upwards to the right . It seems strange to me, cause I haven’t seen this kind of shape for Taylor curve. So, is there something wrong with my model?
The optimization parameters are, osr_params phiy phipi (say, standard rule) and osr_params phiy phipi phiq rho1, respectively.
I already uploaded my mod file, see PP.mod.
Thank you for your continuous guidance and help.
You need to run the two sets of optimization over the respective grids, save the results, and then combine the plots in Matlab. This is not a Dynare-specific issue.