Modelling and control of photo-bioreactors integrated in closed-loop biorefineries