Skip to content

Commit 0114859

Browse files
authored
Merge pull request #158 from tetrapod54/patch-1
[short_path] Define num_nodes in compute_to_go
2 parents 50bd363 + d90c2d2 commit 0114859

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lectures/short_path.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def bellman(J, Q):
428428
429429
430430
def compute_cost_to_go(Q):
431+
num_nodes = Q.shape[0]
431432
J = np.zeros(num_nodes) # Initial guess
432433
max_iter = 500
433434
i = 0

0 commit comments

Comments
 (0)