Text this: Optimization of a Water Purification System in Real Time