function ConstraintsMatrix input Basic.ConstraintsRecord rcdC; input Real[:, :] P "Prediction Matrix"; input Real[:, :, :] S "step response matrix"; input Integer p = 1 "number of controlled variables"; input Integer m = 1 "number of manipulated variables"; input Integer Nl = 1 "lower prediction horizon"; input Integer Np = 1 "upper prediction horizon"; input Integer Nu = 1 "control horizon"; input Integer Nm = 1 "model horizon"; output Real[rcdC.Nc, m*Nu] Ac; end ConstraintsMatrix;