GithubHelp home page GithubHelp logo

martindoff / dc-rnn Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 109.14 MB

Learn dynamical systems as a difference of convex functions (DC) using a Recurrent Neural Network (RNN) architecture with DC structure. Example on the coupled tank problem.

Python 100.00%
deep-learning difference-of-convex-function difference-of-convex-functions dynamical-systems neural-network recurrent-neural-networks dc-decomposition dc-program

dc-rnn's Introduction


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 - [email protected]

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

dc-rnn's People

Contributors

martindoff avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.