When training an agent using the Reinforcement Learning Designer app, you can create a predefined MATLAB® environment from within the app or import a custom environment.
To create a predefined environment, on the Reinforcement Learning tab, in the Environment section, click New. Then, under MATLAB 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 such an environment, see Create MATLAB Reinforcement Learning Environments.
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, see Create Agents Using Reinforcement Learning Designer.