create custom multiagent reinforcement learning environment -凯发k8网页登录
create custom multiagent reinforcement learning environment
since r2023b
description
use rlmultiagentfunctionenv
to create a custom multiagent
reinforcement learning environment in which all agents execute in the same step. 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,
rlmultiagentfunctionenv
automatically calls validateenvironment
after creating the
environment.
creation
description
creates a multiagent environment in which all agents execute in the same step. the
arguments are the observation and action specifications and the custom step and reset
functions. the cell arrays env
= rlmultiagentfunctionenv(observationinfo
,actioninfo
,stepfcn
,resetfcn
)observationinfo
and
actioninfo
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
|rlsimulinkenv
|getobservationinfo
|getactioninfo