Substation operation optimization method and system based on improved deep reinforcement learning algorithm

By improving the deep reinforcement learning algorithm and constructing the Markov model and cyber-physical fusion system of the substation, it solves the problem that the substation operation optimization system fails to consider the life cost and cyber-physical fusion, and achieves cost optimization and information privacy throughout the life cycle. protection, reducing communication pressure and operating costs.

CN118763792APending Publication Date: 2024-10-11ECONOMIC & TECH RES INST OF HUBEI ELECTRIC POWER COMPANY SGCC +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410647542.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The existing substation operation optimization system fails to effectively consider the cost of the entire life cycle of the substation, and lacks a cyber-physical fusion system architecture and distributed solution method, resulting in high communication pressure and difficulty in protecting information privacy.

Method used

Using an improved deep reinforcement learning algorithm, by constructing a Markov model, the substation equipment is used as an intelligent agent, the observation space and action space are set, a fully distributed training method is used to compress the boundary information between agents, and the Estimate network and Critic network are used to simulate Combine boundary information, reduce communication needs, and protect information privacy.

Benefits of technology

It achieves full life cycle optimization of substation operating costs, reduces communication pressure, improves information privacy and robustness, improves substation operating efficiency, and reduces operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118763792A_ABST
    Figure CN118763792A_ABST
Patent Text Reader

Abstract

The invention discloses a substation operation optimization method and system based on an improved deep reinforcement learning algorithm, and the method comprises the steps: constructing a substation operation optimization model with the minimum cost as a target based on the operation state information of equipment in a substation, and then employing the improved deep reinforcement learning algorithm to model the substation operation optimization model as a Markov model, the method comprises the following steps: by taking equipment in a transformer substation as intelligent agents, setting an observation space function and an action space function of each intelligent agent, training each intelligent agent by adopting a completely distributed training method, and then determining a transformer substation operation optimization scheme based on each intelligent agent after training is completed. According to the method, the communication pressure is reduced, the information privacy of each agent can be better protected, and the method also has better robustness for communication faults.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of substation operation optimization, and specifically relates to a substation operation optimization method and system based on an improved deep reinforcement learning algorithm. Background Art

[0002] In recent years, my country's power industry has developed rapidly, and the power industry plays an irreplaceable role in my country's economic construction. At the same time, with the advancement of industrialization, the demand for electricity consumption by residential users has increased sharply, and the demand for power infrastructure such as substations has increased, resulting in higher and higher requirements for cost control in the entire power system. As the operating hub of the power system, the substation is responsible for realizing the task of power conversion and distribution. Optimizing the substation operation plan is an important measure to reduce the operating cost of the entire power system. Therefore, it is of great significance to adopt an efficient and sustainable substation optimization system.

[0003] Although a variety of substation operation optimization systems and methods have been proposed, there are still the following problems to be solved:

[0004] 1) Substation operation optimization usually aims to minimize operating costs, but the current calculation of substation operating costs does not take into account the cost of the substation during its entire life cycle, specifically including initial planning and construction costs, operating costs, equipment scrapping costs, etc. These indicators have a greater impact on the cost of the substation.

[0005] 2) With the application of information technologies such as artificial intelligence and big data in substation operation optimization systems, the coupling between information systems and physical systems in substations has become increasingly close, making it develop into a typical cyber-physical system. The optimization of substation operation costs has evolved into a substation cyber-physical system cost optimization analysis that needs to consider the interaction between physical systems and information systems. However, at present, there is still a lack of a complete and clear substation cyber-physical fusion system architecture for substation operation cost optimization systems, which cannot describe the operating status of equipment in substations.

[0006] 3) For solving the substation operation optimization model, most of the existing intelligent algorithms adopt a centralized solution method. On the one hand, it has high requirements for communication. As the scale of substations increases, the pressure on communication and the complexity of solving the optimization model increase rapidly. On the other hand, for intelligent algorithms that use distributed solutions, global state information needs to be used, which cannot better protect the information privacy of each intelligent agent. Summary of the invention

[0007] The purpose of the present invention is to provide a substation operation optimization method and system based on an improved deep reinforcement learning algorithm in response to the above-mentioned problems existing in the prior art.

[0008] To achieve the above objectives, the technical solution of the present invention is as follows:

[0009] In a first aspect, the present invention proposes a substation operation optimization method based on an improved deep reinforcement learning algorithm, comprising:

[0010] Based on the operating status information of the equipment in the substation, a substation operation optimization model with the goal of minimizing cost is constructed;

[0011] The improved deep reinforcement learning algorithm is used to solve the substation operation optimization model and obtain the substation operation optimization plan, which includes:

[0012] S1. Model the substation operation optimization model as a Markov model; take the equipment in the substation as the intelligent agent, and set the observation space function and action space function of each intelligent agent;

[0013] S2, using a fully distributed training method to train each agent;

[0014] S3. Determine the substation operation optimization plan based on each intelligent agent after training.

[0015] The S2 includes:

[0016] S21, compress the influence of each agent's observation and action on the adjacent agent into its boundary information, add an Estimate network in each agent, fit the boundary information of the corresponding agent based on each Estimate network, and pass the fitting information to the Critic network of the adjacent agent;

[0017] S22, with function Q i As the i-th agent, perform action a under the strategy π i The reward is the function fitted by the neural network To approximate the function Q i , by training the parameters θ i So that the residual L(θ i ) is the smallest, and we get the function Among them, the function Q i The expression is:

[0018]

[0019] In the above formula, are the rewards for the i-th agent to perform continuous actions and discrete actions under the strategy selected at the current time t, is the joint observation vector of the ith agent at the current time t, o i,t is the local observation information of the ith agent at the current time t, is the boundary observation information transmitted by the neighboring agent to the ith agent at the current time t, Ne(i) is the set of neighboring agents of the ith agent, a i,t is the action performed by the ith agent at the current time t;

[0020] Residual L(θ i ) is calculated by the following formula:

[0021]

[0022]

