I solve my model for the optimal discretionary policy and I am trying to store the value of the planner objective function. I get the following error message:
Reference to non-existent field ‘planner_objective_value’.
I use the dynare version 4.4.3. I have run the model diagnostics and they give back nothing (probably there is no mistake in the model).
I installed the unstable version, then opened matlab and typed addpath /usr/local/opt/dynare/lib/dynare/matlab. I still get the same error message “Reference to non-existent field ‘planner_objective_value’.”
I don’t know if it is relevant, but when I type the addpath /usr/… I get the following warning message:
Warning: Function bsxfun has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name
conflict.
In path at 109
In addpath at 86
Warning: Function ilu has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name
conflict.
In path at 109
In addpath at 86
Warning: Function ordeig has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name
conflict.
In path at 109
In addpath at 86
Please let me say, that I figured out that this problem holds only under discretionary policy. I solved the Ramsey problem with the stable version and the command for the value of the objective function works.
The reason is that we do not save the objective function value for discretionary policy. We are going to change that in the future, see github.com/DynareTeam/dynare/issues/1041