Ramsey policy error in my code

Hi dear all
plz help;
when i run my cod for ramsey policy receive following error:

Index exceeds matrix dimensions.
Error in evaluate_planner_objective (line 44)
Gy = dr.ghx(nstatic+(1:nspred),:);
Error in ramsey_policy (line 57)
oo_.planner_objective_value = evaluate_planner_objective(M_,options_,oo_);
Error in m4 (line 570)
Error in dynare (line 223)
evalin(‘base’,fname) ;

with best
m6.mod (2.7 KB)

Do not use the noprint option. You will not get a proper error message.

1 Like

Dear jpfeifer
many thanks for your answer. i delete “noprint” command and run again. i receive following error:

Error using print_info (line 42)
Blanchard Kahn conditions are not satisfied: no stable equilibrium

Error in stoch_simul (line 98)
print_info(info, options_.noprint, options_);

Error in ramsey_policy (line 25)
info = stoch_simul(var_list);

Error in m6 (line 556)

Error in dynare (line 180)
evalin(‘base’,fname) ;

in simulation i don’t receive this error but in ramsey policy i receive. what happend? m6.mod (2.6 KB)

with best