[0023] In the above formula, θ i is the Estimate network parameter of the ith agent, are the rewards for the i-th agent using neural network fitting to perform continuous actions and discrete actions under the strategy selected at the current time t, is the intermediate variable, r i,t is the reward of the ith agent at the current time t, γ is the loss factor, is the reward for the i-th agent using the neural network fitting to perform continuous actions under the strategy selected at time t+1, is θ i The delay parameter, α i is the temperature coefficient of the ith agent, is the strategy for the ith agent to perform continuous actions at time t+1, is the strategy of the ith agent to perform discrete actions at time t+1, φ i is the strategy parameter of the ith agent;

[0024] S23. Based on the obtained function Update parameter φ i:

[0025]

[0026] In the above formula, For strategy The sampling value of

[0027] S24, S24, the error between the information value output by the Estimate network and the observed information value is used as the loss function L′(θ i ), by training the parameters θ i make To update the Estimate network;

[0028] S25. Repeat S21-S24 in a loop until the training termination condition is reached.

[0029] In S22, by training the parameter θ i So that the residual L(θ i ) at least includes:

[0030] First calculate the residual L(θ i ) and L(θ i ) about the parameter θ i The gradient of the parameter θ is then updated using the gradient descent method i , iterate to parameter θ i Converges to make L(θ i ) minimum value;

[0031] In S24, the loss function L′(θ i ) is calculated by the following formula:

[0032]

[0033] In the above formula, They are the Estimate network output information and boundary observation information of the i-th agent respectively;

[0034] By training the parameters θ i make include:

[0035] First calculate the loss function L′(θ i ) and L′(θ i ) about the parameter θ i The gradient of the parameter θ is then updated using the gradient descent method i , iterate to parameter θ i Converges to make L′(θ i )minimum.

[0036] In S1, the observation space function is:

[0037] o i = {P i ,S i ,N i}

[0038] In the above formula, o i is the observation space function of the ith agent, P i is the running status information of the ith agent, S i is the running state of the ith agent, N i is the number of state changes of the i-th agent;

[0039] The action space function is:

[0040]

[0041] In the above formula, a i is the action space function of the ith agent, are the discrete action and continuous action space of the i-th agent respectively.

[0042] The substation operation optimization model aims to minimize the sum of the operating costs of each link during the substation operation, and its objective function is:

[0043] min(F 1 +F 2 +F 3 +F 4 )

[0044] F 1 =C s +C d +C o

[0045] F 2 =C con +C em +N×H N ×C h

[0046] F 3 =C fau +C yun =[β×T×V+k×C cos ×t s ]+[H y ×C th +C mat ]

[0047]

[0048] In the above formula, F 1 is the cost of substation preliminary planning and construction, F 2 is the substation operation cost, F 3 is the substation failure and operation and maintenance cost, F 4 is the equipment scrapping cost of the substation, C s , C d , C o are the design and planning cost of the substation, the purchase cost of the equipment in the substation, and the construction cost of the substation. con , C em are the energy consumption cost and the environmental protection cost in the substation, respectively. N is the number of operation and maintenance personnel in the substation. H N The working hours of the maintenance staff in the substation in one year, C h is the one-hour working cost of the operation and maintenance personnel in the substation, C fau , C yunare the failure cost and operation and maintenance cost of the substation respectively, β and T are the average interruption power value of users and the interruption time of the equipment in the substation in one year respectively, V and k are the power supply power when the equipment in the substation is interrupted and the number of interruptions of the equipment in the substation in one year respectively, C cos ,t s are the cost and time required for repairing equipment failure in the substation, C th , H y are the maintenance cost and maintenance time of the equipment in the substation, respectively. mat The cost of consumables for maintenance of equipment in the substation, C ix The cost of destroying, sorting and cleaning the equipment i in the substation, C ica is the residual value of scrapped equipment in the substation, and W is the number of equipment in the substation.

[0049] The constraints include power balance constraints, equipment capacity constraints, equipment load rate constraints, equipment operating time constraints, voltage and frequency constraints.

[0050] In a second aspect, the present invention proposes a substation operation optimization system based on an improved deep reinforcement learning algorithm, including a substation equipment layer, a substation information-physical fusion layer, and a substation optimization layer;

[0051] The substation equipment layer is composed of various equipment in the substation;

[0052] The substation information physical fusion layer is used to fuse the operation status information of the equipment in the substation to form system-level operation status information;

[0053] The substation optimization layer includes a model building module and a model solving module;

[0054] The model building module is used to build a substation operation optimization model with the goal of minimizing cost based on system-level operation status information;

[0055] The model solving module is used to solve the substation operation optimization model by using an improved deep reinforcement learning algorithm to obtain a substation operation optimization plan. The solving process includes:

[0056] S1. Model the substation operation optimization model as a Markov model; take the equipment in the substation as the intelligent agent, and set the observation space function and action space function of each intelligent agent;

[0057] S2, using a fully distributed training method to train each agent;

[0058] S3. Determine the substation operation optimization plan based on each intelligent agent after training.

[0059] The substation equipment layer and the substation information physical fusion layer both include a continuous dynamic layer and a discrete logic layer;

[0060] The continuous dynamic layer is used to establish a continuous dynamic operation characteristic model of physical equipment in the substation equipment layer and information equipment in the substation information physical fusion layer by using differential equations;

[0061] The discrete logic layer is used to establish discrete event characteristic models of physical equipment in the substation equipment layer and information equipment in the substation information physical fusion layer by using conditional functions and state transition functions;

[0062] The S2 includes:

[0063] S21, compress the influence of each agent's observation and action on the adjacent agent into its boundary information, add an Estimate network in each agent, fit the boundary information of the corresponding agent based on each Estimate network, and pass the fitting information to the Critic network of the adjacent agent;

[0064] S22, with function Q i As the i-th agent, perform action a under the strategy π i The reward is the function fitted by the neural network To approximate the function Q i , by training the parameters θ i So that the residual L(θ i ) is the smallest, and we get the function Among them, the function Q i The expression is:

[0065]

[0066] In the above formula, are the rewards for the i-th agent to perform continuous actions and discrete actions under the strategy selected at the current time t, is the joint observation vector of the ith agent at the current time t, o i,t is the local observation information of the ith agent at the current time t, is the boundary observation information transmitted by the neighboring agent to the ith agent at the current time t, Ne(i) is the set of neighboring agents of the ith agent, a i,t is the action performed by the ith agent at the current time t;

[0067] Residual L(θ i ) is calculated by the following formula:

