Commit 1fcbe3fa authored by Steven Cordwell's avatar Steven Cordwell
Browse files

fix _bellmanOperator to loop over the correct action values

parent 74c48a4b
......@@ -158,7 +158,7 @@ class MDP(object):
def _bellmanOperator(self):
g = str(self.discount)
for a in range(self.A):
for a in range(1, self.A + 1):
P = "transition%s" % a
R = "reward%s" % a
cmd = "" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment