Text this: Optimisation of distribution system losses