Loading [MathJax]/jax/output/CommonHTML/jax.js

TCLab F - Linear Model Predictive Control

The TCLab is a hands-on application of machine learning and advanced temperature control with two heaters and two temperature sensors. The labs reinforce principles of model development, estimation, and advanced control methods. This is the sixth exercise and it involves linear model predictive control with an empirical 2nd order model. The predictions were previously aligned to the measured values through an estimator. This model predictive controller uses those parameters and a linear model of the TCLab input to output response to control temperatures to a set point.

See information on Model Predictive Control (MPC) and MPC Examples in Excel, MATLAB, Simulink, and Python.

Lab Problem Statement

Data and Solutions


Python GEKKO 1st Order Model


Python GEKKO 2nd Order Model


Python GEKKO System ID with ARX Model

See SISO Model Identification for information on creating a single heater, single temperature control model.

See MIMO Model Identification for additional help on creating and step testing a MIMO (Multiple Input, Multiple Output) Auto-regressive exogenous (ARX) input model.

TCLab Step Test Data for ARX Fit (20 min with Δt = 2 sec)


See also:

Advanced Control Lab Overview

Virtual TCLab on Google Colab

GEKKO Documentation

TCLab Documentation

TCLab Files on GitHub

Basic (PID) Control Lab

Streaming Chatbot
💬