Thank you very much for raising this issue .
Just to let you know, I tried to include the
oo_.planner_objective_value = evaluate_planner_objective(M_,options_,oo_);
to the discretionary_policy.m file and then I run the model again. I got the following error
Undefined function or variable “yhat2”.
Error in evaluate_planner_objective (line 95)
yhat2 = yhat2(dr.order_var(nstatic+(1:nspred)),1)-dr.ys(dr.order_var(nstatic+(1:nspred)));
Error in discretionary_policy (line 39)
oo_.planner_objective_value = evaluate_planner_objective(M_,options_,oo_);
Thank you again.