Skip to content

Algorithm library for the class "Reinforcement Learning and Learning-based Control" by the Institute for Data Science in Mechanical Engineering (DSME) at RWTH Aachen University.

License

Notifications You must be signed in to change notification settings

Data-Science-in-Mechanical-Engineering/RLLBC

Repository files navigation

DSME-logo

Reinforcement Learning and Learning-based Control

Prof. Dr. Sebastian Trimpe, Dr. Friedrich Solowjow
Institute for Data Science in Mechanical Engineering(DSME)
rllbc@dsme.rwth-aachen.de


The algorithms within this library were developed in the context of the class Reinforcement Learning and Learning-based Control (RLLBC) by the Institute for Data Science in Mechanical Engineering (DSME) at RWTH Aachen University. In this class we use this library in Lectures and Exercises. Students can also use the library to expand their knowledge through self-study. We provide example algorithms for tabular and deep reinforcement learning in the folders "tabular_examples" and "deep_examples". All algorithms are presented via Jupyter notebooks. You can find installation instructions below. For more details on how to work with the algorithms, we refer to the descriptions in the notebooks. Furthermore, we provide examples from the lecture and exercise in the folder "class_examples".

Installation guide

To install the library, please follow the instructions below.

  1. Download the files

  2. Install the latest version of Miniconda https://docs.conda.io/en/latest/miniconda.html

    • make sure that you install the version for the operating system that you are using
    • alternatively you could install (or use) Anaconda, which is more extensive than Miniconda. However, for the purpose of this course Miniconda is enough.
  3. Create the conda environment from the environment.yml file with

    conda env create -f environment.yml 
    
    • when using Windows, for the command to work you need to open the conda shell in the directory of the environment file.
  4. Activate the environment with

    conda activate rllbc-library
    
  5. Install the custom environments, that we use for out tabular examples. If conda has been used, navigate to ./tabular_examples and run

    pip install -e .
    

    in the same directory as the setup.py.

  6. Start up JupyterLab from your terminal with

    jupyter-lab
    

→ Now you should be able to browse your file system for the notebooks

Note: In order to be able to render videos of the agent's performance you have to make sure to have ffmpeg installed.

Warning: pybox2d is not available for Apple Silicon devices (Mac with M1, M2, or M3 processors). When working with Apple Silicon devices, this might cause issues. For installation, remove pybox2d from the list of required packages in the environment.yml file.

Using the library on a local computer:

Once the environment has been successfully installed, the library can be easily accessed via the following steps:

  1. Navigate to the project folder and open your terminal there. On Windows, use the Anaconda Prompt.
  2. Activate the environment with
    conda activate rllbc-library
    
  3. Start up JupyterLab from your terminal with
    jupyter-lab
    

You are ready to browse the library.

About

Algorithm library for the class "Reinforcement Learning and Learning-based Control" by the Institute for Data Science in Mechanical Engineering (DSME) at RWTH Aachen University.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published