Skip to content

Commit

Permalink
FIX: fix missing h0 returned from compute_optimal
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Feb 5, 2024
1 parent 194aef5 commit 478e3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lectures/cons_smooth.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ a0 = -2 # such as "student debt"
y_seq = np.concatenate([np.ones(46), np.zeros(20)])
cs_model = creat_cs_model()
c_seq, a_seq = compute_optimal(cs_model, a0, y_seq)
c_seq, a_seq, h0 = compute_optimal(cs_model, a0, y_seq)
print('check a_T+1=0:',
np.abs(a_seq[-1] - 0) <= 1e-8)
Expand Down

0 comments on commit 478e3f3

Please sign in to comment.