Text this: Minimization of losses in power system distribution