[0068]

[0069]

[0070] In the above formula, θ i is the Estimate network parameter of the ith agent, are the rewards for the i-th agent using neural network fitting to perform continuous actions and discrete actions under the strategy selected at the current time t, is the intermediate variable, r i,t is the reward of the ith agent at the current time t, γ is the loss factor, is the reward for the i-th agent using the neural network fitting to perform continuous actions under the strategy selected at time t+1, is θ i The delay parameter, α i is the temperature coefficient of the ith agent, is the strategy for the ith agent to perform continuous actions at time t+1, is the strategy of the ith agent to perform discrete actions at time t+1, φ i is the strategy parameter of the ith agent;

[0071] S23. Based on the obtained function Update parameter φ i :

[0072]

[0073] In the above formula, For strategy The sampling value of

[0074] S24, the error between the information value output by the Estimate network and the observed information value is used as the loss function L′(θ i ), by training the parameters θ i make To update the Estimate network;

[0075] S25. Repeat S21-S24 in a loop until the training termination condition is reached.

[0076] In S22, by training the parameter θ i So that the residual L(θ i ) at least includes:

[0077] First calculate the residual L(θ i ) and L(θ i ) about the parameter θ i The gradient of the parameter θ is then updated using the gradient descent method i , iterate to parameter θ i Converges to make L(θi ) minimum value;

[0078] In S24, the loss function L′(θ i ) is calculated by the following formula:

[0079]

[0080] In the above formula, They are the Estimate network output information and boundary observation information of the i-th agent respectively;

[0081] By training the parameters θ i make include:

[0082] First calculate the loss function L′(θ i ) and L′(θ i ) about the parameter θ i The gradient of the parameter θ is then updated using the gradient descent method i , iterate to parameter θ i Converges to make L′(θ i )minimum.

[0083] In S1, the observation space function is:

[0084] o i = {P phy,i ,P inf,i ,S phy,i ,S inf,i ,N phy,i ,N inf,i}

[0085] In the above formula, o i is the observation space function of the ith agent, P phy,i , P inf,i They are the operating status information of physical devices and information devices, respectively. phy,i , S inf,i are the operating status of physical equipment and information equipment respectively, N phy,i 、N inf,i are the number of state changes of physical devices and information devices respectively;

[0086] The action space function is:

[0087]

[0088] In the above formula, a i is the action space function of the ith agent, are the discrete action and continuous action space of the i-th agent respectively.

[0089] The substation operation optimization model aims to minimize the sum of the operating costs of each link during the substation operation, and its objective function is:

[0090] min(F 1 +F 2 +F 3 +F 4 )

[0091] F 1 =C s +C d +C o

[0092] F 2 =C con +C em +N×H N ×C h

[0093] F 3 =C fau +C yun =[β×T×V+k×C cos ×t s ]+[H y ×C th +C mat ]

[0094]

[0095] In the above formula, F 1 is the cost of substation preliminary planning and construction, F 2 is the substation operation cost, F 3 is the substation failure and operation and maintenance cost, F 4 is the equipment scrapping cost of the substation, C s , C d , C o are the design and planning cost of the substation, the purchase cost of the equipment in the substation, and the construction cost of the substation. con , C em are the energy consumption cost and the environmental protection cost in the substation, respectively. N is the number of operation and maintenance personnel in the substation. H N The working hours of the maintenance staff in the substation in one year, C h is the one-hour working cost of the operation and maintenance personnel in the substation, C fau , C yunare the failure cost and operation and maintenance cost of the substation respectively, β and T are the average interruption power value of users and the interruption time of the equipment in the substation in one year respectively, V and k are the power supply power when the equipment in the substation is interrupted and the number of interruptions of the equipment in the substation in one year respectively, C cos ,t s are the cost and time required for repairing equipment failure in the substation, C th , H y are the maintenance cost and maintenance time of the equipment in the substation, respectively. mat The cost of consumables for maintenance of equipment in the substation, C ix The cost of destroying, sorting and cleaning the equipment i in the substation, C ica is the residual value of scrapped equipment in the substation, and W is the number of equipment in the substation.

[0096] The constraints include power balance constraints, equipment capacity constraints, equipment load rate constraints, equipment operating time constraints, voltage and frequency constraints.

[0097] Compared with the prior art, the present invention has the following beneficial effects:

[0098] 1. A substation operation optimization method based on an improved deep reinforcement learning algorithm proposed in the present invention adopts an improved deep reinforcement learning algorithm to solve the substation operation optimization model, including modeling the substation operation optimization model as a Markov model; taking the equipment in the substation as an intelligent agent, setting the observation space function and action space function of each intelligent agent; adopting a fully distributed training method to train each intelligent agent; and determining the substation operation optimization plan based on each intelligent agent after training. On the one hand, this method uses a fully distributed training method to train each agent. During the training and learning process, each agent only needs to rely on local information and a small amount of information from neighboring agents, instead of collecting global information like the multi-agent deep reinforcement learning algorithm based on the "centralized training" framework, which reduces the communication pressure. At the same time, during the execution process, the trained agents do not need to communicate with each other frequently, and only rely on local information to achieve optimal decision-making; on the other hand, during the training stage, this method compresses the influence of each agent's observation and action on the neighboring agents into a kind of boundary information, and fits the boundary information of the corresponding agent by adding an Estimate network (valuation network), and passes the fitting information to the Critic network of the neighboring agent. The neighboring agents exchange boundary information instead of exchanging all observations and actions, which can better protect the information privacy of each agent and has good robustness to communication failures.

[0099] 2. The substation operation optimization system based on the improved deep reinforcement learning algorithm proposed in the present invention applies the information-physical fusion technology to the substation operation optimization, and establishes a three-layer architecture including the substation equipment layer, the substation information-physical fusion layer and the substation optimization layer. Through the interaction between the three-layer architecture, the operation status of the substation equipment can be visualized and the operation status and state transition of the equipment during the entire operation process of the substation can be described, which is conducive to the phased optimization of the substation during the entire operation process, improves the efficiency of the substation operation optimization, and further reduces the operation cost of the substation. BRIEF DESCRIPTION OF THE DRAWINGS

[0100] Figure 1 This is an overall flow chart of the method described in Example 1.

