The electricity demand can be satisfied by CHPs and PV as DER, as well as by the purchase of electricity over the macrogrid. Storage technologies in the microgrid optimization include batteries and heat storage. The buildings in the microgrid optimization are connected with an electricity ...