Skip to content

Commit 478e3f3

Browse files
committed
FIX: fix missing h0 returned from compute_optimal
1 parent 194aef5 commit 478e3f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/cons_smooth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ a0 = -2 # such as "student debt"
311311
y_seq = np.concatenate([np.ones(46), np.zeros(20)])
312312
313313
cs_model = creat_cs_model()
314-
c_seq, a_seq = compute_optimal(cs_model, a0, y_seq)
314+
c_seq, a_seq, h0 = compute_optimal(cs_model, a0, y_seq)
315315
316316
print('check a_T+1=0:',
317317
np.abs(a_seq[-1] - 0) <= 1e-8)

0 commit comments

Comments
 (0)