
Interpret MPC notation and explain how prediction, optimization, state estimation, and feedback work together in a closed-loop controller.
Define an MPC optimization problem using a prediction model, control decisions, objectives, and constraints, and distinguish tracking, terminal, and economic goals.
Build a prediction model, define tracking and control-move penalties, add input constraints, and solve and visualize an open-loop optimal control plan in Python.
Turn the open-loop optimization into closed-loop MPC by applying the first control action, updating the system state, and repeatedly optimizing. Simulate and visualize the controller’s performance in Python.
This course contains the use of artificial intelligence.
Learn Model Predictive Control (MPC) by building and running it in Python.
This practical introductory course guides you from simulating a dynamic system to implementing a working closed-loop MPC controller. You will learn how MPC predicts future behavior, selects control actions within operating limits, and updates its decisions using feedback.
The emphasis is on hands-on learning. Follow step-by-step Python exercises, inspect simulation results, and change controller settings to see what happens. Essential mathematical concepts are explained alongside the code, with a focus on intuition and implementation rather than lengthy derivations.
Throughout the course, you will learn to:
• Build and simulate dynamic system models in Python.
• Distinguish between open-loop simulation, optimal control, and closed-loop MPC.
• Define control targets, operating constraints, and tuning weights.
• Set a prediction horizon and optimize future control actions.
• Implement the repeated predict, optimize, and apply workflow.
• Test controller responses to disturbances and changing operating conditions.
• Adapt the provided code by modifying the model, objectives, and constraints.
Practical modeling exercises include mixing tanks, cooling systems, and a nonlinear chemical reactor. A data center cooling tank brings the complete workflow together, progressing from open-loop simulation to optimal control and closed-loop MPC.
The Python notebooks provide a reusable starting point for further experimentation. By changing parameters, targets, and operating limits, you can build confidence before adapting the approach to your own engineering problems.
This course is designed for engineering students, researchers, and practicing engineers seeking an accessible introduction to MPC. Basic Python familiarity is recommended. No previous MPC experience or advanced mathematics is required.