Skip to content

action space dependent on state function #354

Discussion options

You must be logged in to vote

Hello @danortega2014,

I suspect that you are using a solver that does not support state-dependent actions and thus internally calls POMDPs.action(m). Unfortunately, not all solvers support state dependent actions: e.g. DiscreteValueIteration.jl wouldn't work, while MCTS.jl and related solvers should work.

Beyond that, there is a small error in your implementation: the expression return (x->x!=nothing, m) returns a tuple of a function and the array of actions. If you want to filter the list of actions by the function you can use filter(!isnothing, m) instead.


@zsunberg given that this question has popped up a couple of times, it may be a good idea to add a column to the table in the READM…

Replies: 1 comment 6 replies

Comment options

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

@lassepe
Comment options

@danortega2014
Comment options

@lassepe
Comment options

@zsunberg
Comment options

Answer selected by danortega2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants