A clusterized energy management with linearized losses in the presence of multiple types of distributed generation. (December 2019)