Control of Renewable Energy Communities using AI and Real-World Data