A method for optimal control of a power grid is proposed. The method may include generating, by using a processor, a digital twin model which learns synthetic data and collected data respectively obtained in a power generation resource unit and a demand resource unit to predict grid balancing. The…