Application of a Mathematical Model of Flows Network Optimization to the Management and Development of a Water Resources System