Optimisation of leakage and energy in the Abbiategrasso district