The invention discloses a micro-grid secondary
frequency modulation controller parameter optimization method and a related device, and belongs to the technical field of micro-grid stability analysis and control, and the method comprises the steps: firstly obtaining a model and parameters of a micro-grid, and building a time-
delay differential algebraic equation which comprises primary and secondary
frequency modulation and considers the communication
delay influence; secondly,
processing a time
delay term by adopting Pade approximation to form a
discretization matrix, and carrying out simultaneous operation on the
discretization matrix and a time delay differential algebra to obtain a
discretization model; next, all characteristic values of the discretization model are calculated through a QR method, and the rightmost characteristic value of the discretization model is used for approximately replacing the rightmost characteristic value of the time-delay
differential algebraic equation; and then forming a discrete model
characteristic polynomial, and calculating a
time lag margin by using a Routh criterion. And finally, under the condition of considering the balance between the damping performance and the
time lag margin of the
system, establishing an objective function and a constraint condition of controller parameter optimization, and obtaining optimized controller parameters by adopting a
genetic algorithm. The method can ensure that the
system has good robust stability for time delay while meeting the corresponding damping performance.