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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

FIRST, READ THE LICENSE AT THE END OF THIS FILE

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

LICENSE: THIS IS NOT FREE SOFTWARE AND CODE. IF YOU WANT TO USE THIS CODE IN THE COMMERCIAL SETTING OR ACADEMIC SETTING, THAT IS, IF YOU WORK FOR A COMPANY OR IF YOU ARE AN INDEPENDENT CONSULTANT AND IF YOU WANT TO USE THIS CODE OR IF YOU ARE ACADEMIC RESEARCHER OR STUDENT, THEN WITHOUT MY PERMISSION AND WITHOUT PAYING THE PROPER FEE, YOU ARE NOT ALLOWED TO USE THIS CODE. YOU CAN CONTACT ME AT

aleksandar.haber@gmail.com

TO INFORM YOURSELF ABOUT THE LICENSE OPTIONS AND FEES FOR USING THIS CODE. ALSO, IT IS NOT ALLOWED TO (1) MODIFY THIS CODE IN ANY WAY WITHOUT MY PERMISSION. (2) INTEGRATE THIS CODE IN OTHER PROJECTS WITHOUT MY PERMISSION.

DELIBERATE OR INDELIBERATE VIOLATIONS OF THIS LICENSE WILL INDUCE LEGAL ACTIONS AND LAWSUITS.

About

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

License:Other


Languages

Language:Python 100.0%