Skip to content

Here, we post the codes that implement the Model Predictive Controller (MPC) for linear systems.

License

Notifications You must be signed in to change notification settings

AleksandarHaber/Model-Predictive-Control-Implementation-in-Python-1

Repository files navigation

Model-Predictive-Control-Implementation-in-Python-1

IMPORTANT NOTE: First, thoroughly read the license in the file called LICENSE.md!

In this repository, we post the Python codes that implement the MPC algorithm for linear systems. In the tutorial page given below, we explain how to develop the MPC algorithm from scratch:

https://aleksandarhaber.com/model-predictive-control-mpc-tutorial-1-unconstrained-formulation-derivation-and-implementation-in-python-from-scratch/

Explanation of posted code files:

  • "driverCodeMPC.py" is the driver code for the MPC algorithm
  • "ModelPredictiveControl.py" is the code file that implements the MPC algorithm in Python
  • "functionMPC.py" is the code file that implements the function for calculating the response of the system

The performance of the MPC algorithm for tracking a pulse trajectory is given below.

My Image

About

Here, we post the codes that implement the Model Predictive Controller (MPC) for linear systems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages