Skip to content

Commit 33ce834

Browse files
committed
misc
1 parent 0e6cee2 commit 33ce834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/cake_eating_numerical.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def state_action_value(
235235
# Unpack
236236
β, γ, x_grid = model.β, model.γ, model.x_grid
237237
# Convert array into function
238-
vf = lambda x: np.interp(x, x_grid, v_array)
238+
vf = lambda x: np.interp(x, x_grid, v)
239239
# Return unmaximmized RHS of Bellman equation
240240
return u(c, γ) + β * vf(x - c)
241241
```

0 commit comments

Comments
 (0)