Abstract
Nowadays, research and optimal control of power grid operations on the island help solve the problem of saving operating costs and energy. Impact and data collection from real Microgrid (MG) face difficulties, shortages and high investment costs. This article proposes a hardware solution to model a realistic power grid combining renewable energy sources and building a communication framework between MATLAB and PLC that transmits and receives data. Finally, some optimization algorithms for power and load management will be applied, considering electric vehicle (EV) charging stations for control and testing to provide suggestions for saving system operating costs.