Valley, a minimum path between mountains. Photo by

Using an MPC to control a system: The error function

In this series, we have been learning how to create an MPC. This is a control technology that is more powerfull than the well-known PID but is also more complex and difficult to implement.