A mix of rlNumericSpec and rlFiniteSetSpec objects - observation for a RL environment
1 view (last 30 days)
Show older comments
Krupa Prag
on 1 Jan 2021
Commented: Mohammed Mohammed
on 3 Dec 2023
I am looking for an example of which implements a mix of rlNumericSpec and rlFiniteSetSpec object in an RL environment (as mentioned here). Some of my observations are numerical/continuous whereas others are finite/discrete.
Thanks.
0 Comments
Accepted Answer
Emmanouil Tzorakoleftherakis
on 4 Jan 2021
Hi Krupa,
I don't think there is an example that shows how to do that in the documentation right now - I will let the doc team know.
I think something along the following lines should work:
obsInfoCont = rlNumericSpec([2 1])
obsInfoDisc = rlFiniteSetSpec([1 2 3])
obsInfo = [obsInfoCont obsInfoDisc]
5 Comments
Mohammed Mohammed
on 3 Dec 2023
what should i use if i have this 2 by 2 matrix
R0 = [cos(psi0)*cos(theta0) -sin(psi0)*cos(theta0)+cos(psi0)*sin(theta0)*sin(phi0);
sin(psi0)*cos(theta0) cos(psi0)*cos(theta0)+sin(psi0)*sin(theta0)*sin(phi0)];
More Answers (0)
See Also
Categories
Find more on Policies and Value Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!