Skip to main content

PyTorch module for DeePC

Project description

DeePC-HUNT

Data enabled predictive control hyperparameter tuning via differentiable optimization layers

DeePC-HUNT is a method for optimising over the hyperparameters of DeePC, using anlaytical policy gradients. This method has been developed as part of my bachelor thesis, carried out at the automatic control lab. Supervised by Alberto Padoan, Keith Moffat and Florian Dorfler.

Developed in a conda environment on Ubuntu 22.04 with python 3.10.

Differentiable DeePC layer is inspired by Differentiable MPC and built using CvxpyLayers.

Installation

install via pip

pip install deepc_hunt

Or clone the repo and install via

cd DeePC-HUNT && pip install -e .

All extra packages necessary for running the example notebookds are in examples/requirements.txt. If needed,

pip install -r examples/requirements.txt

DeePC-HUNT has the following dependancies.

Usage

Data-​enabled Predictive Control (DeePC) is a data-​driven non-​parametric algorithm for combined identification (learning) and control of dynamical systems. It leverages on the solution of the following optimization problem in a receding horizon fashion

Problem Formulation

DeePC can achieve performance that rivals MPC on non-linear and stochastic systems (see here), but is highly sensitive to the choice of regularization parameters $\theta_i$. DeePC-HUNT addresses this problem by automatically tuning these parameters. The performance of DeePC-HUNT has been validated on a noisy cartpole and LTI system. These examples can be viewed in the notebooks in the examples directory.

Cartpole - before training

https://github.com/michael-cummins/DeePC-HUNT/assets/72135336/1c73ca21-91c1-4669-a04d-1d9a103d9d48

Cartpole - after training (episode 70)

https://github.com/michael-cummins/DeePC-HUNT/assets/72135336/b6fa9948-a768-4646-b87f-018395fcc6c4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepc_hunt-0.0.6.tar.gz (9.2 kB view details)

Uploaded Source

File details

Details for the file deepc_hunt-0.0.6.tar.gz.

File metadata

  • Download URL: deepc_hunt-0.0.6.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for deepc_hunt-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3689cd3aee5253ce59655205c9d84683c50da1bf3b871043eff512e499659128
MD5 233749b3200d1ce5a2f778e43f1918d9
BLAKE2b-256 8c5308558d9d4602ef58c708118a2611b954d99eb32c2473666afc970a80f024

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page