A hierarchical approach to optimized control of water distribution systems: Part I decomposition