Model Predictive Control implemented in Python, using scipy.optimize.minimize, on the model of a pendulum. Code created to support a Linkedin post. Link to the post ...
I am trying to find the maximum and the minimum of a quadratic function over a domain described by some linear inequalities. I accidentally missed some constraints, and I got a worse result: running ...