Skip to content

Commit f370ed3

Browse files
committed
use ifp as a test case'
1 parent 867e2fd commit f370ed3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_build/
2+
lectures/_build/

lectures/ifp.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ kernelspec:
2323
:depth: 2
2424
```
2525

26+
```{code-cell} ipython
27+
%load _static/lecture_specific/cake_eating_numerical/analytical.py
28+
```
29+
2630
In addition to what's in Anaconda, this lecture will need the following libraries:
2731

2832
```{code-cell} ipython
@@ -476,7 +480,8 @@ start to iterate.
476480
The following function iterates to convergence and returns the approximate
477481
optimal policy.
478482

479-
```{literalinclude} _static/lecture_specific/coleman_policy_iter/solve_time_iter.py
483+
```{code-cell} python3
484+
%load _static/lecture_specific/coleman_policy_iter/solve_time_iter.py
480485
```
481486

482487
Let's carry this out using the default parameters of the `IFP` class:
@@ -519,7 +524,8 @@ In this case, our income fluctuation problem is just a cake eating problem.
519524
We know that, in this case, the value function and optimal consumption policy
520525
are given by
521526

522-
```{literalinclude} _static/lecture_specific/cake_eating_numerical/analytical.py
527+
```{code-cell} python3
528+
%load _static/lecture_specific/cake_eating_numerical/analytical.py
523529
```
524530

525531
Let's see if we match up:

0 commit comments

Comments
 (0)