The present invention discloses a
voltage-reactive optimization method and
system based on time-space-aware safety
reinforcement learning, constructs a PE-VVO framework taking into account photovoltaic PV and
electric vehicle charging station EV, and converts it into a constrained Markov
decision process; the PE-VVO framework includes an objective function, constraints, and decision variables, and the Markov
decision process includes a
state space, an action space, a reward function, constraints, a
state transition probability distribution, and a PDN environment; designs a TGCN-IPO
algorithm for solving CMDP, including the
algorithm taking into account the goal of the obstacle function and the Actor and Critic network taking into account TGCN; designs the training rules of the TGCN-IPO
algorithm, and uses real historical operating data and a PDN
simulation environment to
train the TGCN-IPO agent; uses a
test set to test the trained TGCN-IPO agent, and deploys it online to complete the online
voltage-
reactive control of the distribution network. This technical solution can solve the problems of increased operating costs and
voltage over-limit caused by high-penetration PV and EV to the distribution network.