Model predictive control algorithms and their application to a continuous fermenter