*4.1. Management Agents*

The first category comprises agents that ensure the proper operation of the MG. The MG optimizer (MGO) is the agent responsible for running the optimization and ensuring the seamless operation of the MG in real time. The T-Cell algorithm is implemented in this agent. This agent gets the forecast data of the wind, PV, and load power and computes the references of each generation unit and controllable load at each time step 15 min. However, during this period, an unpredictable load variation can occur, which can jeopardize the MG operation. So, instead of running the optimization every few seconds which is resource consuming, this work presents a solution to implement a specific agent that checks continually if the load power has gone beyond permissible limits during the time step.

The MG supervisor (MGS) is the load supervisor agent. When the MGS intercepts sudden high load variations, it contacts the MGO that launches a new optimization cycle and computes the new optimum operating points of the generators and controllable loads.
