Optimization acceleration-based power distribution network operation optimization method and related device
By converting the nonlinear continuous constraints of the distribution network operation optimization model into a mixed integer convex optimization form, and using the modified Markov decision model and reinforcement learning algorithm, combined with the compensation reward value and the baseline reward value, the existing technology problems are solved The distribution network operation optimization method has high data requirements, long solution time and low training efficiency, and achieves efficient and safe distribution network operation optimization.
Patent Information
- Application Number
- CN202410618120.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-27
AI Technical Summary
Existing distribution network operation optimization methods, including traditional operations research optimization methods and classic reinforcement learning optimization methods, have high data requirements, inability to adaptively adjust, long solution times, low reinforcement learning training efficiency, and difficulty in ensuring policy security and convergence. The problem of non-optimal strategies.
A distribution network operation optimization method based on optimization acceleration is proposed, by converting nonlinear continuous constraints into a mixed integer convex optimization form, and using a modified Markov decision model and reinforcement learning algorithm to combine the compensation reward value and the baseline reward value , optimize the reinforcement learning training process, and form a sequential decision-making model to improve solution efficiency.
It is possible to improve the solving time of complex constraints and nonlinear problems while maintaining solution accuracy, improve the efficiency of reinforcement learning training, ensure the security of the strategy and the accuracy of the optimization results, and reduce the calculation time.
Smart Images

Figure CN118554432A
Abstract
Description
Technical Field
[0001] The present application relates to a distribution network operation optimization method, and relates to a distribution network operation optimization method based on optimization acceleration and related devices. Background Art
[0002] In order to improve the reliability, economy and power supply quality of the power system, meet user needs and ensure the safe and stable operation of the power grid, it is necessary to optimize the operation of the distribution network. At present, the commonly used distribution network operation optimization methods mainly include traditional operations research optimization methods and classical reinforcement learning optimization methods:
[0003] 1) Traditional operations research optimization method: Building a distribution network operation optimization model and directly using commercial solvers to solve it is the most commonly used method.
[0004] However, model construction requires complete time series information, including complete load, new energy, and price data during the decision-making period, and has high requirements for data accuracy and completeness; it is unable to adaptively adjust strategies based on actual operating conditions, and when the external environment changes, it is necessary to update parameters and re-solve; when the model complexity is high, the solution time increases significantly, especially when the model contains a large number of nonlinear constraints and integer variables, the model solution time is difficult to match the changing time of the external environment.
[0005] 2) Classic reinforcement learning optimization method: The distribution network operation optimization model is split into a Markov decision model according to the time series, and the reinforcement learning algorithm is used to train the operation strategy. The operating power variables of all equipment are calculated by the reinforcement learning model.
[0006] However, reinforcement learning cannot fully guarantee the security of the strategy, especially when an external environment that has never been encountered appears, the original problem constraints may not be satisfied; uncorrected reinforcement learning training is inefficient, because the power of all equipment is calculated by the reinforcement learning model, the exploration dimension of the training process is too large, and it is difficult to find the optimal solution in a short time; since a large number of state features are not affected by the strategy, the state space and action space are relatively decoupled, and the reward signal determined by the cost contains a large number of interference signals, which easily causes the model to converge to a non-optimal strategy. Summary of the invention
[0007] The purpose of this application is to solve the above-mentioned problems in the prior art and to provide a distribution network operation optimization method and related devices based on optimization acceleration.
[0008] In order to achieve the above objectives, this application adopts the following technical solutions:
[0009] In a first aspect, the present application proposes a distribution network operation optimization method based on optimization acceleration, comprising:
[0010] Establishing a distribution network operation optimization model, and converting the nonlinear continuous constraints of the distribution network operation optimization model into a solvable form of mixed integer convex optimization;
[0011] Converting variables that can be solved by a reinforcement learning algorithm from the distribution network operation optimization model;
[0012] Based on the variables and constraints, the transformed variables are solved by the reinforcement learning algorithm, and the variable values are substituted into the distribution network operation optimization model to obtain the optimization results;
[0013] The reinforcement learning algorithm is based on a modified Markov decision model; in the modified Markov decision model:
[0014] The state space includes state tensors explicitly affected by the action space and state features that are not affected by the strategy; the state tensors explicitly affected by the action space and the state features that are not affected by the strategy provide feedback reward information to the strategy respectively.
[0015] Furthermore, the reinforcement learning training method includes:
[0016] Add the compensation reward value to the immediate reward; remove the baseline reward value corresponding to the baseline strategy from the immediate reward to obtain the real reward feedback of the variable value; use the reward function modified by the comprehensive compensation reward value and the baseline reward value for reinforcement learning training;
[0017] The instant reward is the optimal target value of the distribution network operation optimization model calculated after the variable values are determined by reinforcement learning; the compensation reward value is the evaluation function value of the impact of state characteristics not affected by the strategy on the strategy; the baseline strategy is the variable value strategy when the compensation reward value is zero, and the baseline reward value is the optimal target value of the distribution network operation optimization model corresponding to the baseline strategy variable value.
[0018] Furthermore, the optimization objectives of the distribution network operation optimization model include: minimizing the sum of the equivalent economic costs of all optimizable elements of the system within the optimization time period and the equivalent cost of the system power network loss value.
[0019] Furthermore, the constraints of the distribution network operation optimization model include variable equality constraints, variable inequality constraints and integer variable constraints;
[0020] The variable equality constraints include system power flow Kirchhoff's current law constraints, Kirchhoff's voltage law constraints and power energy balance constraints;
[0021] The variable inequality constraints include controllable device output limit constraints and controllable device power timing ramp constraints;
[0022] The integer variable constraints include energy storage equipment charging and discharging constraints, power grid power purchase and sales constraints, and load switching behavior constraints.
[0023] Furthermore, the nonlinear continuous constraints of the distribution network operation optimization model are converted into a solvable form of mixed integer convex optimization, including:
[0024] The second-order cone relaxation technique is used to perform convex relaxation on the power energy balance constraints in the distribution network operation optimization model.
[0025] Furthermore, the variables that can be solved by the reinforcement learning algorithm are converted from the distribution network operation optimization model, including:
[0026] Construct a reinforcement learning action space, convert the charging and discharging power of the energy storage unit and the output power of the low climbing rate unit, delete the energy storage charging and discharging related constraints, and correct the unit power climbing constraints; wherein, the low climbing rate unit is to sort the system units in order from small to large according to the climbing rate capacity, and take at least the top 50% of the units as the low climbing rate units.
[0027] Furthermore, solving the variables converted in the distribution network operation optimization model by the reinforcement learning algorithm includes:
[0028] (A-1) At the decision time t, the section parameters are extracted to form a single section distribution network operation optimization problem; at the same time, the parameter information at time t and historical time is used to construct the state space of the reinforcement learning algorithm;
[0029] (A-2) inputting the state space into a decision neural network to obtain the action space value at time t;
[0030] (A-3) Substitute the action space values of the reinforcement learning algorithm decision into the distribution network operation optimization model and solve it to obtain the complete decision result of the section at time t;
[0031] (A-4) Repeat steps (A-1) to (A-3) until the final moment section is reached and the solution is completed.
[0032] Furthermore, the compensation reward value of the reinforcement learning algorithm includes:
[0033]
[0034]
[0035]
[0036]
[0037] Among them, r ext(t) represents the compensation reward value at time t, n r To partition the power grid, is the sum of the power of the energy storage devices in the partition, are the output power of the distributed unit at time t and the power change relative to time t-1 of the mth reinforcement learning decision in the partition, is the interactive electricity price between the distribution network and the upper level tie line at time t, is the relative level of net load within the partition, is the relative level of renewable energy output within the region, is the price of the mth reinforcement learning decision distributed unit in the partition at time t, is the actual load corresponding to the jth node in the partition at time t, is the maximum load in the partition at time t, is the actual output corresponding to the kth wind power in the partition at time t, is the actual output corresponding to the lth photovoltaic in the partition at time t, are the maximum wind power and photovoltaic power generation in the sub-zone, are the quadratic, linear and constant coefficients of the price of the mth reinforcement learning decision distributed unit in the partition, respectively.
[0038] Furthermore, the instant reward value includes:
[0039]
[0040] Among them, r π represents the instant reward value, G represents the set of distributed unit system node numbers, S represents the set of energy storage system node numbers, D represents the set of demand response system node numbers, and R represents the set of power grid power purchase system node numbers; i represents an element in set G, j represents an element in set S, k represents an element in set D, n represents an element in set R, and m represents an element in set G determined by reinforcement learning; C DG represents the unit operation cost function, C S represents the energy storage impairment cost function, C DR represents the load demand response cost function, C Ext represents the interaction cost function of the upper power grid, represents the cost function of renewable energy abandonment, C GL represents the network loss converted into cost; P represents the power of the corresponding equipment, P * represents the variable value determined by reinforcement learning; SoC represents the state of charge percentage, and t represents the current time t;
[0041] The baseline reward values include:
[0042]
[0043]
[0044] Among them, r env represents the baseline reward value, ψ represents the baseline strategy set, represents the energy storage and unit output value in the baseline strategy, r ext (·) represents the function mapping from energy storage and unit output values to compensation reward values;
[0045] The reward feedback obtained from reinforcement learning training includes immediate rewards, baseline reward values, and compensation reward values.
[0046] In a second aspect, the present application proposes a distribution network operation optimization system based on optimization acceleration, comprising:
[0047] A first conversion module is used to establish a distribution network operation optimization model and convert the nonlinear continuous constraints of the distribution network operation optimization model into a solvable form of mixed integer convex optimization;
[0048] A second conversion module, used to convert variables that can be solved by a reinforcement learning algorithm from the distribution network operation optimization model;
[0049] An optimization module is used to solve the transformed variables through the reinforcement learning algorithm based on the variables and constraints, substitute the variable values into the distribution network operation optimization model, and obtain the optimization results;
[0050] The reinforcement learning algorithm is based on a modified Markov decision model; in the modified Markov decision model:
[0051] The state space includes state tensors explicitly affected by the action space and state features that are not affected by the strategy; the state tensors explicitly affected by the action space and the state features that are not affected by the strategy provide feedback reward information to the strategy respectively.
[0052] Furthermore, the reinforcement learning training method includes:
[0053] Add the compensation reward value to the immediate reward; remove the baseline reward value corresponding to the baseline strategy from the immediate reward to obtain the real reward feedback of the variable value; use the reward function modified by the comprehensive compensation reward value and the baseline reward value for reinforcement learning training;
[0054] The instant reward is the optimal target value of the distribution network operation optimization model calculated after the variable values are determined by reinforcement learning; the compensation reward value is the evaluation function value of the impact of state characteristics not affected by the strategy on the strategy; the baseline strategy is the variable value strategy when the compensation reward value is zero, and the baseline reward value is the optimal target value of the distribution network operation optimization model corresponding to the baseline strategy variable value.
[0055] Furthermore, the optimization objectives of the distribution network operation optimization model include: minimizing the sum of the equivalent economic costs of all optimizable elements of the system within the optimization time period and the equivalent cost of the system power network loss value.
[0056] Furthermore, the constraints of the distribution network operation optimization model include variable equality constraints, variable inequality constraints, and integer variable constraints;
[0057] The variable equality constraints include system power flow Kirchhoff's current law constraints, Kirchhoff's voltage law constraints and power energy balance constraints;
[0058] The variable inequality constraints include controllable device output limit constraints and controllable device power timing ramp constraints;
[0059] The integer variable constraints include energy storage equipment charging and discharging constraints, power grid power purchase and sales constraints, and load switching behavior constraints.
[0060] Furthermore, in the first conversion module, the nonlinear continuous constraints of the distribution network operation optimization model are converted into a solvable form of mixed integer convex optimization, including:
[0061] The second-order cone relaxation technique is used to perform convex relaxation on the power energy balance constraints in the distribution network operation optimization model.
[0062] Furthermore, in the second conversion module, the variables that can be solved by the reinforcement learning algorithm are converted from the distribution network operation optimization model, including:
[0063] Construct a reinforcement learning action space, convert the charging and discharging power of the energy storage unit and the output power of the low climbing rate unit, delete the energy storage charging and discharging related constraints, and correct the unit power climbing constraints; wherein, the low climbing rate unit is to sort the system units in order from small to large according to the climbing rate capacity, and take at least the top 50% of the units as the low climbing rate units.
[0064] Furthermore, in the optimization module, the variables converted from the distribution network operation optimization model are solved by the reinforcement learning algorithm, including:
[0065] (A-1) At the decision time t, the section parameters are extracted to form a single section distribution network operation optimization problem; at the same time, the parameter information at time t and historical time is used to construct the state space of the reinforcement learning algorithm;
[0066] (A-2) inputting the state space into a decision neural network to obtain the action space value at time t;
[0067] (A-3) Substitute the action space values of the reinforcement learning algorithm decision into the distribution network operation optimization model and solve it to obtain the complete decision result of the section at time t;
[0068] (A-4) Repeat steps (A-1) to (A-3) until the final moment section is reached and the solution is completed.
[0069] Furthermore, the compensation reward value of the reinforcement learning algorithm includes:
[0070]
[0071]
[0072]
[0073]
[0074] Among them, r ext (t) represents the compensation reward value at time t, n r To partition the power grid, is the sum of the power of the energy storage devices in the partition, are the output power of the distributed unit at time t and the power change relative to time t-1 of the mth reinforcement learning decision in the partition, is the interactive electricity price between the distribution network and the upper level tie line at time t, is the relative level of net load within the partition, is the relative level of renewable energy output within the region, is the price of the mth reinforcement learning decision distributed unit in the partition at time t, is the actual load corresponding to the jth node in the partition at time t, is the maximum load in the partition at time t, is the actual output corresponding to the kth wind power in the partition at time t, is the actual output corresponding to the lth photovoltaic in the partition at time t, are the maximum wind power and photovoltaic power generation in the sub-zone, are the quadratic, linear and constant coefficients of the price of the mth reinforcement learning decision distributed unit in the partition, respectively.
[0075] Furthermore, the instant reward value includes:
[0076]
[0077] Among them, r πrepresents the instant reward value, G represents the set of distributed unit system node numbers, S represents the set of energy storage system node numbers, D represents the set of demand response system node numbers, and R represents the set of power grid power purchase system node numbers; i represents an element in set G, j represents an element in set S, k represents an element in set D, n represents an element in set R, and m represents an element in set G determined by reinforcement learning; C DG represents the unit operation cost function, C S represents the energy storage impairment cost function, C DR represents the load demand response cost function, C Ext represents the interaction cost function of the upper power grid, represents the cost function of renewable energy abandonment, C GL represents the network loss converted into cost; P represents the power of the corresponding equipment, P * Represents the variable value determined by reinforcement learning; SoC represents the state of charge percentage, and t represents the current time t.
[0078] In a third aspect, the present application provides an electronic device, comprising:
[0079] Memory for storing computer programs;
[0080] A processor is used to implement the steps of the above-mentioned distribution network operation optimization method based on optimization acceleration when executing the computer program.
[0081] In a fourth aspect, the present application proposes a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned distribution network operation optimization method based on optimization acceleration are implemented.
[0082] Compared with the prior art, this application has the following beneficial effects:
[0083] This application proposes a distribution network operation optimization method based on optimization acceleration, which transforms the distribution network operation optimization model into a solvable form of operations research optimization, transforms variables that can be solved by a reinforcement learning algorithm from the distribution network operation optimization model and modifies the corresponding constraints, forms a time series decision model and solves the distribution network operation optimization model according to time sections. Among them, the reinforcement learning algorithm is based on a modified Markov decision model, the state space includes state tensors explicitly affected by the action space and state features not affected by the strategy, and the state tensors explicitly affected by the action space and the state features not affected by the strategy provide feedback reward information to the strategy respectively.
[0084] The present application also proposes a distribution network operation optimization system, electronic device and computer storage medium based on optimization acceleration, which have all the advantages of the above-mentioned distribution network operation optimization method based on optimization acceleration. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0086] Figure 1 This is a first schematic diagram of the distribution network operation optimization method based on optimization acceleration of this application;
[0087] Figure 2 This is a second schematic diagram of the distribution network operation optimization method based on optimization acceleration of this application;
[0088] Figure 3 This is a schematic diagram of the state transition of the modified Markov decision model in the embodiment of the present application;
[0089] Figure 4 This is a comparison chart of training results of different reinforcement learning algorithms trained with different reward settings in the embodiments of the present application;
[0090] Figure 5 A schematic diagram of a distribution network operation optimization system based on optimization acceleration in this application. DETAILED DESCRIPTION
[0091] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0092] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0093] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0094] In the description of the embodiments of the present application, it should be noted that if the terms "upper", "lower", "horizontal", "inner", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the invented product is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0095] In addition, if the term "horizontal" appears, it does not mean that the component must be absolutely horizontal, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", which does not mean that the structure must be completely horizontal, but can be slightly tilted.
[0096] In the description of the embodiments of the present application, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0097] In order to apply reinforcement learning algorithms to train intelligent agents to make decisions on the coordinated implementation of source-grid-load-storage, it is necessary to build an interactive simulation environment. After inputting the current state information and action strategy into the simulation environment, the environment will feedback a corresponding reward value and the state information at the next moment. Usually, the simulation environment is centered on the power flow calculation method. When all the node information of the power grid is given by the intelligent agent or determined by the external environment, the power flow calculation will give indicators such as power grid operation stability, economy, and reliability as reward feedback. However, when the scale of the power grid expands and the number of controllable elements increases, it is difficult to quickly find feasible strategies that meet complex and diverse safety constraints through learning and exploration.
[0098] Based on the above reasons, the present application proposes a distribution network operation optimization method based on optimization acceleration and a related device. The present application is described in detail below in conjunction with the embodiments and drawings.
[0099] like Figure 1 As shown, it is a first flow chart of the distribution network operation optimization method based on optimization acceleration of the present application, which may include:
[0100] S101, establishing a distribution network operation optimization model, and converting the nonlinear continuous constraints of the distribution network operation optimization model into a solvable form of mixed integer convex optimization.
[0101] In practical applications, the distribution network operation optimization model uses mathematical equations to describe the state and operation of the power grid. The goal of the distribution network operation optimization model is usually to reduce network losses, improve voltage quality, reduce costs, etc. One or more specific goals can be selected for optimization. Converting the distribution network operation optimization model into a solvable form helps to improve the solution time of complex constraints and nonlinear problems while maintaining solution accuracy, and is also conducive to training and iteration using data-driven methods.
[0102] S102, converting variables that can be solved by a reinforcement learning algorithm from the distribution network operation optimization model.
[0103] In practical applications, the following variables and corresponding constraints that can be solved by reinforcement learning algorithms can usually be converted: as variables, they can include the output power of distributed power sources and energy storage devices, etc.; as constraints, since some variables are determined by reinforcement learning, the relevant constraints include generator climbing constraints, energy storage charging and discharging constraints, etc. It can be adjusted and selected according to actual needs, and no specific restrictions are made here.
[0104] S103, based on the variables and constraints, the transformed variables are solved by the reinforcement learning algorithm, and the variable values are substituted into the distribution network operation optimization model to obtain the optimization results.
[0105] Among them, the reinforcement learning algorithm is based on the modified Markov decision model; in the modified Markov decision model:
[0106] The state space consists of state tensors that are explicitly affected by the action space and state features that are not affected by the policy.
[0107] The state tensor explicitly affected by the action space and the state features not affected by the strategy provide feedback reward information to the strategy respectively;
[0108] It should be noted that the Markov decision model is a decision-making method based on the Markov property, which uses the Markov transition matrix to describe the transition probability between system states and makes decisions based on it. The basic principle of the Markov decision model is that when the decision maker cannot know the probability of a certain natural state in the near future, but knows the change in the probability distribution between the natural states, that is, the transition matrix, the stable probability of the occurrence of each natural state in the future environment can be calculated based on the transition matrix, and then the expected value decision method or deterministic decision technology can be used to select the best solution.
[0109] In practical applications, the optimization results can be output to the control center or dispatch center for execution, and the control center or dispatch center can perform corresponding optimization control to achieve the optimization goals, such as reducing network losses, improving voltage quality, and reducing costs.
[0110] This application proposes a method for decomposing the distribution network optimization solution process based on reinforcement learning, and uses an artificial intelligence data-driven method to solve the part involving integer variables, thereby improving the solution efficiency while satisfying safety constraints, and solving the problem of combining reinforcement learning with distribution network optimization.
[0111] like Figure 2 As shown, it is a second flow chart of the distribution network operation optimization method based on optimization acceleration of the present application, which may include:
[0112] S201, determining the optimization target of the distribution network operation optimization model.
[0113] In this embodiment, the optimization objectives of the distribution network operation optimization model may include:
[0114] 1) The sum of the equivalent economic costs of all the optimizable elements of the system during the entire optimization period is minimized;
[0115] 2) Minimize the equivalent cost of system power network loss. It can be expressed as:
[0116]
[0117] C i DG (P i DG (t))=(α i (P i DG (t)) 2 +β i P i DG (t)+c i )Δt
[0118]
[0119]
[0120]
[0121] C Ext (P Ext (t)) = λ buy (t)P Ext (t)Δt
[0122]
[0123] Where G represents the set of distributed unit system node numbers, S represents the set of energy storage system node numbers, D represents the set of demand response system node numbers, and R represents the set of power grid power purchase system node numbers; i represents an element in the set G, j represents an element in the set S, k represents an element in the set D, and n represents an element in the set R; C DG represents the unit operation cost function, C S represents the energy storage impairment cost function, C DR represents the load demand response cost function, C Ext represents the interaction cost function of the upper power grid, represents the cost function of renewable energy abandonment, C GL represents the network loss parameter; P represents the power of the corresponding equipment; α, β, and c correspond to the second-order, first-order, and constant coefficients respectively. Among them, the DG operation cost adopts the quadratic model, C S The calculation is based on the change of energy storage charge state, SoC represents the charge state percentage, σ represents the depreciation coefficient. The demand response cost, power abandonment cost and the power purchase cost of the upper power grid are all represented by a linear model, and ζ, ρ, λ are their corresponding cost coefficients respectively.
[0124] The optimization objective function is to minimize the cumulative operating cost, T represents the total optimization time, t represents the current time t, and Δt represents the time interval, that is, the optimization step size.
[0125] η GL represents the network loss target coefficient, r ij is the resistance of branch ij, l ij is the square of the current amplitude flowing through branch ij.
[0126] S202, determining constraints of a distribution network operation optimization model.
[0127] In this embodiment, variable equality constraints include Kirchhoff's Current Law (KCL) constraints, Kirchhoff's Voltage Law (KVL) constraints, energy balance constraints, etc.; variable inequality constraints include controllable device output limit constraints, controllable device power timing ramp constraints, etc.; integer variable constraints are constraints on non-continuous variables with special physical meanings, including energy storage device charging and discharging constraints, power grid purchase and sales constraints, load switching behavior constraints, etc.
[0128] In addition, for distributed units, in addition to the rated power constraints and active power limit constraints, the ramp constraints of unit regulation are also considered:
[0129]
[0130]
[0131] in, P DG represents the lower bound of active power, represents the upper bound of active power, η DG Indicates the ratio of the maximum active power change to the upper bound. Indicates the rated power of the unit. Indicates the reactive power of the unit.
[0132] Among them, the new energy equipment adopts the constant power factor model, the active power is equal to the maximum theoretical output minus the amount of abandoned power, and the reactive power is equal to the theoretical output multiplied by the power factor:
[0133]
[0134] in, is the theoretical upper bound of the output of new energy equipment at time t, η RE is the constant power factor coefficient, for.
[0135] The interconnection lines of the upper-level power grid are mainly responsible for purchasing electricity from the outside. Since the output of new energy can be adjusted, the model is limited and cannot supply electricity to the upper-level power grid.
[0136]
[0137] in, It represents the upper limit of the amount of electricity purchased. Q Ext They represent the upper and lower bounds of reactive power interaction with the upper power grid respectively.
[0138] For energy storage device constraints, auxiliary integer variables need to be constructed to ensure that the energy storage is not charged and discharged at the same time:
[0139]
[0140]
[0141] in, are the upper bounds of energy storage charging power and discharging power, I S,ch ,I S,dis are auxiliary 0-1 variables, η S,ch ,η S,dis are the energy storage charging power and discharging power, E S is the total capacity of the energy storage device, SoC max ,SoC min are the upper and lower bounds of the energy storage state of charge, respectively.
[0142] Assuming that the load that can be adjusted at each moment always accounts for a fixed proportion of the current load demand, the load demand response constraint is:
[0143]
[0144] in, is the upper limit of demand response load, η DR is the adjustable proportional coefficient, P L (t),Q L (t) are the active and reactive values of the load demand at the current moment, It is the reactive power regulation quantity participating in demand response.
[0145] The power flow constraints of distribution networks are often constructed by branch power flow balance relaxation constraints:
[0146]
[0147]
[0148] Among them, l ij (t)=|I ij (t)| 2 represents the square of the branch current modulus, v i (t)=|V i (t)| 2 Represents the square of the node voltage magnitude. ij ,x ij Represents branch resistance and reactance respectively. j (t),Q j (t) represents the sum of active and reactive power of all elements connected to node j. Since the power balance constraint of the first node, i.e., the upper interconnection line, is not included, an additional equality constraint is set to ensure that the external power purchase power is equal to the sum of the power of the extended branches of the first node.
[0149] S203, using the second-order cone relaxation technique, the distribution network operation optimization model is converted into a solvable form.
[0150] The entire optimization problem belongs to a mixed integer nonlinear optimization problem, which needs to be linearized or convexly relaxed to make it a solvable problem. The main reason why the original distribution network operation optimization model is unsolvable is the nonlinear nonconvex constraints of the power flow, which can be convexly relaxed using the second-order cone relaxation technology.
[0151] As an example, the energy balance constraint can be handled using a second-order cone relaxation constraint as shown below:
[0152]
[0153]
[0154] After processing, the problem can be transformed into a mixed integer second-order cone optimization problem, and the optimal solution can be obtained using a solver.
[0155] In the above formula, l ij is the square of the current modulus corresponding to the ij branch, v i is the square of the voltage modulus of node i, P ij ,Q ij are the active power and reactive power flowing through the ij branch respectively. ij The equality constraint form is non-convex, and the corresponding convex constraint form can be obtained by using second-order cone relaxation. In addition, the introduction of network loss parameters in the objective is a regularization of convex relaxation, which minimizes the energy balance error caused by relaxation. Especially when the renewable energy generation exceeds the total system load, it is necessary to prevent the infinite increase of l ij To satisfy the relaxation constraints and enable the optimization of new energy output to work effectively.
[0156] S204, converting variables and corresponding constraints that can be solved by a reinforcement learning algorithm from the distribution network operation optimization model.
[0157] Reinforcement learning algorithm is suitable for dealing with timing decision-making problems. When there are strong timing-related constraints in the distribution network operation optimization model, the corresponding main variables can be used as decision variables of the reinforcement learning algorithm.
[0158] In the source-grid-load-storage coordinated optimization problem, the charging power and discharging power of the energy storage unit, as well as the power of the unit with small climbing ability are suitable variables for reinforcement learning decision-making. The energy storage-related constraints are:
[0159]
[0160]
[0161]
[0162] At this time, for the original distribution network operation optimization model, the variables in the action space are regarded as fixed values, which greatly reduces the complexity of the original model.
[0163] Among them, the energy storage charging power and energy storage discharging power P S,ch ,P S,dis Together determine the external apparent power P of the energy storage S , involving the charge and discharge behavior integer variable I S,ch ,I S,dis , while the energy storage state of charge SoC expressed by equation (4) is a strong timing coupling equation constraint, η S,ch ,η S,dis is the charge and discharge efficiency coefficient. SAfter being determined by the neural network, all the above constraints will be removed from the optimization problem, and the constraint form will be greatly simplified.
[0164] After the reinforcement learning decision variables are determined, since most of the strong temporal coupling constraints are eliminated, the temporal correlation of the entire optimization problem is weakened, and it can be transformed into multiple single-section optimization problems through the decoupling method. The variable definition of the single-section optimization problem does not contain the time variable t, that is, all optimization variables are limited to one moment.
[0165] The objective function in the original problem also needs to be split. The objective of the single-section optimization problem at time t is the sum of the equivalent economic costs of all optimizable elements of the system during the optimization period.
[0166] Some constraints with weak timing coupling can be decoupled in a greedy way:
[0167]
[0168] Among them, P DG (t) is the unit power at time t, η DG is the ramp coefficient. The power ramp capability of the unit is greater than the external source load change capability. At this time, the power upper and lower bound constraints at time t can be considered as the upper and lower bounds of the power at time t-1 plus the ramp change rate.
[0169] S205, optimizing the training process of the reinforcement learning algorithm.
[0170] In this embodiment, the compensation reward value can be added to the immediate reward, and the immediate reward value corresponding to the baseline strategy can be removed to obtain the overall reward feedback for reinforcement learning algorithm training. The baseline strategy represents the strategy when the compensation reward value is zero, and the strategy compensation value is the evaluation function value of the impact of the future change trend of the external environment on the current execution strategy.
[0171] The reinforcement learning training method based on the distribution network operation optimization model mainly modifies the cost-based reward function to improve the training efficiency. Starting from the Markov decision model, the state space controllability distinction is added to the traditional decision modeling. Figure 3 As shown, it is a schematic diagram of the state transition of the modified Markov decision model. Figure 3 middle, represents the state tensor that is explicitly affected by the action space, represents the state characteristics not affected by the strategy, π represents the strategy function, a t represents the action based on the current state and strategy, r t Indicates execution of a t After that, the reward feedback is obtained. Not affected by tTherefore, the state tensor can only change part of the characteristic value, thereby migrating to the subsequent intermediate state. Then, under the action of the external migration probability, the state migrates to the state s t+1 At the same time, we get the evaluation function r of the impact of external environment changes on the strategy t ext .
[0172] In the modified Markov decision model, r t That is, the strategy evaluation when the external state has not changed, that is, the optimal cost at time t. Since the change of external state is not affected by the strategy, we introduce r t ext Compensating the reward value so that the feedback reward value can not only reflect the immediate effect of the strategy, but also reflect its impact on the future is called the strategy compensation value. It can be abstracted as:
[0173]
[0174] Because of the difference The corresponding cost ranges are different, so cost comparison can only be done on the same set of If the reward function is established based on cost, the superiority relationship between the state value function of reinforcement learning will be broken. t ext , we can establish an evaluation function that runs through the strategy and remains consistent, which is used to guide the effective improvement of the strategy. Based on the reinforcement learning algorithm that has been constructed, since only the energy storage equipment and the output of some units are used as reinforcement learning decision variables, r t ext It is essentially an intuitive evaluation of the behavior of these devices. The basic form of the reward function that satisfies the above behavior evaluation can be constructed:
[0175]
[0176]
[0177]
[0178]
[0179] Among them, r ext (t) represents the compensation reward value at time t, n r To partition the power grid, is the sum of the power of the energy storage devices in the partition (discharging is positive, charging is negative), are the output power of the distributed unit at time t and the power change relative to time t-1 (output increase is positive, and processing decrease is negative) of the mth reinforcement learning decision in the partition, respectively. is the interactive electricity price between the distribution network and the upper level tie line at time t, is the relative level of net load within the partition, is the relative level of renewable energy output within the region, is the price of the mth reinforcement learning decision distributed unit in the partition at time t, is the actual load corresponding to the jth node in the partition at time t, is the maximum load in the partition at time t, is the actual output corresponding to the kth wind power in the partition at time t, is the actual output corresponding to the lth photovoltaic in the partition at time t, are the maximum wind power and photovoltaic power generation in the sub-zone, are the quadratic, linear and constant coefficients of the price of the mth reinforcement learning decision distributed unit in the partition, respectively.
[0180] r ext The values used in the calculation are explicitly included in the sample trajectory tuple, which is the definite information of the known decision process. The net load and the relative level factor of new energy output take into account the external environmental factors determined at the next moment when the state is transferred, and the average output level of the two moments represents the migration direction of the system state.
[0181] In addition, there are parts of the immediate reward value that are not affected by the strategy, which causes deviations in the strategy benefits at each moment and affects the strategy evaluation. The immediate reward value is:
[0182]
[0183] Among them, r π represents the immediate reward, G represents the set of distributed unit system node numbers, S represents the set of energy storage system node numbers, D represents the set of demand response system node numbers, and R represents the set of power grid power purchase system node numbers; i represents an element in the set G, j represents an element in the set S, k represents an element in the set D, n represents an element in the set R, and m represents an element in the set G determined by reinforcement learning; C DG represents the unit operation cost function, C S represents the energy storage impairment cost function, C DR represents the load demand response cost function, C Ext represents the interaction cost function of the upper power grid, Represents the cost coefficient of abandoned electricity from renewable energy, C GL represents the network loss converted into cost; P represents the power of the corresponding equipment, P * Represents the variable value determined by reinforcement learning; SoC represents the state of charge percentage, and t represents the current time t.
[0184] Construct a baseline strategy and use its corresponding baseline reward value to modify the immediate reward. The baseline strategy is determined by the compensation reward value, and the variable value corresponding to the compensation reward value of 0 is the baseline strategy, including:
[0185]
[0186]
[0187] Among them, r env represents the baseline reward value, ψ represents the baseline strategy set, represents the energy storage and unit output value in the baseline strategy, r ext (·) represents the function mapping from energy storage and unit output values to compensation reward values.
[0188] The reward feedback of the final training is determined by the immediate reward, baseline reward and compensation reward, including
[0189] r t Σ =r t π -r t env +r t ext
[0190] Among them, r t Σ is the final reward value at time t, r t π ,r t env ,r t ext They are the immediate reward, baseline reward and compensation reward obtained after executing the strategy at time t.
[0191] In practical applications, this method can be combined with various model-free reinforcement learning algorithms to greatly improve the algorithm training efficiency. The specific reinforcement learning algorithm is a mature technology and will not be described in detail here. This application proposes a reinforcement learning training efficiency improvement algorithm for distribution network operation optimization, which introduces compensation reward values and environmental baseline values to correct the cost reward values, establishes a strong correlation between the strategy and the environment, and facilitates the rapid search for the optimal value. When optimizing multi-section timing, the model training efficiency can be greatly improved, solving the problem of low efficiency of reinforcement learning training and difficulty in obtaining high-quality solutions.
[0192] After training is completed, the state feature tensor is constructed by optimizing the constraint parameters of the problem and input into the trained model to obtain the value of the pending variable corresponding to the current moment. The problem can be solved by repeating the cycle.
[0193] Since the search for integer variables is reduced, the calculation time of the entire calculation process (excluding training) is greatly reduced compared to direct solution.
[0194] S206, solving the variables converted in the distribution network operation optimization model through a reinforcement learning algorithm.
[0195] Based on the aforementioned problem transformation method, we can construct the state characteristics of the problem and build a basic decision-making framework:
[0196] (1) At the decision time t, the section parameters at time t are extracted to form a single section optimization problem. At the same time, the parameter information at time t and its historical moments (t-1, t-2, ...) is used to construct the reinforcement learning decision state space.
[0197] These parameters include external uncontrollable factors and controllable elements within the system. For example, uncontrollable factors include new energy output, load demand, market electricity prices, etc., and controllable factors include the state of charge of energy storage equipment, the current output level of the unit, etc. Since the state information needs to have Markov properties, for controllable information, only its current state parameters are used to construct the state information, which is represented by a one-dimensional tensor:
[0198] s1=(P DG (t-1),Q DG (t-1),P DR (t-1),SoC(t-1))
[0199] Among them, each element represents the active and reactive power of the unit after the decision at time t-1, the active regulation of the virtual power plant, and the SoC of the energy storage equipment.
[0200] For uncontrollable information, the state information is composed of the past τ section data and expressed as a two-dimensional tensor:
[0201] s2=(o t-τ ,...o t ) T
[0202]
[0203] Among them, t is the uncontrollable information set at time t, which consists of the active and reactive power of the load at the corresponding time, the active power of photovoltaic and wind power, and the purchased and sold electricity prices.
[0204] (2) Input the state space information into the decision neural network to obtain the action space value at time t during the test or training process, which is the value of the constant variable to be determined in the single-section optimization problem. The decision neural network calculates the corresponding action strategy based on the input state value. The decision neural network uses different feature extraction structures when dealing with uncontrollable factors and controllable elements within the system. For example, time series feature extraction neural network structures such as LSTM, GRU, Transformer and Conv1d can be used as the feature extraction layer of the time series state (uncontrollable). Taking Conv1d as an example, the convolution kernel performs convolution calculation along the feature time series, and several convolution kernels with different parameters are used for simultaneous calculation to obtain a one-dimensional tensor feature representing the latent feature. For the controllable state parameters, all device parameters are constructed as a one-dimensional tensor, and a fully connected network is used for feature extraction. The representation obtained is still a one-dimensional tensor. The latent features representing the uncontrollable information and the controllable-action combination information are spliced in the network structure, and then subsequently connected to the fully connected network to further extract its comprehensive features until the output layer. The dimension of the output layer is consistent with the dimension of the action space. The variable values corresponding to the action space are assigned to the corresponding positions of the single-section optimization problem, and the single-section optimization problem is solved (implemented using a commercial solver). As shown in the formula, the decision objective function at time t is obtained, which determines the minimum cost under the premise of energy storage power, as well as the power values of other factors to be solved.
[0205]
[0206] The above minimum value reflects the immediate cost value corresponding to the strategy at time t and is the basis for constructing the reward function.
[0207] (3) Integrate the element decision variables of the reinforcement learning action space with the decision variable values obtained by optimization to obtain the complete decision result of the section at the current time t.
[0208] Steps (1) to (3) are executed repeatedly until the final moment section T is reached, thus achieving the decision of the entire optimization problem.
[0209] Based on the design of this application, a distribution network operation optimization model is established, the total optimization step length of the time section is set to 2880, and different reinforcement learning algorithms are used for training. Figure 4 In order to verify that the reward correction method proposed in this application is effective in improving training efficiency, an ablation test was conducted for comparison, and the values of various reward settings were recorded. Figure 4In the figure, row A indicates the algorithm with policy compensation and baseline correction, row B indicates the algorithm with only policy compensation, and row C indicates the algorithm with only immediate reward; column (1) indicates the SAC algorithm, column (2) indicates the TD3 algorithm, and column (3) indicates the MBPO algorithm. It can be clearly seen that training with corrected rewards can achieve higher cumulative rewards and use fewer exploration steps to obtain the highest reward. Among the three types of reward feedback, namely cost reward, reward with policy compensation, reward with policy compensation and environment correction, training with corrected rewards is better than training with cost reward alone. In fact, in some algorithms, if baseline correction is not added, the strategy will not be able to learn effective knowledge.
[0210] In addition, the calculation time of each complete SOCP is 442.95±78.34s, the calculation time of the complete MISOCP is 2232.43±775.21s, and the calculation time of each RL strategy is 242.79±3.45s. Therefore, in large-scale long-term decision-making problems, reinforcement learning decisions with linearly growing complexity can obtain the best suboptimal solution in a shorter time. In summary, from the algorithm training efficiency to the optimization solution time, the method proposed in this application is improved compared with the traditional method, which verifies the validity of the patent content.
[0211] According to the above distribution network operation optimization method based on optimization acceleration, Figure 5 As shown, the present application also proposes a distribution network operation optimization system based on optimization acceleration, which may include:
[0212] A model building module, used to establish a distribution network operation optimization model and convert the distribution network operation optimization model into a form that can be solved by a reinforcement learning algorithm;
[0213] A conversion module, used to convert variables and corresponding constraints that can be solved by a reinforcement learning algorithm from the distribution network operation optimization model;
[0214] A solution module, used for solving the variables converted in the distribution network operation optimization model through the reinforcement learning algorithm based on the variables and corresponding constraints to obtain an optimization result;
[0215] The reinforcement learning algorithm is based on a modified Markov decision model; in the modified Markov decision model:
[0216] The state space includes state tensors that are explicitly affected by the action space and state features that are not affected by the policy;
[0217] The state tensor explicitly affected by the action space and the state features not affected by the strategy provide feedback reward information to the strategy respectively;
[0218] The training method of the reinforcement learning algorithm comprises:
[0219] Adding compensatory reward value in addition to immediate rewards;
[0220] Remove the baseline reward value corresponding to the baseline strategy from the immediate reward to obtain the real reward feedback of the variable value;
[0221] The reward function modified by the comprehensive compensation reward value and the baseline reward value is used for reinforcement learning algorithm training;
[0222] The instant reward is the optimal target value of the distribution network operation optimization model calculated after the variable value is determined by reinforcement learning;
[0223] The compensation reward value is an evaluation function value of the influence of the state characteristics not affected by the strategy on the strategy.
[0224] The baseline strategy is a variable value strategy when the compensation reward value is zero, and the baseline reward value is the optimal target value of the distribution network operation optimization model corresponding to the baseline strategy variable value;
[0225] In some embodiments of the distribution network operation optimization system based on optimization acceleration of the present application, the optimization objectives of the distribution network operation optimization model may include: the sum of the equivalent economic costs of all optimizable elements of the system within the optimization time period, and the minimization of the equivalent cost of the system power network loss value.
[0226] In some embodiments of the distribution network operation optimization system based on optimization acceleration of the present application, the constraints of the distribution network operation optimization model may include variable equality constraints, variable inequality constraints, integer variable constraints and distributed unit constraints. Variable equality constraints include KCL constraints, KVL constraints and energy balance constraints; variable inequality constraints include controllable device output limit constraints and controllable device power timing ramp constraints; integer variable constraints include energy storage device charging and discharging constraints, power grid purchase and sale constraints and load switching behavior constraints.
[0227] In some embodiments of the distribution network operation optimization system based on optimization acceleration of the present application, in the model construction module, converting the distribution network operation optimization model into a solvable form may include: using a second-order cone relaxation technique to perform convex relaxation processing on the distribution network operation optimization model.
[0228] In some embodiments of the distribution network operation optimization system based on optimization acceleration of the present application, in the conversion module, the variables that can be solved by the reinforcement learning algorithm are converted from the distribution network operation optimization model, which can include: converting the charging and discharging power of the energy storage unit, converting the power of the unit with lower climbing ability, deleting the related constraints of energy storage charging and discharging, and correcting the climbing constraints of the unit power. In practical applications, to screen units with lower climbing ability, the system units can be sorted in order from small to large in terms of climbing rate capability, and at least the top 50% of the units are taken as low climbing rate units.
[0229] In some embodiments of the distribution network operation optimization system based on optimization acceleration of the present application, in the solution module, the variables converted in the distribution network operation optimization model are solved by the reinforcement learning algorithm, which may include: (A-1) at the decision time t, the section parameters are extracted to form a single section optimization problem; at the same time, the parameter information at time t and the historical time is used to construct the state space of the reinforcement learning algorithm decision; (A-2) the state space is input into the decision neural network to obtain the action space value at time t; (A-3) the action space value of the reinforcement learning algorithm decision is substituted into the distribution network operation optimization model and solved to obtain the complete decision result of the section at time t; (A-4) steps (A-1) to (A-3) are repeated until the final section is reached and the solution is completed.
[0230] In some embodiments of the distribution network operation optimization system based on optimization acceleration of the present application, the reward function of the reinforcement learning algorithm may include:
[0231]
[0232]
[0233]
[0234]
[0235] Among them, r ext (t) represents the compensation reward value at time t, n r To partition the power grid, is the sum of the power of the energy storage devices in the partition (discharging is positive, charging is negative), are the output power of the distributed unit at time t and the power change relative to time t-1 (output increase is positive, and processing decrease is negative) of the mth reinforcement learning decision in the partition, respectively. is the interactive electricity price between the distribution network and the upper level tie line at time t, is the relative level of net load within the partition, is the relative level of renewable energy output within the region, is the price of the mth reinforcement learning decision distributed unit in the partition at time t, is the actual load corresponding to the jth node in the partition at time t, is the maximum load in the partition at time t, is the actual output corresponding to the kth wind power in the partition at time t, is the actual output corresponding to the lth photovoltaic in the partition at time t, are the maximum wind power and photovoltaic power generation in the sub-zone, are the quadratic, linear and constant coefficients of the price of the mth reinforcement learning decision distributed unit in the partition, respectively.
[0236] In some embodiments of the distribution network operation optimization system based on optimization acceleration of the present application, the instant reward value corresponding to the baseline strategy can be the instant reward value corresponding to the baseline strategy, wherein the baseline strategy is determined in the form of a compensation reward value, and the variable value corresponding to the compensation reward value of 0 is the baseline strategy, including:
[0237]
[0238]
[0239] Among them, r env represents the baseline reward value, ψ represents the baseline strategy set, represents the energy storage and unit output value in the baseline strategy, r ext (·) represents the function mapping from energy storage and unit output values to compensation reward values.
[0240] The reward feedback of the final training is determined by the immediate reward, baseline reward and compensation reward, including
[0241]
[0242] Among them, r t Σ is the final reward value at time t, They are the immediate reward, baseline reward and compensation reward obtained after executing the strategy at time t.
[0243] It should be noted that in other embodiments of the distribution network operation optimization system based on optimization acceleration of the present application, the specific functions in each module can also adopt the aforementioned embodiments of the distribution network operation optimization method based on optimization acceleration, which will not be repeated here.
[0244] It should be noted that in the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each module is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules can be combined or integrated into another device, or some features can be ignored or not executed. The module described as a separate component may or may not be physically separated. The component displayed as a module may be a physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed in multiple different places. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0245] In addition, each module in each embodiment of the present invention may be integrated into a processing unit, each module may exist physically separately, or two or more modules may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0246] An electronic device provided in an embodiment of the present application includes a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the steps of the distribution network operation optimization method based on optimization acceleration as described in any of the above embodiments are implemented.
[0247] Another electronic device provided in the embodiment of the present application may also include: an input port connected to the processor, used to transmit multimodal data collected by an external acquisition device to the processor; and a display unit connected to the processor, used to display the processing results of the processor to the outside world; a communication module connected to the processor, used to realize communication between the electronic device and the outside world. The display unit can be a display panel, a laser scanning display, etc.; the communication mode adopted by the communication module includes but is not limited to mobile high-definition link technology (HML), universal serial bus (USB), high-definition multimedia interface (HDMI), wireless connection: wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, and communication technology based on IEEE802.11s.
[0248] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the distribution network operation optimization method based on optimization acceleration as described in any of the above embodiments are implemented.
[0249] The computer-readable storage medium involved in the present application includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the technical field.
[0250] For the description of the relevant parts of the distribution network operation optimization system based on optimization acceleration, the electronic device, and the computer-readable storage medium provided in the embodiments of the present application, please refer to the detailed description of the corresponding parts in the distribution network operation optimization method based on optimization acceleration provided in the embodiments of the present application, which will not be repeated here. In addition, the parts of the above-mentioned technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.
[0251] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A distribution network operation optimization method based on optimization acceleration, characterized in that: include: Establishing a distribution network operation optimization model, and converting the nonlinear continuous constraints of the distribution network operation optimization model into a solvable form of mixed integer convex optimization; Converting variables that can be solved by a reinforcement learning algorithm from the distribution network operation optimization model; Based on the variables and constraints, the transformed variables are solved by the reinforcement learning algorithm, and the variable values are substituted into the distribution network operation optimization model to obtain the optimization results; The reinforcement learning algorithm is based on a modified Markov decision model; in the modified Markov decision model: The state space includes state tensors explicitly affected by the action space and state features that are not affected by the strategy; the state tensors explicitly affected by the action space and the state features that are not affected by the strategy provide feedback reward information to the strategy respectively.
2. The distribution network operation optimization method based on optimization acceleration according to claim 1 is characterized in that: The reinforcement learning training method comprises: Add the compensation reward value to the immediate reward; remove the baseline reward value corresponding to the baseline strategy from the immediate reward to obtain the real reward feedback of the variable value; use the reward function modified by the comprehensive compensation reward value and the baseline reward value for reinforcement learning training; The instant reward is the optimal target value of the distribution network operation optimization model calculated after the variable values are determined by reinforcement learning; the compensation reward value is the evaluation function value of the impact of state characteristics not affected by the strategy on the strategy; the baseline strategy is the variable value strategy when the compensation reward value is zero, and the baseline reward value is the optimal target value of the distribution network operation optimization model corresponding to the baseline strategy variable value.
3. The distribution network operation optimization method based on optimization acceleration according to claim 2 is characterized in that: The optimization objectives of the distribution network operation optimization model include: minimizing the sum of the equivalent economic costs of all optimizable elements of the system within the optimization time period and the equivalent cost of the system power network loss value.
4. The distribution network operation optimization method based on optimization acceleration according to claim 3 is characterized in that: The constraints of the distribution network operation optimization model include variable equality constraints, variable inequality constraints and integer variable constraints; The variable equality constraints include system power flow Kirchhoff's current law constraints, Kirchhoff's voltage law constraints and power energy balance constraints; The variable inequality constraints include controllable device output limit constraints and controllable device power timing ramp constraints; The integer variable constraints include energy storage equipment charging and discharging constraints, power grid power purchase and sales constraints, and load switching behavior constraints.
5. The distribution network operation optimization method based on optimization acceleration according to claim 4 is characterized in that: The converting of the nonlinear continuous constraints of the distribution network operation optimization model into a solvable form of mixed integer convex optimization comprises: The second-order cone relaxation technique is used to perform convex relaxation on the power energy balance constraints in the distribution network operation optimization model.
6. The distribution network operation optimization method based on optimization acceleration according to claim 5 is characterized in that: The variables that can be solved by the reinforcement learning algorithm are converted from the distribution network operation optimization model, including: Construct a reinforcement learning action space, convert the charging and discharging power of the energy storage unit and the output power of the low climbing rate unit, delete the energy storage charging and discharging related constraints, and correct the unit power climbing constraints; wherein, the low climbing rate unit is to sort the system units in order from small to large according to the climbing rate capacity, and take at least the top 50% of the units as the low climbing rate units.
7. The distribution network operation optimization method based on optimization acceleration according to claim 6 is characterized in that: The method of solving the variables converted in the distribution network operation optimization model by the reinforcement learning algorithm includes: (A-1) At the decision time t, the section parameters are extracted to form a single section distribution network operation optimization problem; at the same time, the parameter information at time t and historical time is used to construct the state space of the reinforcement learning algorithm; (A-2) inputting the state space into a decision neural network to obtain the action space value at time t; (A-3) Substitute the action space values of the reinforcement learning algorithm decision into the distribution network operation optimization model and solve it to obtain the complete decision result of the section at time t; (A-4) Repeat steps (A-1) to (A-3) until the final moment section is reached and the solution is completed.
8. The distribution network operation optimization method based on optimization acceleration according to claim 7 is characterized in that: The compensation reward value of the reinforcement learning algorithm includes: Among them, r ext (t) represents the compensation reward value at time t, n r To partition the power grid, is the sum of the power of the energy storage devices in the partition, are the output power of the distributed unit at time t and the power change relative to time t-1 of the mth reinforcement learning decision in the partition, is the interactive electricity price between the distribution network and the upper level tie line at time t, is the relative level of net load within the partition, is the relative level of renewable energy output within the region, is the price of the mth reinforcement learning decision distributed unit in the partition at time t, is the actual load corresponding to the jth node in the partition at time t, is the maximum load in the partition at time t, is the actual output corresponding to the kth wind power in the partition at time t, is the actual output corresponding to the lth photovoltaic in the partition at time t, are the maximum wind power and photovoltaic power generation in the sub-zone, are the quadratic, linear and constant coefficients of the price of the mth reinforcement learning decision distributed unit in the partition, respectively.
9. The distribution network operation optimization method based on optimization acceleration according to claim 8 is characterized in that: The instant reward value includes: Among them, r π represents the instant reward value, G represents the set of distributed unit system node numbers, S represents the set of energy storage system node numbers, D represents the set of demand response system node numbers, and R represents the set of power grid power purchase system node numbers; i represents an element in set G, j represents an element in set S, k represents an element in set D, n represents an element in set R, and m represents an element in set G determined by reinforcement learning; C DG represents the unit operation cost function, C S represents the energy storage impairment cost function, C DR represents the load demand response cost function, C Ext represents the interaction cost function of the upper power grid, represents the cost function of renewable energy abandonment, C GL represents the network loss converted into cost; P represents the power of the corresponding equipment, P * represents the variable value determined by reinforcement learning; SoC represents the state of charge percentage, and t represents the current time t; The baseline reward values include: Among them, r env represents the baseline reward value, ψ represents the baseline strategy set, represents the energy storage and unit output value in the baseline strategy, r ext (·) represents the function mapping from energy storage and unit output values to compensation reward values; The reward feedback obtained from reinforcement learning training includes immediate rewards, baseline reward values, and compensation reward values.
10. A distribution network operation optimization system based on optimization acceleration, characterized in that: include: A first conversion module is used to establish a distribution network operation optimization model and convert the nonlinear continuous constraints of the distribution network operation optimization model into a solvable form of mixed integer convex optimization; A second conversion module, used to convert variables that can be solved by a reinforcement learning algorithm from the distribution network operation optimization model; An optimization module is used to solve the transformed variables through the reinforcement learning algorithm based on the variables and constraints, substitute the variable values into the distribution network operation optimization model, and obtain the optimization results; The reinforcement learning algorithm is based on a modified Markov decision model; in the modified Markov decision model: The state space includes state tensors explicitly affected by the action space and state features that are not affected by the strategy; the state tensors explicitly affected by the action space and the state features that are not affected by the strategy provide feedback reward information to the strategy respectively.
11. The distribution network operation optimization system based on optimization acceleration according to claim 10, characterized in that: The reinforcement learning training method comprises: Add the compensation reward value to the immediate reward; remove the baseline reward value corresponding to the baseline strategy from the immediate reward to obtain the real reward feedback of the variable value; use the reward function modified by the comprehensive compensation reward value and the baseline reward value for reinforcement learning training; The instant reward is the optimal target value of the distribution network operation optimization model calculated after the variable values are determined by reinforcement learning; the compensation reward value is the evaluation function value of the impact of state characteristics not affected by the strategy on the strategy; the baseline strategy is the variable value strategy when the compensation reward value is zero, and the baseline reward value is the optimal target value of the distribution network operation optimization model corresponding to the baseline strategy variable value.
12. The distribution network operation optimization system based on optimization acceleration according to claim 11, characterized in that: The optimization objectives of the distribution network operation optimization model include: minimizing the sum of the equivalent economic costs of all optimizable elements of the system within the optimization time period and the equivalent cost of the system power network loss value.
13. The distribution network operation optimization system based on optimization acceleration according to claim 11, characterized in that: The constraints of the distribution network operation optimization model include variable equality constraints, variable inequality constraints, and integer variable constraints; The variable equality constraints include system power flow Kirchhoff's current law constraints, Kirchhoff's voltage law constraints and power energy balance constraints; The variable inequality constraints include controllable device output limit constraints and controllable device power timing ramp constraints; The integer variable constraints include energy storage equipment charging and discharging constraints, power grid power purchase and sales constraints, and load switching behavior constraints.
14. The distribution network operation optimization system based on optimization acceleration according to claim 13, characterized in that: In the first conversion module, the nonlinear continuous constraints of the distribution network operation optimization model are converted into a solvable form of mixed integer convex optimization, including: The second-order cone relaxation technique is used to perform convex relaxation on the power energy balance constraints in the distribution network operation optimization model.
15. The distribution network operation optimization system based on optimization acceleration according to claim 14, characterized in that: In the second conversion module, the variables that can be solved by the reinforcement learning algorithm are converted from the distribution network operation optimization model, including: Construct a reinforcement learning action space, convert the charging and discharging power of the energy storage unit and the output power of the low climbing rate unit, delete the energy storage charging and discharging related constraints, and correct the unit power climbing constraints; wherein, the low climbing rate unit is to sort the system units in order from small to large according to the climbing rate capacity, and take at least the top 50% of the units as the low climbing rate units.
16. The distribution network operation optimization system based on optimization acceleration according to claim 15, characterized in that: In the optimization module, the variables converted from the distribution network operation optimization model are solved by the reinforcement learning algorithm, including: (A-1) At the decision time t, the section parameters are extracted to form a single section distribution network operation optimization problem; at the same time, the parameter information at time t and historical time is used to construct the state space of the reinforcement learning algorithm; (A-2) inputting the state space into a decision neural network to obtain the action space value at time t; (A-3) Substitute the action space values of the reinforcement learning algorithm decision into the distribution network operation optimization model and solve it to obtain the complete decision result of the section at time t; (A-4) Repeat steps (A-1) to (A-3) until the final moment section is reached and the solution is completed.
17. The distribution network operation optimization system based on optimization acceleration according to claim 16, characterized in that: The compensation reward value of the reinforcement learning algorithm includes: Among them, r ext (t) represents the compensation reward value at time t, n r To partition the power grid, is the sum of the power of the energy storage devices in the partition, are the output power of the distributed unit at time t and the power change relative to time t-1 of the mth reinforcement learning decision in the partition, is the interactive electricity price between the distribution network and the upper level tie line at time t, is the relative level of net load within the partition, is the relative level of renewable energy output within the region, is the price of the mth reinforcement learning decision distributed unit in the partition at time t, is the actual load corresponding to the jth node in the partition at time t, is the maximum load in the partition at time t, is the actual output corresponding to the kth wind power in the partition at time t, is the actual output corresponding to the lth photovoltaic in the partition at time t, are the maximum wind power and photovoltaic power generation in the sub-zone, are the quadratic, linear and constant coefficients of the price of the mth reinforcement learning decision distributed unit in the partition, respectively.
18. The distribution network operation optimization system based on optimization acceleration according to claim 17, characterized in that: The instant reward value includes: Among them, r π represents the instant reward value, G represents the set of distributed unit system node numbers, S represents the set of energy storage system node numbers, D represents the set of demand response system node numbers, and R represents the set of power grid power purchase system node numbers; i represents an element in set G, j represents an element in set S, k represents an element in set D, n represents an element in set R, and m represents an element in set G determined by reinforcement learning; C DG represents the unit operation cost function, C S represents the energy storage impairment cost function, C DR represents the load demand response cost function, C Ext represents the interaction cost function of the upper power grid, represents the cost function of renewable energy abandonment, C GL represents the network loss converted into cost; P represents the power of the corresponding equipment, P * Represents the variable value determined by reinforcement learning; SoC represents the state of charge percentage, and t represents the current time t.
19. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the distribution network operation optimization method based on optimization acceleration as described in any one of claims 1 to 9 when executing the computer program.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the distribution network operation optimization method based on optimization acceleration as claimed in any one of claims 1 to 9 are implemented.
Citation Information
Cited By
Method and system for quickly solving dynamic partition model of power grid based on single-stage robustness
CN119358295A
A fast solution method and system for the dynamic partition model of power grid based on single-stage robustness
CN119358295B
Virtual power plant collaborative optimization scheduling method and system based on deep reinforcement learning
CN119494521A
Collaborative optimization scheduling method and system for virtual power plants based on deep reinforcement learning
CN119494521B
Active power distribution network energy storage optimization configuration method, device, equipment and medium
CN119582288A
