Hi everyone, I am trying to to run the attached file in order to obtain the Ramsey optimal policy in the framework of a subsidy. However, Dynare returns this error:
ERROR: You cannot include exogenous variables in the planner objective. Please define an auxiliary endogenous variable like eps_aux=epsilon and use it instead of the varexo.
The specific message is a bug. The problem is your using an undefined object chi in the planner_objective. I guess it must be defined as a parameter.
Also note that in
Generally, welfare is a higher order property. A loglinear (first order) model is only appropriate under certain conditions like an undistorted steady state.