Machine learning with NetSim can be offline and online machine as shown in the figure below

Programming options for online ML
- NetSim code is in C; write ML code also in C;
- Tight integration is possible since they can be compiled together
- Difficult. Low-level memory management required.
- Very fast; low execution time
- Inter-process communication between NetSim (C code) and Python via sockets
- Easy and user-friendly
- Slow; high execution time
- Interface with Gymnasium for advanced RL Algorithms
Useful Links
Example papers that have used AI/ML with NetSim