Text this: Real-time management of river systems by using a hydrodynamic model with optimisation