Skip to content

Use POMDPs to solve a simple routine economics problem. #351

Discussion options

You must be logged in to vote

Thanks for posting! It's good to get problems from different fields. It would be great to make this package easier to pick up for economists!

I think something like this works:

using POMDPs
using QuickPOMDPs: QuickMDP
using POMDPModelTools: Deterministic
using DiscreteValueIteration

const n = 500
const α = 0.65
const β = 0.95
const max_k = 2.0

const states = range(1e-6, max_k, length=n)
ceil_state(k) = states[searchsortedfirst(states, k)] # there is probably a better way, but this minimized thinking

valid_actions() = range(1e-7, max_k^α, length=100)    # all of the possible actions
valid_actions(k) = filter(<(k^α), valid_actions())   # all of the valid actions for k

m = QuickMDP(
    …

Replies: 20 comments 17 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zsunberg
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zsunberg
Comment options

Comment options

You must be logged in to vote
6 replies
@Shushman
Comment options

@azev77
Comment options

@Shushman
Comment options

@rejuvyesh
Comment options

@Shushman
Comment options

Comment options

You must be logged in to vote
4 replies
@rejuvyesh
Comment options

@rejuvyesh
Comment options

@azev77
Comment options

@zsunberg
Comment options

Comment options

You must be logged in to vote
2 replies
@zsunberg
Comment options

@zsunberg
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zsunberg
Comment options

Comment options

You must be logged in to vote
2 replies
@jgslazzaro
Comment options

@azev77
Comment options

Comment options

You must be logged in to vote
1 reply
@azev77
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #326 on July 02, 2021 19:30.