Text this: Dynamic programming based operation of reservoirs :