Text this: Optimal control of hydrosystems