Ramsey model: The steady state has NaNs or Inf

Hi, I am quite new to Dynare and has a project to work. I had problem of solving a Ramsey model but I came across the warning message : 错误使用 print_info (line 32)
The steady state has NaNs or Inf.

出错 steady (line 102)
print_info(info,options_.noprint, options_);

出错 Baseline_Ramsey0708.driver (line 355)

出错 dynare (line 293)
evalin(‘base’,[fname ‘.driver’]) ;
My code is attached below, thank you in advance for any help!
Baseline_Ramsey0708.mod (10.0 KB)

Maybe this video by Willi Mutschler might be useful to you.

1 Like

You should in any case provide feasible initial values. You used 0 for many variables that cannot be 0 like consumption.

1 Like

Thank you so much for the help! :blush:

Thank you so much professor! :grinning_face_with_smiling_eyes: