How to write my custom fn in multi agent systems?

Answers (1)

Hey Maha Mosalam,
I understand that you want to know how to write a custom function in multi agent systems.
Currently multi-agent training is only supported in Simulink. If you have a custom function created in MATLAB, you can copy and paste the core parts like the reward and step function into a “MATLAB Fcn” block in Simulink.
You can refer to documentation for more information on “MATLAB Fcn” block: Implement MATLAB Functions in Simulink with MATLAB Function Blocks - MATLAB & Simulink - MathWorks India
Hope this helps!

Products

Release

R2022b

Asked:

on 22 Sep 2022

Answered:

on 31 Aug 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!