*4.6. Prediction Module*

To verify the EMS operation, the same values of PV generation and demand are utilized, however considering a 30 minute sample time decimation to add some issues for the management. These data are acquired to represent a typical scenario of a microgrid profile and to verify the EMS response during the PV and load variations. Therefore, the variables *P*ˆ *PV* and *P*ˆ *<sup>L</sup>* have the same behavior of *PPV* and *PL* except for the different sample time between them.

The EMS is considered to be able to obtain the data of the energy price (*r*ˆ*g*) from an Internet connection; thereby, the system may be subject to market price changes.

In the emulation environment, an additional Python algorithm was developed, such that it can collected forecast data of PV generation using an Internet-based communication.
