Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
pymdptoolbox
Commits
b8577327
Commit
b8577327
authored
Feb 10, 2013
by
Steven Cordwell
Browse files
Merge branch 'master' into rowops
parents
985aaac9
b88931dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
mdp.py
View file @
b8577327
...
...
@@ -1166,7 +1166,7 @@ class PolicyIteration(MDP):
itr
=
0
done
=
False
while
not
done
:
itr
=
itr
+
1
itr
+
=
1
Vprev
=
policy_V
policy_V
=
policy_R
+
self
.
discount
*
policy_P
*
Vprev
...
...
@@ -1226,7 +1226,7 @@ class PolicyIteration(MDP):
self
.
time
=
time
()
while
not
done
:
self
.
iter
=
self
.
iter
+
1
self
.
iter
+
=
1
# these _evalPolicy* functions will update the classes value
# attribute
...
...
@@ -1352,7 +1352,7 @@ class PolicyIterationModified(PolicyIteration):
done
=
False
while
not
done
:
self
.
iter
=
self
.
iter
+
1
self
.
iter
+
=
1
self
.
policy
,
Vnext
=
self
.
_bellmanOperator
()
#[Ppolicy, PRpolicy] = mdp_computePpolicyPRpolicy(P, PR, policy);
...
...
@@ -1635,7 +1635,7 @@ class RelativeValueIteration(MDP):
while
not
done
:
self
.
iter
=
self
.
iter
+
1
;
self
.
iter
+
=
1
;
self
.
policy
,
Vnext
=
self
.
_bellmanOperator
()
Vnext
=
Vnext
-
self
.
gain
...
...
@@ -1874,7 +1874,7 @@ class ValueIteration(MDP):
self
.
time
=
time
()
done
=
False
while
not
done
:
self
.
iter
=
self
.
iter
+
1
self
.
iter
+
=
1
Vprev
=
self
.
V
.
copy
()
...
...
@@ -1964,7 +1964,7 @@ class ValueIterationGS(ValueIteration):
self
.
time
=
time
()
while
not
done
:
self
.
iter
=
self
.
iter
+
1
self
.
iter
+
=
1
Vprev
=
self
.
V
.
copy
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment