neo_growth_ramsey_k_order.mod: call evaluate_planner_objective

trust-region-mex
Johannes Pfeifer 2021-07-22 15:20:30 +02:00
parent 66dcef2754
commit a517c1f1de
1 changed files with 5 additions and 0 deletions

View File

@ -31,8 +31,13 @@ end;
stoch_simul(order=6, irf=0);
evaluate_planner_objective;
[condWelfare, U_dynpp, W_dynpp, U_dyn, W_dyn] = k_order_welfare(oo_.dr, M_, options_);
if condWelfare~=oo_.planner_objective_value(1)
error('Values do not match');
end
if ~exist('neo_growth_k_order_results.mat','file');
error('neo_growth_k_order must be run first');
end;