[0101] Figure 2 This is a structural diagram of the three-layer architecture of the substation described in Example 1.

[0102] Figure 3 This is a schematic diagram of modeling the hybrid automaton in Example 1.

[0103] Figure 4 This is a structural diagram of the system described in Example 2. DETAILED DESCRIPTION

[0104] The present invention is further described in detail below in conjunction with specific implementations and drawings.

[0105] Embodiment 1:

[0106] like Figure 1 As shown, a substation operation optimization method based on an improved deep reinforcement learning algorithm is implemented in the following steps:

[0107] 1. Build Figure 2 The three-layer architecture of the substation shown includes the substation equipment layer, the substation information and physical fusion layer, and the substation optimization layer, where:

[0108] The substation equipment layer is composed of various equipment in the substation, including physical equipment such as transformers, circuit breakers, disconnectors, voltage transformers, current transformers, etc. On the one hand, it realizes the functions of electric energy conversion and distribution, and on the other hand, it transmits the operating status information of the equipment to the substation information physical fusion layer.

[0109] The substation information-physical fusion layer mainly describes the information-physical fusion process of the equipment, integrates the equipment operation status information uploaded by the substation equipment layer, forms multiple system-level operation status information, and then transmits it to the substation optimization layer to provide a reference for the optimization layer to make decisions. For example, if device a has 2 operation states and device b has 3 operation states, a total of 6 operation states can be formed through the combination of the substation information-physical fusion layer.

[0110] The substation optimization layer, as the core of the entire substation operation cost optimization system, mainly builds a substation operation optimization model based on the information uploaded by the substation information physical fusion layer and formulates a substation operation optimization plan.

[0111] 2. Considering the mixed characteristics of the substation operation process, the substation equipment layer and the substation information-physical fusion layer are divided into a continuous dynamic layer and a discrete logic layer respectively. Among them, the continuous dynamic layer of the substation equipment layer mainly describes the continuous dynamic behavior characteristics of the physical equipment in the substation equipment layer (for example, the voltage and current variables flowing through the transformer change continuously over time and have continuous dynamic behavior characteristics); the discrete logic layer of the substation equipment layer mainly describes the discrete event characteristics of the physical equipment in the substation equipment layer (for example, the switching process of the switch triggered by the voltage and current variables exceeding the set threshold has discrete event characteristics); the continuous dynamic layer of the substation information-physical fusion layer mainly describes the continuous dynamic behavior characteristics of the physical equipment in the substation equipment layer (for example, the voltage and current variables exceed the set threshold and trigger the switching process of the switch has discrete event characteristics); The layer mainly describes the continuous dynamic behavior characteristics of information devices in the information-physical fusion layer of the substation (the state variables of information devices such as controllers, routers, and switches change continuously over time, which belongs to the continuous dynamic behavior characteristics); the discrete logic layer of the information-physical fusion layer of the substation mainly describes the discrete event characteristics of information devices in the information-physical fusion layer (when an information device fails for some reason, it stops running, that is, the information device has multiple operating states such as normal, shutdown, and startup, and will transfer among these multiple states at the same time, which has discrete characteristics and belongs to discrete event characteristics. The process of the controller issuing instructions at a certain moment also has discrete characteristics).

[0112] 3. Based on the hybrid system theory, the hybrid system models of the substation equipment layer and the substation information-physical fusion layer are established respectively, including:

[0113] Use differential equations to establish continuous dynamic operation characteristic models of physical equipment and information equipment:

[0114]

[0115] In the above formula, x e is the running state variable of the physical device and information device, y is the device output variable, u is the device control input variable, s is the current running state of the device, t e is time, f e () is the continuous dynamic change characteristic function of the equipment;

[0116] Conditional functions and state transition functions are used to characterize the discrete event characteristics of physical devices and information devices. The discrete event characteristics can be expressed by the following equations:

[0117] δ d (s - ,e)=s+

[0118] In the above formula, δ d () is the function that changes the operating state of the device, s - 、s + is the operating state before and after the equipment operating state changes, e is a discrete logic event, and for the changing process of the equipment operating state, a hybrid automaton model is used to describe the transition process of the operating state of each device and the conditions for driving the state transition, such as Figure 3 shown.

[0119] 4. Construct a substation operation optimization model with the goal of minimizing the sum of the operating costs of each link during the operation of the substation. The objective function of the model is:

[0120] min(F 1 +F 2 +F 3 +F 4 )

[0121] F 1 =C s +C d +C o

[0122] F 2 =C con +C em +N×H N ×C h

[0123] F 3 =C fau +C yun =[β×T×V+k×C cos ×t s ]+[H y ×C th +C mat ]

[0124]

[0125] In the above formula, F 1 is the cost of substation preliminary planning and construction, F 2 is the substation operation cost, F 3 is the substation failure and operation and maintenance cost, F 4 is the equipment scrapping cost of the substation, C s , C d , C o are the design and planning cost of the substation, the purchase cost of the equipment in the substation, and the construction cost of the substation. con , C emare the energy consumption cost and the environmental protection cost in the substation, respectively. N is the number of operation and maintenance personnel in the substation. H N The working hours of the maintenance staff in the substation in one year, C h is the one-hour working cost of the operation and maintenance personnel in the substation, C fau , C yun are the failure cost and operation and maintenance cost of the substation respectively, β and T are the average interruption power value of users and the interruption time of the equipment in the substation in one year respectively, V and k are the power supply power when the equipment in the substation is interrupted and the number of interruptions of the equipment in the substation in one year respectively, C cos ,t s are the cost and time required for repairing equipment failure in the substation, C th , H y are the maintenance cost and maintenance time of the equipment in the substation, respectively. mat The cost of consumables for maintenance of equipment in the substation, C ix The cost of destroying, sorting and cleaning the equipment i in the substation, C ica is the residual value of scrapped equipment in the substation, and W is the number of equipment in the substation;

[0126] The constraints include:

[0127] Power balance constraints

[0128]

[0129] In the above formula, P grid is the power input from the grid to the substation, P l,i is the power consumed by load i, P loss is the power lost on the substation transmission line, n is the number of loads;

[0130] Equipment capacity constraints

[0131] C u,min ≤C u ≤C u,max

