Skip to content

Commit

Permalink
Merge branch 'Gersi_Gridworld' of github.com:RiskAverseRL/MDPs.jl int…
Browse files Browse the repository at this point in the history
…o Gersi_Gridworld
  • Loading branch information
GersiD committed Jul 10, 2024
2 parents e5e8b0b + bc85469 commit 5938fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/policyiteration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function policy_iteration(model::TabMDP, γ::Real; iterations::Int = 1000)
for it 1:iterations
policyold .= policy
greedy!(policy, model, InfiniteH(γ), v_π)
mrp!(IP_π, r_π, model, policy);
mrp!(IP_π, r_π, model, policy)
# Solve: v_π .= (I - γ * P_π) \ r_π
lmul!(-γ, IP_π)
_add_identity!(IP_π)
Expand Down

0 comments on commit 5938fb1

Please sign in to comment.