Skip to content
Snippets Groups Projects
Verified Commit b998c615 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
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

(cherry picked from commit f8405777)
parent 30342464
Branches
Tags
No related merge requests found
Pipeline #11257 failed
......@@ -258,12 +258,14 @@ else
oo_.var(isnan(oo_.var)) = options_.huge_number;
Ey = oo_.mean;
Eyhat = Ey - ys(dr.order_var(nstatic+(1:nspred)));
Eyhatyhat = oo_.var(:);
Euu = M_.Sigma_e(:);
EU = U + Uy*gy*Eyhat + 0.5*(Uyygygy*Eyhatyhat + Uyygugu*Euu);
EU = U + 0.5*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);
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