From 2c3c1a76cc4e913627cb4e5c4f3d9a41fd7e4345 Mon Sep 17 00:00:00 2001 From: Averyhong <你的邮箱@example.com> Date: Tue, 5 May 2026 11:20:15 +0800 Subject: [PATCH] FIX: Define missing discount factor to resolve NameError in MPE notebook --- lectures/markov_perf.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lectures/markov_perf.md b/lectures/markov_perf.md index 49d870890..7b9279cc7 100644 --- a/lectures/markov_perf.md +++ b/lectures/markov_perf.md @@ -446,8 +446,9 @@ In particular, let's take F2 as computed above, plug it into {eq}`eq_mpe_p1p` an We hope that the resulting policy will agree with F1 as computed above ```{code-cell} ipython3 +beta = 0.96 Λ1 = A - B2 @ F2 -lq1 = qe.LQ(Q1, R1, Λ1, B1, beta=β) +lq1 = qe.LQ(Q1, R1, Λ1, B1, beta=beta) P1_ih, F1_ih, d = lq1.stationary_values() F1_ih ```