MATLAB Answers

RL Toolbox: Combine Discrete and Continuous Observations

10 views (last 30 days)
Nicholas Schultz
Nicholas Schultz on 17 Feb 2020
Edited: Magnify on 1 Aug 2020
Hi,
For my project, I am looking at combining discrete observations that one would create through "rlFiniteSetSpec" and continuous observations through "rlNumericSpec". Is there a way that I could make this work by combining them into one observation variable?

Answers (1)

Emmanouil Tzorakoleftherakis
Does the environments output continuous and discrete observations? If yes, couldn't you use 'rlNumericSpec' for both? The discrete observations will already take values in a finite set as dictated by the environment. If not, I would probably do something along the lines of
ObservationInfo(1) = rlNumericSpec(...);
ObservationInfo(1).Name = 'continuous observations';
ObservationInfo(2) = rlFiniteSetSpec(...);
ObservationInfo(2).Name = 'discrete observations';
  2 Comments
Magnify
Magnify on 1 Aug 2020
In my opinion, you didn't take it seriously to check out the official documentation, which cause so much blunders

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!