Title: An optimisation procedure for a class of water supply systems