rlSimulinkEnv
Create reinforcement learning environment using dynamic model implemented in Simulink
Since R2019a
Syntax
Description
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
,obsInfo
,actInfo
)env
for the model
mdl
. The two cell arrays obsInfo
and
actInfo
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
Blocks
Topics
- Train DDPG Agent to Control Double Integrator System
- Train DDPG Agent to Swing Up and Balance Pendulum
- Train DDPG Agent to Swing Up and Balance Cart-Pole System
- Train DDPG Agent to Swing Up and Balance Pendulum with Bus Signal
- Train DDPG Agent to Swing Up and Balance Pendulum with Image Observation
- Train DDPG Agent for Adaptive Cruise Control
- How Fast Restart Improves Iterative Simulations (Simulink)