[0132] In the above formula, C u is the capacity of device u, C u,max , C u,min are the maximum and minimum capacity of device u respectively;

[0133] Equipment load rate constraints

[0134] L u,min ≤L u ≤L u,max

[0135] In the above formula, L u is the load rate of equipment u, L u,max , L u,min are the maximum and minimum load rates of equipment u respectively;

[0136] Equipment operating time constraints

[0137] T u,min ≤T u ≤T u,max

[0138] In the above formula, T u is the continuous operation time of device u, T u,max 、T u,min are the maximum and minimum continuous operation time of device u respectively;

[0139] Voltage and frequency constraints

[0140] V min ≤V≤V max

[0141] f min ≤f≤f max

[0142] In the above formula, V is the substation operating voltage, V max 、V min are the maximum and minimum values ​​of the substation operating voltage, f is the substation frequency, and f max 、f min are the maximum and minimum values ​​of the substation frequency respectively.

[0143] 5. The substation operation optimization model is modeled as a Markov model; the equipment in the substation is used as an intelligent agent, and the observation space function and action space function of each intelligent agent are set based on the hybrid system model established in step 3, where the observation space function is:

[0144] o i = {P phy,i ,P inf,i ,S phy,i ,S inf,i ,N phy,i ,N inf,i}

[0145] In the above formula, o i is the observation space function of the ith agent, P phy,i , P inf,i They are the operating status information of physical devices and information devices, respectively. phy,i , S inf,i are the operating status of physical equipment and information equipment respectively, N phy,i、N inf,i are the number of state changes of physical devices and information devices respectively;

[0146] The action space function is:

[0147]

[0148] In the above formula, a i is the action space function of the ith agent, They are the discrete action and continuous action space of the ith agent, respectively. Specifically, the continuous action space represents adjustable variables with continuous dynamic operation characteristics, such as voltage, current, etc., while the discrete action space represents adjustable variables with discrete event characteristics, such as the number of switch actions.

[0149] 6. Use a fully distributed training method to train each agent, including:

[0150] 6.1. Compress the influence of each agent's observation and action on the adjacent agent into its boundary information, add an Estimate network to each agent, fit the boundary information of the corresponding agent based on each Estimate network, and pass the fitting information to the Critic network of the adjacent agent;

