load simulink environments in reinforcement learning designer
when training an agent using the reinforcement learning designer app, you can create a predefined simulink® environment object from within the app or import a custom simulink environment object from the matlab® workspace.
to create a predefined environment, on the reinforcement learning tab, in the environment section, click new. then, under simulink environments, select one of the predefined environments.
to use a custom environment, you must first create the environment at the matlab command line and then import the environment into reinforcement learning designer. for more information on creating a simulink environment, see create custom simulink environments.
for training and simulating simulink environments, you must define all variables necessary for running the simulink model in the matlab workspace.
once you create a custom environment using one of the methods described in the preceding section, import the environment into reinforcement learning designer. on the reinforcement learning tab, click import. then, under select environment, select the environment.
once you have created or imported an environment, the app adds the environment to the environments pane.
once you have created an environment, you can create an agent to train in that environment. for more information on creating agent from within reinforcement learning designer, see .