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 hashes)

Uploaded Source

Supported by

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