Model predictive control of semiautogenous mills (sag)