https://www.mathworks.com/help/mpc/ref/nlmpc.validatefcns.html
validateFcns - Examine prediction model and custom functions of nlmpc or nlmpcMultistage objects...
validateFunctions tests the prediction model, custom cost, custom constraint, and Jacobian functions of a nonlinear MPC controller for potential problems such...
prediction modelcustom functions