Construction of real-time energy optimization model based on machine learning in complex power grid environment | Synapse