rlTurnBasedFunctionEnv
Create custom turn-based multiagent reinforcement learning environment
Since R2023b
Description
Use rlTurnBasedFunctionEnv
to create a custom turn-based
multiagent reinforcement learning environment in which agents execute in turns. To create your
custom environment, you supply the observation and action specifications as well as your own
reset and step MATLAB® functions. To verify the operation of your environment,
rlTurnBasedFunctionEnv
automatically calls validateEnvironment
after creating the
environment.
Creation
Description
creates a turn-based multiagent environment using observation and action specifications
and custom step and reset functions. The cell arrays env
= rlTurnBasedFunctionEnv(observationInfo
,actionInfo
,stepFcn
,resetFcn
)observationInfo
and actionInfo
must contain the observation and action
specifications, respectively, for each agent. The stepFcn
and
resetFcn
arguments are the names of your step and reset MATLAB functions, respectively, and they are used to set the StepFcn
and ResetFcn
properties of env
.
Input Arguments
Properties
Object Functions
getActionInfo | Obtain action data specifications from reinforcement learning environment, agent, or experience buffer |
getObservationInfo | Obtain observation data specifications from reinforcement learning environment, agent, or experience buffer |
train | Train reinforcement learning agents within a specified environment |
sim | Simulate trained reinforcement learning agents within specified environment |
validateEnvironment | Validate custom reinforcement learning environment |
Examples
Version History
Introduced in R2023b
See Also
Functions
rlPredefinedEnv
|rlCreateEnvTemplate
|validateEnvironment
|getObservationInfo
|getActionInfo
|train
|sim
|rlSimulinkEnv
|createIntegratedEnv