Skip to content

Commit c203658

Browse files
HG-ChengAveryhong
andauthored
FIX: Define missing discount factor to resolve NameError in MPE notebook (#867)
Co-authored-by: Averyhong <你的邮箱@example.com>
1 parent 1abb15f commit c203658

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎lectures/markov_perf.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,9 @@ In particular, let's take F2 as computed above, plug it into {eq}`eq_mpe_p1p` an
450450
We hope that the resulting policy will agree with F1 as computed above
451451

452452
```{code-cell} ipython3
453+
beta = 0.96
453454
Λ1 = A - B2 @ F2
454-
lq1 = qe.LQ(Q1, R1, Λ1, B1, beta=β)
455+
lq1 = qe.LQ(Q1, R1, Λ1, B1, beta=beta)
455456
P1_ih, F1_ih, d = lq1.stationary_values()
456457
F1_ih
457458
```

0 commit comments

Comments
 (0)