In this repository we provide the code for the paper "Certified Model Predictive Control For Switched Evolution Equations Using Model Order Reduction" by Michael Kartmann, Mattia Manucci, Benjamin Unger, and Stefan Volkwein.
A python environment is required with at least Python 3.10.12.
Install dependencies via pip
:
pip install -r requirements.txt
The repository contains the directory Code/
, which includes the source code. The code consists of the main files
main_mpc.py
: the main file comparing the performance of the MPC schemes,main_openloop_error_estimation.py
: the main file testing the error estimators of the open-loop problems,main_state_adjoint_error_estimation.py
: the main file for testing the error estimators of the state and adjoint equation,main_pretrained_mpc_error_estimation.py
: the main file for testing the recursive MPC error estimators.
Further, we provide the following files to handle the discretization and model reduction:
discretizre.py
: contains all routines to obtain the full-order model (FOM) by Finite Element Discretization,model.py
: contains the implementation of the full-order or reduced-order model (ROM),reductor.py
: contains all reduction routines,mpc.py
: contains the implementation of the mpc schemes.
Distributed under the MIT License. See LICENSE
for more information.
Michael Kartmann - [email protected]