**Daniele Testi \*, Paolo Conti, Eva Schito, Luca Urbanucci and Francesco D'Ettorre**

DESTEC (Department of Energy Engineering), University of Pisa, 56122 Pisa, Italy; paolo.conti@unipi.it (P.C.); eva.schito@for.unipi.it (E.S.); luca.urbanucci@ing.unipi.it (L.U.); f.dettorre@studenti.unipi.it (F.D.) **\*** Correspondence: daniele.testi@unipi.it; Tel.: +39-050-2217109

Received: 30 December 2018; Accepted: 20 February 2019; Published: 23 February 2019

**Abstract:** Micro-district heating networks based on cogeneration plants and renewable energy technologies are considered efficient, viable and environmentally-friendly solutions to realizing smart multi-energy microgrids. Nonetheless, the energy production from renewable sources is intermittent and stochastic, and cogeneration units are characterized by fixed power-to-heat ratios, which are incompatible with fluctuating thermal and electric demands. These drawbacks can be partially overcome by smart operational controls that are capable of maximizing the energy system performance. Moreover, electrically driven heat pumps may add flexibility to the system, by shifting thermal loads into electric loads. In this paper, a novel configuration for smart multi-energy microgrids, which combines centralized and distributed energy units is proposed. A centralized cogeneration system, consisting of an internal combustion engine is connected to a micro-district heating network. Distributed electric heat pumps assist the thermal production at the building level, giving operational flexibility to the system and supporting the integration of renewable energy technologies, i.e., wind turbines, photovoltaic panels, and solar thermal collectors. The proposed configuration was tested in a hypothetical case study, namely, a University Campus located in Trieste, Italy. The system operation is based on a cost-optimal control strategy and the effect of the size of the cogeneration unit and heat pumps was investigated. A comparison with a conventional configuration, without distributed heat pumps, was also performed. The results show that the proposed configuration outperformed the conventional one, leading to a total-cost saving of around 8%, a carbon emission reduction of 11%, and a primary energy saving of 8%.

**Keywords:** energy microgrids; energy system integration; energy system optimization; smart building clusters; hybrid renewable systems; heat pumps; district heating; cogeneration
