Optimization of a residential district with special consideration on energy and water reliability. (15th May 2017)