Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it allow defining an environment that has continuous action space? And how? #1078

Open
WuSiren opened this issue Jul 14, 2024 · 4 comments

Comments

@WuSiren
Copy link

WuSiren commented Jul 14, 2024

First of all, I would like to say thank you to all of the contributors of this useful package!

I am a learner of both RL and this package. I wonder if RL or this package can deal with problems that have a continuous action space or a mixed integer action space. Specifically, suppose we have a decision making problem that at each step we are to make a decision (an action) $a$ according to current state $s$ and an observation of the random noise $\omega$, i.e., the action space $\mathcal{A}$ is characterized by some constraints such as $\mathcal{A} = { a| f(a, s, \omega) \le 0 }$ (BTW, why can't github display {}?). Can RL deal with this kind of problems? And how can I write such a environment using RenforcementLearning.jl?

Looking forward to your reply at your convenience! Thanks!

@findmyway
Copy link
Member

Can RL deal with this kind of problems?

Yes, but how to model the action space mainly depends on your problem. For example, you can use negative log-normal distribution. Or you can split the action space into discrete bins then randomly sample from it.

@WuSiren
Copy link
Author

WuSiren commented Aug 4, 2024

Thank you for your reply, @findmyway !

Or you can split the action space into discrete bins then randomly sample from it.

But I wonder how should I split the action space? Since the action space is not explicitly given, but is implicitly determined by a set of constraints, how do I obtain and split this action space?

By the way, could you recommend some tutorials that are suitable for learning reinforcement learning and this package at the same time? Thank you very much!

@findmyway
Copy link
Member

Since the action space is not explicitly given, but is implicitly determined by a set of constraints, how do I obtain and split this action space?

It's hard to answer without further information here.

By the way, could you recommend some tutorials that are suitable for learning reinforcement learning and this package at the same time? Thank you very much!

I'd love to, but since I haven't done any RL related work recently, I'd leave it for others to answer it.

@WuSiren
Copy link
Author

WuSiren commented Aug 5, 2024

OK. Thank you @findmyway ! 🤝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants