The invention provides a multi-
energy supply and demand balance method and
system, and the method comprises the steps: carrying out the data preprocessing of collected
electric energy data,
thermal energy data,
hydrogen energy data and environment parameters, so as to generate a standardized
data matrix; sequentially carrying out
grey correlation analysis and clustering division based on the standardized
data matrix, and quantifying an energy complementary relationship and piecewise
linear coding to screen out key contradictory features; constructing an
electricity-heat-
hydrogen dynamic equation based on the key contradictory features, and performing space-
time parameter configuration based on the
electricity-heat-
hydrogen dynamic equation to generate a digital twin multi-
energy coupling model; extracting model constraint parameters based on the digital twin multi-
energy coupling model; and inputting the model constraint parameters into a deep
reinforcement learning network, updating the reward function weight in combination with a real-time state, generating a dynamic scheduling strategy, and encoding the dynamic scheduling strategy into an equipment
executable scheduling instruction. The method has the advantages of being accurate in
optimal scheduling strategy, efficient in supply and demand balance, high in
system self-
adaptive capacity and capable of improving the energy
utilization rate.