Field tests applying multi-agent technology for distributed control: virtual power plants and wind energy