rlSimulinkEnv
Create reinforcement learning environment using dynamic model implemented in金宝app
Syntax
Description
creates the reinforcement learning environment objectenv
= rlSimulinkEnv(mdl
,agentBlocks
)env
for the Simulink modelmdl
.agentBlocks
contains the paths to one or more reinforcement learning agent blocks inmdl
. If you use this syntax, each agent block must reference an agent object already in the MATLAB®workspace.
creates the reinforcement learning environment objectenv
= rlSimulinkEnv(mdl
,agentBlocks
,obsInfo
,actInfo
)env
for the modelmdl
. The two cell arraysobsInfo
andactInfo
must contain the observation and action specifications for each agent block inmdl
, in the same order as they appear inagentBlocks
.
creates a reinforcement learning environment objectenv
= 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
See Also
Functions
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)