https://123dok.org/document/z1drjm1d-reactor-predictive-control-matlab-fmincon-function-compared-algorithm.html