``Optimal Inflation Stabilization in a Medium-Scale Macroeconomic Model" by Stephanie Schmitt-Grohe and Martin Uribe , in Monetary Policy Under Inflation Targeting, edited by Klaus Schmidt-Hebbel and Rick Mishkin, Central Bank of Chile, Santiago, Chile, 2007, p. 125-186.

Paper (July 2006)
NBER WP 11854 (November 2005) version
Technical Appendix
Slides
Computing Ramsey Equilibria in Medium-Scale Macroeconomic Models, by Stephanie Schmitt-Grohe and Martin Uribe.

Matlab Code

Note: (1) Matlab's Symbolic Math Toolbox is required. (2) The code for solving DGE models to first and second order provided at the bottom of this page is required

Ramsey Steady State
ramsey_ss.m (run this program to compute the steady state)
deep_parameters.m
constraints.m
allsyms.m

Ramsey Dynamics:
Unconditional Second Moments: ramsey_moments.m
Impulse Response Functions: ramsey_ir.m

Optimal Operational Interest-Rate Rule: competitive_optimal.m

Auxiliary Programs

First-order approximation
gx_hx.m

Second-order approximation
gxx_hxx.m
gss_hss.m

Obtaining and evaluating the derivatives of f
anal_deriv.m
num_eval.m