The operation diagram of grid-connected PV-BESS system of hybrid building community, including factories, offices and dormitories, used in this paper is shown in Fig. 1.Each building is equipped with photovoltaic arrays and batteries, and the batteries of each building are designed inside the building to avoid unnecessary power …