Research paper on a multicommodity flow model to optimize water distribution and water quality in a large-scale regional water supply system. This study considers different qualities of water from different sources as "distinct commodities". How to blend two-way flow pipes through the optimization model would efficiently allocate different water sources and qualities into perfect mixing and two-way flow conditions.