By uploading your RL-ready model to Azure, Bonsai can scale your model to drastically reduce train times.
Edit me

To start training brains, the simulation model can either be hosted from your local machine or scaled on the Azure platform – this page focuses on the latter, referred to as “uploaded” or “scaled” training here; Bonsai refers to the simulation models in this case being “managed”.

About

For efficient brain training, Bonsai has built-in support for using up to hundreds of parallel simulation models. All you need to do is export your RL-ready simulation model to a zip file (via the RL Experiment) and upload it to the Bonsai UI.

Communication cycle during locally hosted training

After uploading your model, you can configure settings related to the hardware used for training (under the properties of the Simulator in the Bonsai UI).

Instructions

Starting in your AnyLogic environment:

  1. In the Projects panel, under the model you wish to export for, click on the RL Experiment to view its properties.

  2. At the top of the Properties panel, click the link for Export to Microsoft Bonsai (if prompted to save your model, select Yes)

  3. In the “Export Model” dialog box, ensure the option for Destination ZIP is as desired and then click Next. The model will then export to the specified file.

  4. Once complete, you will see the “Done” screen. Click Finish to close the dialog box.

Now in the Bonsai UI:

  1. From the Simulators section, add a new simulator, following the prompts.

  2. After uploading your model, it will need a few minutes to finish setting it up.

  3. Once ready, you can configure its hardware settings and copy the package name (to be used in your Inkling) from the Simulator’s properties.