Hybrid model predictive control for flotation plants