Skip to content
Snippets Groups Projects
Commit f8405777 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

:bug: evaluate_planner_objective.m: account for purely forward models

Only try to compute planner welfare related to states if there are any
parent 078c2b7b
Branches
Tags
No related merge requests found
...@@ -265,12 +265,14 @@ else ...@@ -265,12 +265,14 @@ else
oo_.var(isnan(oo_.var)) = options_.huge_number; oo_.var(isnan(oo_.var)) = options_.huge_number;
Ey = oo_.mean; Ey = oo_.mean;
Eyhat = Ey - ys(dr.order_var(nstatic+(1:nspred)));
Eyhatyhat = oo_.var(:);
Euu = M_.Sigma_e(:); Euu = M_.Sigma_e(:);
EU = U + 0.5*Uyygugu*Euu;
EU = U + Uy*gy*Eyhat + 0.5*(Uyygygy*Eyhatyhat + Uyygugu*Euu); if M_.maximum_endo_lag
Eyhat = Ey - ys(dr.order_var(nstatic+(1:nspred)));
Eyhatyhat = oo_.var(:);
EU=EU + Uy*gy*Eyhat + 0.5*Uyygygy*Eyhatyhat;
end
EW = EU/(1-beta); EW = EU/(1-beta);
planner_objective_value.unconditional = EW; planner_objective_value.unconditional = EW;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment