Skip to content

Latest commit

 

History

History
130 lines (99 loc) · 4.23 KB

File metadata and controls

130 lines (99 loc) · 4.23 KB

Logo

Recurrent Neural Network (RNN) model with difference-of-convex-functions (DC) structure.

Table of Contents

  1. About The Project
  2. Getting Started
  3. Application
  4. Contact

About The Project

Learn dynamical systems from data using Recurrent Neural Network (RNN) models with a special difference-of-convex-functions (DC) structure. The so-called DC-RNN model approximates the system trajectories by a DC input-output map between the control input sequence and state trajectory. The DC-RNN model is leveraged in this example to predict the trajectory of the
coupled tank dynamical system.

Built With

  • Python 3
  • Keras

Getting Started

Prerequisites

You need to install the following:

Run the following command to install all modules at once

pip3 install numpy matplotlib tensorflow

Running the code

  1. Clone the repository

    git clone https://github.com/martindoff/DC-RNN.git
  2. Go to directory

    cd DC-RNN
  3. (Optional) Generate data from the dynamical system

    python3 generate_data.py

    The data are stored in two files: input.npy and output.npy

  4. Run the program

    python3 DC_RNN_model.py

Options

  1. To load an existing model, set the load variable in DC_RNN_model.py to True
   load = True

Set the variable to False if the model has to be (re)trained.

Application

Such model have applications, e.g. in the framework of robust tube MPC for systems representable as a difference of convex functions (see paper on DC-TMPC) The DC-RNN model allows one to learn the dynamics in DC form and then apply the DC-TMPC algorithm.

Contact

Martin Doff-Sotta - martin.doff-sotta@eng.ox.ac.uk

Linkedin: https://www.linkedin.com/in/mdoffsotta/