5.2.1. Case Study 1

This case study presents the implemented RT load supervision mechanism. The MGO conducts the optimization every 15 min based on the forecasted PV, wind, and load data. However, due to some exceptional event, the load value can occasionally make a high variation from the forecast value, which affects the stability of the MG operation. For this reason, the MGS was conceived to supervise the high load variation in RT. The MGS is a cyclic agent that executes every 2 s. It computes the variation between the RT load and the forecast values. When the computed difference exceeds 30%, the MGS sends a signal to the MGO to start another optimization cycle based on the new sensed load value.

Figure 9 shows the communication mechanism implemented in Jade platform between the MGO, MGS, and other publisher agents.

**Figure 9.** Communication between MGO, MGS and other agents.

At line 241, the MGS detects a high variation of the load. Then, the MGS sends a request to DF agent to send him references of connected MGO. Once credentials are delivered, the MGS send to the MGO the signal to start a new optimization cycle in line 243. An optimization communication cycle starts from line 244 to line 262. The MGO at the beginning of each cycle sends the parameters of the current cycle to the MGS. Then, the MGO launches the optimization based on the T-Cell algorithm. At the end of the optimization, the computed references are sent to the publisher agents.
