Energy autonomy and energy security are becoming increasingly critical in modern urban energy systems. In this context, photovoltaic (PV)-battery systems offer a promising pathway to increase renewable energy utilization and reduce dependence on centralized electricity networks.