Text this: Optimization of energy management and conversion in the water systems based on evolutionary algorithms