Hi Houtan,
discretionary_policy should only be used with a linear model and not a linearIZED model (IMHO we could consider imposing in the parser this restriction). Therefor there is no reason to accept option loglinear with discretionary_policy
Best
Michel
Houtan Bastani writes:
Hello,
In working on https://git.dynare.org/Dynare/dynare/issues/1197 I came across a potential bug.
As you can see from lines 22-24 & 39 of https://git.dynare.org/Dynare/dynare/blob/master/matlab/discretionary_policy..., upon exiting discretionary_policy(), `options_ `contains the original values it had upon entering the function with the field `discretionary_policy` set equal to 1.
However, the call to stoch_simul potentially changes options_, as you can see on line 99 of https://git.dynare.org/Dynare/dynare/blob/master/matlab/stoch_simul.m. Here, the field `logged_steady_state` is set to 1 with the idea that this value should be preserved upon exit of the function. However, given the way discretionary_policy has been written above, it is not preserved.
So the question is: is this a bug? If not, that would imply that discretionary_policy is incompatible with the loglinear option of stoch_simul: should I then end processing if the two hold simultaneously? If not, then we should only overwrite the `order` option in discretionary_policy with its original value.
Best, Houtan _______________________________________________ Dev mailing list Dev@dynare.org https://www.dynare.org/cgi-bin/mailman/listinfo/dev