Optimal policy

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Optimal policy

Postby S_V » Tue Feb 21, 2017 5:27 pm

Dear All,

I am trying to solve a Ramsey optimal policy problem in Dynare. I am not too familiar with how to do this. When I run the code, I get the errors below. I don't know how to determine where the problem is in the model, aside from the error letting me know that there is a NaN or Inf value somewhere.

Please find the code I am working with attached. Any help will be much appreciated.

> In dyn_ramsey_static>dyn_ramsey_static_1 (line 152)
In dyn_ramsey_static>@(x)dyn_ramsey_static_1(x,M,options_,oo) (line 40)
In dyn_ramsey_static (line 67)
In evaluate_steady_state (line 55)
In resol (line 104)
In stoch_simul (line 88)
In ramsey_policy (line 25)
In transition_optimal (line 1058)
In dynare (line 180)
In transition_run (line 11)
Warning: Matrix is singular to working precision.
Error using print_info (line 80)
The steady state contains NaN or Inf

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 transition_optimal (line 1058)
ramsey_policy(var_list_);

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

Error in transition_run (line 11)
dynare transition_optimal noclearall
Attachments
transition_optimal.mod
(9.82 KiB) Downloaded 55 times
S_V
 
Posts: 26
Joined: Tue Nov 15, 2016 11:38 am

Re: Optimal policy

Postby jpfeifer » Thu Feb 23, 2017 5:25 pm

Please use the Dynare unstable version and follow its warnings and error messages.

You are using Ramsey in a stochastic context, but the syntax you use for the shocks-block is for perfect foresight models. At the same time, the shock defined in the shocks-block does not appear in the model. Moreover, when using
Code: Select all
instruments

you should try to provide a proper conditional steady state file.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Optimal policy

Postby S_V » Fri Feb 24, 2017 1:51 pm

Many thanks Prof. Pfeifer.
S_V
 
Posts: 26
Joined: Tue Nov 15, 2016 11:38 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 6 guests