16.08.2013 Views

Dynamic Macroeconomic Modeling with Matlab

Dynamic Macroeconomic Modeling with Matlab

Dynamic Macroeconomic Modeling with Matlab

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2 An Outline of the Theory<br />

c<br />

0.68<br />

0.66<br />

0.64<br />

0.62<br />

0.6<br />

0.58<br />

0.56<br />

saddle path<br />

initial guess<br />

saddle point<br />

0.54<br />

0 1 2 3 4 5 6 7 8<br />

Figure 4: Relaxation in the Ramsey model<br />

These are (M − 1) · nd equations. The set of equations is augmented by ni initial boundary<br />

conditions and nf final boundary conditions, such that the set of equations expands to M · nd.<br />

Finally, algebraic equations are required to be fulfilled at every mesh point. Hence, appending<br />

M · na equations gives M · (nd + na) = M · n equations in total. We derived a square system<br />

of non-linear equations.<br />

Example 5 (Ramsey model) We construct a mesh of 3 points T = {0, 50, 100} and solve<br />

for c0,c50,c100,k0,k50,k100 numerically. For simplicity, we write the differential equations as<br />

k<br />

˙k = f(c,k)<br />

˙c = g(c,k)<br />

Then, the difference equations take the form<br />

<br />

k50 − k0 c50 − c0<br />

= f ,<br />

50<br />

2<br />

k50<br />

<br />

− k0<br />

2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!