Text this: A dynamic flotation model for real-time control and optimisation