Skip to content

Commit ad50fe0

Browse files
committed
Revert "move code-block above numref"
This reverts commit 32462a3.
1 parent f5311a8 commit ad50fe0

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

lectures/cass_koopmans_1.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -950,8 +950,7 @@ def K_tilde(C, pp):
950950
A steady state $\left(K_s, C_s\right)$ is a pair $(K,C)$ that satisfies both equations {eq}`eq:tildeC` and {eq}`eq:tildeK`.
951951
952952
953-
It is thus the intersection of the two curves $\tilde{C}$ and $\tilde{K}$ that we'll eventually plot in Figure
954-
{numref}`stable_manifold` below.
953+
It is thus the intersection of the two curves $\tilde{C}$ and $\tilde{K}$ that we'll eventually plot in Figure {numref}`stable_manifold` below.
955954
956955
We can compute $K_s$ by solving the equation $K_s = \tilde{K}\left(\tilde{C}\left(K_s\right)\right)$
957956
@@ -988,14 +987,29 @@ c_vec2, k_vec2 = bisection(pp, 1e-3, 1e-3, T=200, k_ter=Ks)
988987
989988
The following code generates Figure {numref}`stable_manifold`, which is patterned on a graph that appears on page 411 of {cite}`intriligator2002mathematical`.
990989
990+
Figure {numref}`stable_manifold` is a classic "phase plane" with "state" variable $K$ on the ordinate axis and "co-state" variable $C$ on the coordinate axis.
991+
992+
Figure {numref}`stable_manifold` plots three curves:
993+
994+
* the blue line graphs $C = \tilde C (K)$ of fixed points described by equation {eq}`eq:tildeC`.
995+
* the red line graphs $K = \tilde K(C)$ of fixed points described by equation {eq}`eq:tildeK`
996+
* the green line graphs the stable traced out by paths that converge to the steady state starting from an arbitrary $K_0$ at time $0$.
997+
* for a given $K_0$, the shooting algorithm sets $C_0$ to the coordinate on the green line in order to initiate a path that converges to the optimal steady state
998+
* the arrows on the green line show the direction in which dynamics {eq}`eq:systemdynamics` push successive $(K_{t+1}, C_t)$ pairs.
999+
1000+
In addition to the three curves, Figure {numref}`stable_manifold` plots arrows that point where the dynamics {eq}`eq:systemdynamics` drive the system when, for a given $K_0$, $C_0$ is not on the stable manifold depicted in the green line.
1001+
1002+
* If $C_0$ is set below the green line for a given $K_0$, too much capital is accumulated
1003+
1004+
* If $C_0$ is set above the green line for a given $K_0$, too little capital is accumulated
1005+
9911006
```{code-cell} ipython3
9921007
---
9931008
mystnb:
9941009
figure:
9951010
caption: Stable Manifold and Phase Plane
9961011
name: stable_manifold
9971012
---
998-
9991013
fig, ax = plt.subplots(figsize=(7, 5))
10001014
10011015
K_range = np.arange(1e-1, 15, 0.1)
@@ -1044,21 +1058,8 @@ ax.set_ylabel('$C$')
10441058
plt.show()
10451059
```
10461060
1047-
Figure {numref}`stable_manifold` is a classic "phase plane" with "state" variable $K$ on the ordinate axis and "co-state" variable $C$ on the coordinate axis.
1048-
1049-
Figure {numref}`stable_manifold` plots three curves:
1050-
1051-
* the blue line graphs $C = \tilde C (K)$ of fixed points described by equation {eq}`eq:tildeC`.
1052-
* the red line graphs $K = \tilde K(C)$ of fixed points described by equation {eq}`eq:tildeK`
1053-
* the green line graphs the stable traced out by paths that converge to the steady state starting from an arbitrary $K_0$ at time $0$.
1054-
* for a given $K_0$, the shooting algorithm sets $C_0$ to the coordinate on the green line in order to initiate a path that converges to the optimal steady state
1055-
* the arrows on the green line show the direction in which dynamics {eq}`eq:systemdynamics` push successive $(K_{t+1}, C_t)$ pairs.
1056-
1057-
In addition to the three curves, Figure {numref}`stable_manifold` plots arrows that point where the dynamics {eq}`eq:systemdynamics` drive the system when, for a given $K_0$, $C_0$ is not on the stable manifold depicted in the green line.
1061+
10581062
1059-
* If $C_0$ is set below the green line for a given $K_0$, too much capital is accumulated
1060-
1061-
* If $C_0$ is set above the green line for a given $K_0$, too little capital is accumulated
10621063
10631064
## Concluding Remarks
10641065

0 commit comments

Comments
 (0)