Skip to content

Commit

Permalink
Merge branch 'main' of github.com:RiskAverseRL/MDPs.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Petrik committed Sep 10, 2024
2 parents 0e06a93 + bb21ba1 commit 3eac75f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithms/linprogsolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using JuMP


"""
lp_solve(model, γ, lpm)
lp_solve(model, γ, lpm)
Implements the linear program primal problem for an MDP `model` with a discount factor `γ`.
It uses the JuMP model `lpm` as the linear program solver and returns the state values
Expand All @@ -30,4 +30,4 @@ function lp_solve(model::TabMDP, γ::Number, lpm)
end
optimize!(lpm)
(value = value.(v), policy = map(x->argmax(dual.(x)), π))
end
end

0 comments on commit 3eac75f

Please sign in to comment.