New optimization method based on energy management in microgrids based on energy storage systems and combined heat and power. (9th September 2019)