MPC_MATRICES is a function used to compute the matrices needed to formulate an economic MPC problem or an open-loop scheduling problem for a distributed water network into a constrained quadratic problem which can then be solved using any QP-solver.
Hi Andres. An example can be found at https://gist.github.com/alphaville/7041956. There is also documentation at http://dysco.imtlucca.it/sopasakis/mpc_matrices and comments in the MATLAB files.