An algorithm for the allocation of distribution system demand and energy losses | IEEE Conference Publication | IEEE Xplore