create environment object from a simulink model already containing agent and environment -凯发k8网页登录
create environment object from a simulink model already containing agent and environment
since r2019a
syntax
description
the rlsimulinkenv
function creates an environment object from
a simulink® model that already includes your agent block. the environment object acts as an
interface so that when you call sim
or train
, these
functions in turn call the (compiled) simulink model to generate experiences for the agents.
to create an environment object from a simulink model that does not include an agent block, use createintegratedenv
instead. for more information on reinforcement learning environments, see create custom simulink environments.
creates the reinforcement learning environment object env
= rlsimulinkenv(mdl
,agentblocks
)env
for the
simulink model mdl
. agentblocks
contains the
paths to one or more reinforcement learning agent blocks in mdl
. if you
use this syntax, each agent block must reference an agent object already in the matlab® workspace.
creates the reinforcement learning environment object env
= rlsimulinkenv(mdl
,agentblocks
,observationinfo
,actioninfo
)env
for the model
mdl
. the two cell arrays observationinfo
and
actioninfo
must contain the observation and action specifications for
each agent block in mdl
, in the same order as they appear in
agentblocks
.
creates a reinforcement learning environment object env
= rlsimulinkenv(___,'usefastrestart',fastrestarttoggle
)env
and
additionally enables fast restart. use this syntax after any of the input arguments in the
previous syntaxes.
examples
input arguments
output arguments
version history
introduced in r2019a
see also
functions
objects
simulinkenvwithagent
|rlnumericspec
|rlfinitesetspec
|rlfunctionenv
|rlmultiagentfunctionenv
|rlturnbasedfunctionenv