Skip to content

This project is a pipeline that connects a Matlab simulation (Simulink) to an OpenAI Gym wrapper for PyTorch Reinforcement Learning using the DQN algorithm.

License

Notifications You must be signed in to change notification settings

Spinkoo/Matlab2TorchRL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matlab_PyTorchRL

This project is a pipeline that connects a Matlab simulation (Simulink) to an OpenAI Gym wrapper for PyTorch Reinforcement Learning using the DQN algorithm.

General pipeline

Matlab implementation

Matlab simulations offer an excellent way to model real-world scenarios. This project aims to establish a connection between Matlab simulations and third-party libraries and open-source AI solutions. As such, we have chosen to develop an interface that bridges a Matlab simulation with Python AI libraries

The simulation that we used to test the interface is based on a Robot (Thymio) navigating through a maze, the robot has multiple sensors to measure the distance to nearby walls with the goal of learning how to efficiently navigate throught the maze and exit it safely.

Prerequisites

What things you need to install the software and how to install them:

  • Matlab
  • Simulink
  • OpenAI Gym
  • PyTorch

Installing

  1. Clone the repo
  2. Navigate to the project directory
  3. Run the main.py script

Running the tests

The trainig process of thymio

Reward graph while training the model

Built With

Authors

Initial work - Spinkoo

License

see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone whose code was used

About

This project is a pipeline that connects a Matlab simulation (Simulink) to an OpenAI Gym wrapper for PyTorch Reinforcement Learning using the DQN algorithm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published