## 2 Related Works and Overview
### Clients: Smart Home, Building Condominium and Industry 4.0  
EPC's main clients include houses, condomiums, public buildings, 4.0 hospitals and industries. In this scenario, there are some works that are seeking to perform DSM services to help manage the energy consumption of these clients and to make them individual and more intelligent. In the SH scenario, several technologies are being developed and studied to monitor and control consumption and power generation in the home, as well as applications to provide security and even sophisticated automation, where the consumer has total control of the house in a mobile application [69]. Besides the technologies present in a broader scenario of SG, there will be other technologies within the environments present in this infrastructure. In this case, the Smart Homes (SH) are at the forefront of novelties and studies being made for this purpose [69; 70; 71; 72]. In the SH technologies will operate with the generation of photovoltaic energy, which in microgrid scenarios, will be one of the most present items in SH together with wind energy [73; 74]. Voltage inversion of the energy generators and conversion of this energy to HW and will be distributed energy of the EPC is conducted via city poles and connect directly to the MW which is responsible for the distribution of this energy into the house and monitoring the generation of energy that will be returned to the PES [58]. Inside the house several communication technologies can act, normally are used the network IEEE 802.11 (WiFi) [75; 76] to connect via internet the appliances with the home cloud and the mobile application [77]. The HEM is also present, connecting to the appliances directly or via router (HEM to SH). Equipment like Smart Sensors and Smart Plugs will be responsible for collecting data from sensors, and control (on/off) actuators as household appliances [78]. Finally, the houses will also be composed of autonomous car chargers because with the advance of this technology, in the future each SH will be able to charge these cars, as well as use their energy in cases of power loss [79]. House condomiums can be composed of a small or large amount of SHs with basically the same physical and average structure of consumers per residence. This allows the energy distribution to be done in a more uniform and controlled way compared to a neighborhood of houses with different physical structures. Furthermore, all condomiums have a centralized distribution center, which allows one to have an MS to measure the energy consumption of the condomium as a whole, and of each independent MS [80]. Another important point to note is that a gateway or data aggregator may be responsible for collecting data from the entire condomium and passing directly to the EPC or another gateway. In a home condomium, several applications can be implemented to help the energy management of the houses as well as the condomium itself, such as automating the outside lights, swimming pool, common areas and parking lots. In addition, the distribution of energy generated in each home can allow the implementation of a Smart Microgrid, where homes are integrated within the condomium and can make an intelligent and interactive consumption between consumers [81]. Just like in home condominiums, building condominiums have a small or large set of apartments, but in a uniform manner and with a very similar consumption profile. The difference is that in building condominiums, there are other factors that do not appear so often in home condominiums, such as penthouses, elevators, pumps, communication interference between apartments of different floors or buildings, basements and other peculiarities. In this case, some studies point out the implementation of communication technologies that allow avoiding this interference and promoting communication within and between buildings and floors [82]. In addition, consumption can be collected in centralized locations, which allows a standardization of the way of collecting and sending information to each apartment.