This invention discloses a method and apparatus for collaborative optimization of microgrids based on event triggering and
packet loss compensation. The method includes: constructing a collaborative
operation model of the
microgrid system using the alternating direction
multiplier method; constructing an augmented Lagrangian function based on the collaborative
operation model; iteratively solving the augmented Lagrangian function to obtain the scheduling scheme of each
microgrid; each iteration includes: each
microgrid solving its local
coupling variables and comparing them with the
coupling variables solved in the previous round; if the deviation exceeds a preset threshold,
noise is added to the
coupling variables before sending them to the scheduling center; otherwise,
multiplexing symbols are sent; the scheduling center receives the data sent by each microgrid; if data packets are lost, the coupling variables are linearly extrapolated and predicted based on historical
momentum; if the data is a
multiplexing symbol, the coupling variables from the previous round are reused; the consistency variables and dual variables are updated based on the coupling variables of each microgrid using the Nesterov accelerated
gradient method, and fed back to the microgrids that have not lost packets.