[0151] 6.2. Using the function Q i As the i-th agent, perform action a under the strategy π i Reward (reward reflects the agent's execution of action a i The effect of function Q i The expression is:

[0152]

[0153]

[0154]

[0155]

[0156] In the above formula, is the reward for the i-th agent to perform an action under the strategy selected at the current time t, are the rewards for the i-th agent to perform continuous actions and discrete actions under the strategy selected at the current time t, is the joint observation vector of the ith agent at the current time t, o i,t is the local observation information of the ith agent at the current time t, is the boundary observation information transmitted by the neighboring agent to the ith agent at the current time t, Ne(i) is the set of neighboring agents of the ith agent, a i,t is the action performed by the ith agent at the current time t, r i,t is the reward of the ith agent at the current time t, γ is the loss factor, are the v function, α in the Bellman equation respectively. i is the temperature coefficient of the ith agent, is the strategy for the ith agent to perform continuous actions at time t, is the strategy for the ith agent to perform discrete actions at time t;

[0157] 6.3. In order to improve the adaptive learning ability of the algorithm, the neural network fitting function is used in training To approximate the function Q i , by training the parameters θ i So that the residual L(θ i ) is the smallest, and we get the function Among them, the residual L(θ i ) is calculated by the following formula:

[0158]

[0159]

[0160] In the above formula, θ i is the Estimate network parameter of the ith agent, are the rewards for the i-th agent using neural network fitting to perform continuous actions and discrete actions under the strategy selected at the current time t, is the intermediate variable, r i,t is the reward of the ith agent at the current time t, γ is the loss factor, is the reward for the i-th agent using the neural network fitting to perform continuous actions under the strategy selected at time t+1, is θ i The delay parameter, η is the soft update parameter, η∈[0,1], α i is the temperature coefficient of the ith agent, is the strategy for the ith agent to perform continuous actions at time t+1, is the strategy of the ith agent to perform discrete actions at time t+1, φ i is the strategy parameter of the ith agent;

[0161] By training the parameters θ i So that the residual L(θ i ) at least includes:

[0162] First calculate the residual L(θ i ) and L(θ i ) about the parameter θ i The gradient of the parameter θ is then updated using the gradient descent method i , iterate continuously, that is σ i is the learning rate of the ith agent until the parameter θ i Converges to make L(θ i ) minimum value, then we get the parameter θ i and function

[0163] 6.4. Based on the obtained function Update parameter φ i :

[0164]

[0165] In the above formula, For strategy The sampling value of

[0166] 6.5. The error between the information value output by the Estimate network and the observed information value is used as the loss function L′(θ i ), by training the parameters θ i make To update the Estimate network, improve the accuracy of the Estimate network of each agent in fitting local information, where the loss function L′(θ i ) is calculated by the following formula:

[0167]

[0168] In the above formula, They are the Estimate network output information and boundary observation information of the i-th agent respectively;

[0169] By training the parameters θ i make include:

[0170] First calculate the loss function L′(θ i ) and L′(θ i ) about the parameter θ i The gradient of the parameter θ is then updated using the gradient descent method i , iterate to parameter θ i Converges to make L′(θ i ) minimum;

[0171] 6.6. Repeat 6.1-6.5 in a loop until the preset number of training times is reached.

[0172] 7. Determine the substation operation optimization plan based on the trained intelligent agents.

[0173] Embodiment 2:

[0174] like Figure 4 As shown, a substation operation optimization system based on an improved deep reinforcement learning algorithm includes a substation equipment layer, a substation information-physical fusion layer, and a substation optimization layer.

[0175] The substation equipment layer is composed of various equipment in the substation; the substation information physical fusion layer is used to integrate the operating status information of the equipment in the substation to form system-level operating status information; the substation equipment layer and the substation information physical fusion layer both include a continuous dynamic layer and a discrete logic layer.

[0176] The continuous dynamic layer is used to establish the continuous dynamic operation characteristic model of the physical equipment in the substation equipment layer and the information equipment in the substation information physical fusion layer by using differential equations:

[0177]

[0178] In the above formula, x e is the running state variable of the physical device and information device, y is the device output variable, u is the device control input variable, s is the current running state of the device, t e is time, f e () is the continuous dynamic change characteristic function of the equipment;

[0179] The discrete logic layer is used to establish a discrete event characteristic model of physical equipment in the substation equipment layer and information equipment in the substation information physical fusion layer by using conditional functions and state transition functions. Its discrete event characteristics can be expressed by the following equation:

[0180] δ d (s - ,e)=s +

[0181] In the above formula, δ d () is the function that changes the operating state of the device, s - 、s + is the operating state before and after the equipment operating state changes, e is a discrete logic event, and for the changing process of the equipment operating state, a hybrid automaton model is used to describe the transition process of the operating state of each device and the conditions for driving the state transition, such as Figure 3 shown.

[0182] By considering the continuous and discrete characteristics of the equipment, the substation equipment layer and the substation information physical fusion layer are divided into a continuous dynamic layer and a discrete logic layer, and then modeled separately. This division can more carefully and accurately characterize the dynamic behavior characteristics of the equipment, so that a better operation optimization system can be designed.

[0183] The substation optimization layer constructs a substation operation optimization model based on the information uploaded by the substation information physical fusion layer, and formulates a substation operation optimization plan, including a model construction module and a model solution module;

[0184] The model building module is used to build a substation operation optimization model with the goal of minimizing the sum of the operating costs of each link during the operation of the substation based on the system-level operating status information. The objective function and constraint conditions of the optimization model are as shown in step 4 of embodiment 1;

[0185] The model solving module is used to solve the substation operation optimization model by using an improved deep reinforcement learning algorithm to obtain a substation operation optimization plan. The solving process includes:

[0186] (1) The substation operation optimization model is modeled as a Markov model. The equipment in the substation is used as an intelligent agent. The observation space function and action space function of each intelligent agent are set based on the continuous dynamic operation characteristic model established in the continuous dynamic layer and the discrete event characteristic model established in the discrete logic layer. The observation space function is:

[0187] o i = {P phy,i ,P inf,i ,S phy,i ,S inf,i ,N phy,i ,N inf,i}

[0188] In the above formula, o i is the observation space function of the ith agent, P phy,i , P inf,i They are the operating status information of physical devices and information devices, respectively. phy,i , S inf,i are the operating status of physical equipment and information equipment respectively, N phy,i 、N inf,i are the number of state changes of physical devices and information devices respectively;

[0189] The action space function is:

[0190]

[0191] In the above formula, a i is the action space function of the ith agent, are the discrete action and continuous action space of the i-th agent respectively;

[0192] (2) Use a fully distributed training method to train each agent, including:

[0193] (2.1) Compress the influence of each agent's observation and action on the adjacent agent into its boundary information, add an Estimate network to each agent, fit the boundary information of the corresponding agent based on each Estimate network, and pass the fitting information to the Critic network of the adjacent agent;

[0194] (2.2), with function Q i As the i-th agent, perform action a under the strategy π i Reward (reward reflects the agent's execution of action a i The effect of function Q i The expression is:

[0195]

[0196]

[0197]

[0198]

[0199] In the above formula, is the reward for the i-th agent to perform an action under the strategy selected at the current time t, are the rewards for the i-th agent to perform continuous actions and discrete actions under the strategy selected at the current time t, is the joint observation vector of the ith agent at the current time t, o i,t is the local observation information of the ith agent at the current time t, is the boundary observation information transmitted by the neighboring agent to the ith agent at the current time t, Ne(i) is the set of neighboring agents of the ith agent, a i,t is the action performed by the ith agent at the current time t, r i,t is the reward of the ith agent at the current time t, γ is the loss factor, are the v function, α in the Bellman equation respectively. i is the temperature coefficient of the ith agent, is the strategy for the ith agent to perform continuous actions at time t, is the strategy for the ith agent to perform discrete actions at time t;

[0200] (2.3) In order to improve the adaptive learning ability of the algorithm, the neural network fitting function is used in training To approximate the function Q i , by training the parameters θ i So that the residual L(θ i ) is the smallest, and we get the function Among them, the residual L(θ i ) is calculated by the following formula:

[0201]

[0202]

[0203] In the above formula, θ i is the Estimate network parameter of the ith agent, are the rewards for the i-th agent using neural network fitting to perform continuous actions and discrete actions under the strategy selected at the current time t, is the intermediate variable, r i,t is the reward of the ith agent at the current time t, γ is the loss factor, is the reward for the i-th agent using the neural network fitting to perform continuous actions under the strategy selected at time t+1, is θ i The delay parameter, η is the soft update parameter, η∈[0,1], α i is the temperature coefficient of the ith agent, is the strategy for the ith agent to perform continuous actions at time t+1, is the strategy of the ith agent to perform discrete actions at time t+1, φ i is the strategy parameter of the ith agent;

[0204] By training the parameters θ i So that the residual L(θ i ) at least includes:

[0205] First calculate the residual L(θ i ) and L(θ i ) about the parameter θ i The gradient of the parameter θ is then updated using the gradient descent method i , iterate continuously, that is σ i is the learning rate of the ith agent until the parameter θ i Converges to make L(θ i ) minimum value, then we get the parameter θ i and function

[0206] (2.4), based on the obtained function Update parameter φ i :

[0207]

[0208] In the above formula, For strategy The sampling value of

[0209] (2.5) The error between the information value output by the Estimate network and the observed information value is used as the loss function L′(θ i ), by training the parameters θ i make To update the Estimate network, improve the accuracy of the Estimate network of each agent in fitting local information, where the loss function L′(θ i ) is calculated by the following formula:

[0210]

[0211] In the above formula, They are the Estimate network output information and boundary observation information of the i-th agent respectively;

[0212] By training the parameters θ i make include:

[0213] First calculate the loss function L′(θ i ) and L′(θ i ) about the parameter θ i The gradient of the parameter θ is then updated using the gradient descent method i , iterate to parameter θ i Converges to make L′(θ i ) minimum;

[0214] (2.6) Repeat 2.1-2.5 until the preset number of training times is reached.

[0215] (3) Determine the substation operation optimization plan based on the trained intelligent agents.

Claims

1. A substation operation optimization method based on improved deep reinforcement learning algorithm, Features: The method comprises: Based on the operating status information of the equipment in the substation, a substation operation optimization model with the goal of minimizing cost is constructed; The improved deep reinforcement learning algorithm is used to solve the substation operation optimization model and obtain the substation operation optimization plan, which includes: S1. Model the substation operation optimization model as a Markov model; take the equipment in the substation as the intelligent agent, and set the observation space function and action space function of each intelligent agent; S2, using a fully distributed training method to train each agent; S3. Determine the substation operation optimization plan based on each intelligent agent after training.

2. According to the substation operation optimization method of the improved deep reinforcement learning algorithm of claim 1, Features: The S2 includes: S21, compress the influence of each agent's observation and action on the adjacent agent into its boundary information, add an Estimate network in each agent, fit the boundary information of the corresponding agent based on each Estimate network, and pass the fitting information to the Critic network of the adjacent agent; S22, with function Q i As the i-th agent, perform action a under the strategy π i The reward is the function fitted by the neural network To approximate the function Q i , by training the parameters θ i So that the residual L(θ i ) is the smallest, and we get the function Among them, the function Q i The expression is: In the above formula, are the rewards for the i-th agent to perform continuous actions and discrete actions under the strategy selected at the current time t, is the joint observation vector of the ith agent at the current time t, o i,t is the local observation information of the ith agent at the current time t, is the boundary observation information transmitted by the neighboring agent to the ith agent at the current time t, Ne(i) is the set of neighboring agents of the ith agent, a i,t is the action performed by the ith agent at the current time t; Residual L(θ i ) is calculated by the following formula: In the above formula, θ i is the Estimate network parameter of the ith agent, are the rewards for the i-th agent using neural network fitting to perform continuous actions and discrete actions under the strategy selected at the current time t, is the intermediate variable, r i,t is the reward of the ith agent at the current time t, γ is the loss factor, is the reward for the i-th agent using the neural network fitting to perform continuous actions under the strategy selected at time t+1, is θ i The delay parameter, α i is the temperature coefficient of the ith agent, is the strategy for the ith agent to perform continuous actions at time t+1, is the strategy of the ith agent to perform discrete actions at time t+1, φ i is the strategy parameter of the ith agent; S23. Based on the obtained function Update parameter φ i: In the above formula, For strategy The sampling value of S24, the error between the information value output by the Estimate network and the observed information value is used as the loss function L′(θ i ), by training the parameters θ i make To update the Estimate network; S25. Repeat S21-S24 in a loop until the training termination condition is reached.

3. According to claim 2, a substation operation optimization method based on an improved deep reinforcement learning algorithm, Features: In S22, by training the parameter θ i So that the residual L(θ i ) at least includes: First calculate the residual L(θ i ) and L(θ i ) about the parameter θ i The gradient of the parameter θ is then updated using the gradient descent method i , iterate to parameter θ i Converges to make L(θ i ) minimum value; In S24, the loss function L′(θ i ) is calculated by the following formula: In the above formula, They are the Estimate network output information and boundary observation information of the i-th agent respectively; By training the parameters θ i make include: First calculate the loss function L′(θ i ) and L′(θ i ) about the parameter θ i The gradient of the parameter θ is then updated using the gradient descent method i , iterate to parameter θ i Converges to make L′(θ i )minimum.

4. A substation operation optimization method based on an improved deep reinforcement learning algorithm according to any one of claims 1 to 3, Features: In S1, the observation space function is: o i ={P i ,S i ,N i } In the above formula, o i is the observation space function of the ith agent, P i is the running status information of the ith agent, S i is the running state of the ith agent, N i is the number of state changes of the i-th agent; The action space function is: In the above formula, a i is the action space function of the ith agent, are the discrete action and continuous action space of the i-th agent respectively.

5. A substation operation optimization method based on an improved deep reinforcement learning algorithm according to any one of claims 1 to 3, Features: The substation operation optimization model aims to minimize the sum of the operating costs of each link during the substation operation, and its objective function is: min(F 1 +F 2 +F 3 +F 4 ) F 1 =C s +C d +C o F 2 =C con +C em +N×H N ×C h F 3 =C fau +C yun =[β×T×V+k×C cos ×t s ]+[H y ×C th +C mat ] In the above formula, F 1 is the cost of substation preliminary planning and construction, F 2 is the substation operation cost, F 3 is the substation failure and operation and maintenance cost, F 4 is the equipment scrapping cost of the substation, C s , C d , C o are the design and planning cost of the substation, the purchase cost of the equipment in the substation, and the construction cost of the substation. con , C em are the energy consumption cost and the environmental protection cost in the substation, respectively. N is the number of operation and maintenance personnel in the substation. H N The working hours of the maintenance staff in the substation in one year, C h is the one-hour working cost of the operation and maintenance personnel in the substation, C fau , C yun are the failure cost and operation and maintenance cost of the substation respectively, β and T are the average interruption power value of users and the interruption time of the equipment in the substation in one year respectively, V and k are the power supply power when the equipment in the substation is interrupted and the number of interruptions of the equipment in the substation in one year respectively, C cos ,t s are the cost and time required for repairing equipment failure in the substation, C th , H y are the maintenance cost and maintenance time of the equipment in the substation, respectively. mat The cost of consumables for maintenance of equipment in the substation, C ix The cost of destroying, sorting and cleaning the equipment i in the substation, C ica is the residual value of scrapped equipment in the substation, and W is the number of equipment in the substation. The constraints include power balance constraints, equipment capacity constraints, equipment load rate constraints, equipment operating time constraints, voltage and frequency constraints.

6. A substation operation optimization system based on improved deep reinforcement learning algorithm, Features: The system includes a substation equipment layer, a substation information-physical fusion layer, and a substation optimization layer; The substation equipment layer is composed of various equipment in the substation; The substation information physical fusion layer is used to fuse the operation status information of the equipment in the substation to form system-level operation status information; The substation optimization layer includes a model building module and a model solving module; The model building module is used to build a substation operation optimization model with the goal of minimizing cost based on system-level operation status information; The model solving module is used to solve the substation operation optimization model by using an improved deep reinforcement learning algorithm to obtain a substation operation optimization plan. The solving process includes: S1. Model the substation operation optimization model as a Markov model; take the equipment in the substation as the intelligent agent, and set the observation space function and action space function of each intelligent agent; S2, using a fully distributed training method to train each agent; S3. Determine the substation operation optimization plan based on each intelligent agent after training.

7. A substation operation optimization system based on an improved deep reinforcement learning algorithm according to claim 6, Features: The substation equipment layer and the substation information physical fusion layer both include a continuous dynamic layer and a discrete logic layer; The continuous dynamic layer is used to establish a continuous dynamic operation characteristic model of physical equipment in the substation equipment layer and information equipment in the substation information physical fusion layer by using differential equations; The discrete logic layer is used to establish discrete event characteristic models of physical equipment in the substation equipment layer and information equipment in the substation information physical fusion layer by using conditional functions and state transition functions; The S2 includes: S21, compress the influence of each agent's observation and action on the adjacent agent into its boundary information, add an Estimate network in each agent, fit the boundary information of the corresponding agent based on each Estimate network, and pass the fitting information to the Critic network of the adjacent agent; S22, with function Q i As the i-th agent, perform action a under the strategy π i The reward is the function fitted by the neural network To approximate the function Q i , by training the parameters θ i So that the residual L(θ i ) is the smallest, and we get the function Among them, the function Q i The expression is: In the above formula, are the rewards for the i-th agent to perform continuous actions and discrete actions under the strategy selected at the current time t, is the joint observation vector of the ith agent at the current time t, o i,t is the local observation information of the ith agent at the current time t, is the boundary observation information transmitted by the neighboring agent to the ith agent at the current time t, Ne(i) is the set of neighboring agents of the ith agent, a i,t is the action performed by the ith agent at the current time t; Residual L(θ i ) is calculated by the following formula: In the above formula, θ i is the Estimate network parameter of the ith agent, are the rewards for the i-th agent using neural network fitting to perform continuous actions and discrete actions under the strategy selected at the current time t, is the intermediate variable, r i,t is the reward of the ith agent at the current time t, γ is the loss factor, is the reward for the i-th agent using the neural network fitting to perform continuous actions under the strategy selected at time t+1, is θ i The delay parameter, α i is the temperature coefficient of the ith agent, is the strategy for the ith agent to perform continuous actions at time t+1, is the strategy of the ith agent to perform discrete actions at time t+1, φ i is the strategy parameter of the ith agent; S23. Based on the obtained function Update parameter φ i: In the above formula, For strategy The sampling value of S24, the error between the information value output by the Estimate network and the observed information value is used as the loss function L′(θ i ), by training the parameters θ i make To update the Estimate network; S25. Repeat S21-S24 in a loop until the training termination condition is reached.

8. A substation operation optimization system based on an improved deep reinforcement learning algorithm according to claim 7, Features: In S22, by training the parameter θ i So that the residual L(θ i ) at least includes: First calculate the residual L(θ i ) and L(θ i ) about the parameter θ i The gradient of the parameter θ is then updated using the gradient descent method i , iterate to parameter θ i Converges to make L(θ i ) minimum value; In S24, the loss function L′(θ i ) is calculated by the following formula: In the above formula, They are the Estimate network output information and boundary observation information of the i-th agent respectively; By training the parameters θ i make include: First calculate the loss function L′(θ i ) and L′(θ i ) about the parameter θ i The gradient of the parameter θ is then updated using the gradient descent method i , iterate to parameter θ i Converges to make L′(θ i )minimum.

9. A substation operation optimization system based on an improved deep reinforcement learning algorithm according to any one of claims 6-8, Features: In S1, the observation space function is: o i ={P phy,i ,P inf,i ,S phy,i ,S inf,i ,N phy,i ,N inf,i } In the above formula, o i is the observation space function of the ith agent, P phy,i , P inf,i They are the operating status information of physical devices and information devices, respectively. phy,i , S inf,i are the operating status of physical equipment and information equipment respectively, N phy,i 、N inf,i are the number of state changes of physical devices and information devices respectively; The action space function is: In the above formula, a i is the action space function of the ith agent, are the discrete action and continuous action space of the i-th agent respectively.

10. A substation operation optimization system based on an improved deep reinforcement learning algorithm according to any one of claims 6-8, Features: The substation operation optimization model aims to minimize the sum of the operating costs of each link during the substation operation, and its objective function is: min(F 1 +F 2 +F 3 +F 4 ) F 1 =C s +C d +C o F 2 =C con +C em +N×H N ×C h F 3 =C fau +C yun =[β×T×V+k×C cos ×t s ]+[H y ×C th +C mat ] In the above formula, F 1 is the cost of substation preliminary planning and construction, F 2 is the substation operation cost, F 3 is the substation failure and operation and maintenance cost, F 4 is the equipment scrapping cost of the substation, C s , C d , C o are the design and planning cost of the substation, the purchase cost of the equipment in the substation, and the construction cost of the substation. con , C em are the energy consumption cost and the environmental protection cost in the substation, respectively. N is the number of operation and maintenance personnel in the substation. H N The working hours of the maintenance staff in the substation in one year, C h is the one-hour working cost of the operation and maintenance personnel in the substation, C fau , C yun are the failure cost and operation and maintenance cost of the substation respectively, β and T are the average interruption power value of users and the interruption time of the equipment in the substation in one year respectively, V and k are the power supply power when the equipment in the substation is interrupted and the number of interruptions of the equipment in the substation in one year respectively, C cos ,t s are the cost and time required for repairing equipment failure in the substation, C th , H y are the maintenance cost and maintenance time of the equipment in the substation, respectively. mat The cost of consumables for maintenance of equipment in the substation, C ix The cost of destroying, sorting and cleaning the equipment i in the substation, C ica is the residual value of scrapped equipment in the substation, and W is the number of equipment in the substation. The constraints include power balance constraints, equipment capacity constraints, equipment load rate constraints, equipment operating time constraints, voltage and frequency constraints.

Citation Information

Cited By

  • Information system maintenance scheme generation method and system based on multi-agent cooperation

    CN120875848A

  • A method and system for generating an information system maintenance scheme based on multi-agent cooperation

    CN120875848B