The present disclosure belongs to the technical field of power system operation and control, in particular to a method and system for power grid optimization control based on linear time-varying model.
Driven by energy and environmental issues, a proportion of clean and decentralized renewable energy in power grids is increasing day by day, and large-scale, high-penetration renewable energy generation and power grid connection has become a forefront and hot spot in an international energy and power field. Because of the large dispersion and strong fluctuation of distributed renewable energy, it has brought a series of negative effects on a voltage quality and dispatching operation of a distribution network and even a transmission network. At the same time, the distributed renewable energy is often connected to the grid through a power electronic inverter, which has flexible and high-speed regulation capabilities. Moreover, a traditional distributed power supply and energy storage device in the power grid can also provide flexible regulating capabilities for the power grid, and these regulating devices all belong to rapid regulating devices. In addition, there are slow-speed regulating devices in the power grid, such as on-load tap-changers and switch-on capacitor banks, which need to operate on relatively slow timescales. In order to efficiently optimize the fast and slow regulating devices in the power grid and improve the voltage quality of the power grid with high permeability of renewable energy, it is necessary to coordinate the voltage and power control of the power grid.
In a traditional power grid, a method based on a power grid model is often used to achieve voltage and power control, and to optimize a cost of power generation and a voltage distribution of the power grid. However, the traditional model-based optimization control method relies on accurate parameters of system model, and an ideal model of the power grid is difficult to obtain. This model-based optimization method is not capable of guaranteeing a control effect, and control instructions are often far from an optimal condition and the power grid is in a suboptimal state. In order to deal with the problem of model incompleteness of power grid, a data-driven control method has been proposed in recent years, which can use historical data of power grid to learn the system model. However, most of the existing data-driven methods consider static optimization under a single time profile, and do not consider prospective optimization combined with system prediction information, and do not consider coordination of fast and slow control devices.
In view of the above problems, the present disclosure provides a method and system for power grid optimization control based on a linear time-varying model, and coordinated optimization control is performed on a variety of fast regulating devices and slow regulating devices in the power grid, and a voltage distribution of the power grid is optimized and an operating cost is reduced.
A specific technical scheme of the present disclosure is a method for power grid optimization control based on a linear time-varying model, comprising:
Preferably, the establishing, for a controlled power grid, a voltage and power optimization control model based on model prediction control comprises:
Preferably, the method further comprises:
Preferably, the establishing an on-load tap-changer model comprises:
Preferably, establishing a switch-on capacitor bank model comprises:
Preferably, the establishing a traditional distributed power supply model comprises:
Preferably, the establishing an energy storage model comprises:
Preferably, the method further comprises:
Preferably, the objective function comprises:
Preferably, the establishing a piecewise linear regression model comprises:
Preferably, a square of voltage amplitudes of all nodes except the root node in the power grid and active power of a PCC node in the power grid are determined through at least one of the clusters.
Preferably, the estimating the piecewise linear regression model offline according to historical data, and approximating a power grid model by the piecewise linear regression model comprises:
Preferably, the initializing a guess value of a control sequence and a prediction sequence of a power grid load and renewable energy generation comprises:
Preferably, the initializing a guess value of a control sequence and a prediction sequence of a power grid load and renewable energy generation further comprises:
Preferably, the performing, on a power grid, voltage and power optimization control based on the linear time-varying model according to the guess value of the control sequence and the prediction sequences of the power grid load and the renewable energy generation comprises:
Preferably, the method further comprises:
Based on the same concept, the present disclosure also provides a system for power grid optimization control based on a linear time-varying model, comprising:
Based on the same concept, the present disclosure also provides an electronic device which is applied in a method for power grid optimization control based on a linear time-varying model in the present disclosure, comprising:
Based on the same concept, the present disclosure also provides a computer-readable storage medium on which a computer program is stored, wherein the method for power grid optimization control based on a linear time-varying model prediction is implemented when the processor executes the computer program.
The present disclosure has the following beneficial effects:
The present disclosure proposes a method for power grid optimization control based on a linear time-varying model. Firstly, a system model is estimated offline by using historical data and combining a piecewise linear regression method supporting a vector regression model, and then in an online application, a time-varying linear model prediction control framework based on a piecewise linear model is adopted to perform coordinated optimization control on fast regulating devices and slow regulating devices in a power grid. It can be seen that according to the present disclosure, accurate system model parameters are not required, and a power grid model is learned by using historical data; and coordinated optimization control is performed on a variety of fast regulating devices and slow regulating devices in the power grid, a voltage distribution of the power grid is optimized, and an operating cost is reduced. The present disclosure also considers bad data and collinearity problems that may exist in the historical data, and has robustness to the bad data in the historical data, which can greatly improve a voltage quality of the power grid, realize an optimal operation of the system under an incomplete model scenario, and reduce the operation cost of the power grid.
Other features and advantages of the present disclosure will be described in subsequent description and, in part, will become apparent from the specification or will be known by implementation of the present disclosure. The purpose and other advantages of the present disclosure may be realized and obtained by means of structures indicated in the specification and in the attached drawings.
In order to more clearly illustrate the technical scheme in embodiments of the present disclosure or in the prior art, the following is a brief introduction of drawings required to be used in the description of the embodiments or the prior art. Obviously, the drawings described below are only some embodiments of the present disclosure, and for a skilled person in the art, without creative labor, other drawings are also available based on these drawings.
In order to make the purpose, technical schemes and advantages of embodiments of the present disclosure more clear, the technical schemes in the embodiments of the present disclosure will be clearly and completely explained in combination with drawings attached to the embodiments of the present disclosure. Obviously, the described embodiments are a part of the embodiments of the present disclosure, but not the whole embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by a person skilled in the art without creative labor shall fall within the protection scope of the present disclosure.
It should be noted that terms such as “first” and “second” in this application are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that data thus used are interchangeable where appropriate for the purposes of the embodiments of this application described herein. In this application, the term such as “up”, “down”, “left” and “right”, “before”, “after”, “top”, “bottom”, “inside”, “outside”, “in”, “vertical”, “horizontal”, “lateral” or “longitudinal” indicates an orientation or position relation based on an orientation or position shown in the appended drawings.
The present disclosure provides is a method for power grid optimization control based on a linear time-varying model that can be executed by a device such as a computer or a server, as shown in
Specifically, the establishing, for a controlled power grid, a voltage and power optimization control model based on model prediction control comprises:
Specifically, the photovoltaic model is expressed as:
Wherein NPV represents a set of nodes installed with photovoltaic in the power grid, and i represents a node index of the power grid. PPV,i(tk) and QPV,i(tk) respectively represent active power and output reactive power of photovoltaic at a node i at time tk, and
In the present disclosure, the on-load tap-changer model established in the power grid is expressed as (2):
Wherein ET represents a set of branches equipped with on-load tap-changers in the power grid, and (i, j) represents a branch connecting the node i to the node j in the power grid. t represents current time, tk, k, and γ1 are all integer parameters representing values of time, and H is a prediction range in the model prediction control. Γij(tk) represents a square of a transformer ratio corresponding to the on-load tap-changer at the branch (i, j) at the time tk, and Nij(tk) is an integer variable representing a gear position of a transformer at the branch (i, j) at the time tk. θTijn(tk) corresponds a state of the gear position of the transformer corresponding to the branch (i, j) at the time tk and is a variable of 0-1; θTijn (t+k), θTijn(t+k−1) and θTijn(t+γ1) respectively represents values of θTijn(tk) when the time tk is t+k, t+k−1, and t+γ1. Tij,min2 is a square of the minimum transformer ratio at the branch (i, j), αi,j,step is a step size of the transformer ratio at the branch (i, j), and NT is the maximum gear position of the transformer. TOLTCh represents the minimum time interval allowed between two adjacent operations of the transformer.
In the present disclosure, the switch-on capacitor bank model is established, which is represented as:
Wherein NCB represents a set of nodes installed with a switch-on capacitor bank in
the power grid, and i represents the node index of the power grid. t represents the current time, tk, k, and γ2 are all integer parameters representing the values of time. QC,i(tk) and Bi(tk) are respectively a reactive power output of the switch-on capacitor bank at the node i at the time tk and the number of operating capacitor units. θCin(tk) corresponds a state of the switch-on capacitor bank at the node i at the time tk and is variable of 0-1; θCin(t+k), θCin(t+k−1) and θCin(t+γ2) respectively represents values of θCin(tk) when the time tk is t+k, t+k−1, and t+γ2. NC is the number of capacitor units of each switch-on capacitor bank, qstep is reactive power capacity of each capacitor unit, and TCBh represents the minimum time interval allowed between two adjacent operations of the switch-on capacitor bank.
In the present disclosure, the traditional distributed power supply model is established, which is represented as:
Wherein NCG represents a set of nodes installed with a traditional distributed power supply in the power grid, and i represents the node index of the power grid. PCG,i(tk) and QCG,i(tk) respectively represent active and reactive output power of the traditional distributed power supply at the node i at the time tk.
In the present disclosure, the energy storage model is established, which is represented as:
Wherein NES represents a set of nodes installed with energy storage in the power grid, and i represents the node index of the power grid. A cycle aging cost of the energy storage is represented by piecewise linear representation, and a cycle depth of each energy storage is divided into L parts, l represents an index of each segment, l∈{1, . . . , L}. eil(tk) and eil(tk−1) are respectively a remaining battery capacity corresponding to an lth segment of the energy storage at the node i at the time tk and time tk−1, and ēil is an upper limit of the remaining battery capacity corresponding to the lth segment of the energy storage at the node i. pch,il(tk) and pdis,il(tk) are respectively a charging power and a discharge power corresponding to the lth segment of the energy storage at the node i at the time tk, and Θch and Θdis are respectively a charging efficiency and a discharge efficiency of the energy storage. Δt is a time interval, and Eirate is a rated capacity of the energy storage at the node i. Pdis,i(tk) and Pch,i(tk) are respectively an actual discharge power and an actual charging power of the energy storage at the node i at the time tk, and
In some alternative embodiments, establishing a power grid optimization control model based on model prediction control, comprising an objective function of an optimization problem to be solved at a time node; and inputting controlled device constraints and linearized power grid model approximation constraints into the power grid optimization control model as constraint,
In some alternative embodiments, the establishing a piecewise linear regression model comprises:
Specifically, the power grid optimization control model based on model prediction control is established as (6);
Wherein Ft represents the objective function of the optimization problem to be solved at the time t, and the constraints comprise the aforementioned controlled device constraints (1) to (5) and linearized power grid model approximation constraints. w(tk) and b(tk) represent coefficients corresponding to the power grid linearization model at the time tk, and y(tk) and x(tk) are respectively a dependent variable and an independent variable in the power grid linearization model at the time tk. The objective function comprises a cost Fele of purchasing power from a main power grid, a cost FPV of abandoned power, a power generation cost FCG of traditional distributed power supply, an operating cost FOLTC of on-load tap-changer, an operating cost FCB of switch-on capacitor and a cost FV of voltage regulation and a specific expression thereof is as follows:
Wherein Cele is a price coefficient of purchasing power from the main power grid, and P0(t+k) represents active power at a gateway node of the power grid at the time t+k, that is, a PCC node. λPV,i is a photovoltaic light abandonment penalty coefficient at the node i, PPV,i(t+k) is active output power of the photovoltaic at the node i at the time t+k, and
The square of voltage amplitudes of all nodes except the root node in the power grid and active power of a PCC node in the power grid are determined through at least one of the clusters.
In some alternative embodiments, the estimating the piecewise linear regression model offline according to historical data, and approximating a power grid model by the piecewise linear regression model comprises:
Specifically, estimating the piecewise linear regression model offline according to historical data, and approximating a power grid model is detailed as follows:
S21: establishing the piecewise linear regression model. The data set is divided into a plurality of clusters, and a linear model of a kth cluster is represented as follows:
The output vector is y=[UT, P0T]T, U is a square of the voltage amplitude of all nodes except the root node in the power grid, and P0 is the active power of the PCC node of the power grid. The input vector is x=[PT, QT, ΓT]T. P is active injection power of all nodes except the root node in the power grid, Q is reactive injection power of all nodes except the root node in the power grid, and Γ is a square of the transformer ratio of all on-load tap-changers in the power grid. The superscript T in the formula represents the transpose of a vector. wk and bk represent a regression coefficient corresponding to the kth cluster, k=1, . . . , K.
S22: initializing model parameters. A measurement data set is represented as {(xn, yn)|n=1, . . . , N}, wherein xn and yn are respectively an input vector and an output vector in a nth data, and N is a total number of samples in the data set. It is given that a penalty parameter in support vector regression C>0, a precision parameter in the support vector regression ò>0, a target parameter of piecewise linear regression σ>0, a regularization parameter in softmax regression β>0, a maximum number of iterations of the piecewise linear regression cmax>0 and a total number of clusters of the piecewise linear regression K>0. The number of iterations is initialized as c=0. An initial partition of the cluster for the data set is given by {Sk0}k=1K, wherein Sk0 represents a set of input vectors corresponding to the kth cluster partitioned by a 0th iteration. Initial regression parameter {wk0, bk0}k=1K of each cluster is calculated, wherein wk0 and bk0 are the kth cluster regression coefficients calculated in the 0th iteration.
S23: for ∀k=1, . . . , K, solving the following problem to obtain regression parameters wkc+1 and bkc+1,
wherein wkc+1 and bkc+1 represent the regression coefficients corresponding to the kth cluster calculated in a (c+1)th iteration. m is a dimension of the vector yn, wk,i represents a vector in an ith row of the matrix wk, and Jk represents aset of a numbering of data points partitioned to the kth cluster. ξn and ξ*n are auxiliary vectors of m dimensions, and ξn,i and ξ*n,i respectively represents an ith element of the vectors ξn and ξ*n.
S24: calculating the cluster separation coefficients {ωkc+1, γkc+1}k=1K according to formula (15):
wherein ωkc+1 and γkc+1 represent the cluster separation coefficients corresponding to the kth cluster calculated in a (c+1)th iteration. ωk and γk represent the cluster separation coefficients corresponding to the kth cluster, and ωi and γi represent the cluster separation coefficients corresponding to the kth cluster. Sk represents a set of input vectors corresponding to the kth cluster. e is a constant of nature.
S25: for ∀n=1, . . . , N, calculating a cluster number jnc+1 according to formula (16):
wherein jnc+1 represents a cluster number corresponding to the nth data calculated in the (c+1)th iteration. bk,i and yn,i respectively represent ith elements of vectors bk and yn.
S26: updating a set of input vectors Skc+1, k=1, . . . , K corresponding to the kth cluster calculated in the (c+1)th iteration. For ∀n=1, . . . , N, xn is assigned to the cluster Skc+1, wherein k=jnc+1.
S27: if Skc+1=Skc, ∀k∈{1, . . . , K} then flag=0; and otherwise, c=c+1, flag=1, wherein Skc represents the set of input vectors corresponding to the kth cluster calculated in the cth iteration, and flag is an iteration convergence identifier variable.
S28: determining whether the iteration is terminated. If flag=0 or c>cmax, the iteration is terminated and step S29) is continued; and otherwise, returning to step S23).
S29: outputting a regression coefficient {wk, bk}k=1K={wkc+1, bkc+1, }k=1K and a cluster separation coefficient {ωk, γk}k=1K={ωkc+1, γkc+1}k=1K.
In some alternative embodiments, the initializing a guess value of a control sequence and a prediction sequence of a power grid load and renewable energy generation comprises:
Specifically, a guess value of a control sequence corresponding to the time t is represented as Ut0={ũ(t+1), . . . , ũ(t+H)}, and a prediction sequence of a power grid load and as renewable energy generation corresponding to the time t is represented Mt={μ(t+1), . . . , μ(t+H)}. ũ(t+1), . . . , ũ(t+H) represent guess values of values of the control variable from the time t+1 to the time t+H. A control variable at each time comprises active and reactive power output of photovoltaic, energy storage, traditional renewable energy, reactive power output of a switch-on capacitor bank, and a square of a transformer ratio of an on-load tap-changer in the power grid. μ(t+1), . . . , μ(t+H) are prediction values of the load and renewable energy generation from time t+1 to t+H. For initial time t=0, the guess value Ut0={ũ(t+1), . . . , ũ(t+H)} of the control sequence is initialized as the value of the control variable at the initial time, and Mt={μ(t+1), . . . , μ(t+H)} is initialized as the prediction value of the load and renewable energy generation from time t+1 to t+H.
In the present disclosure, the initializing a guess value of a control sequence and a prediction sequence of a power grid load and renewable energy generation further comprises:
In some alternative embodiments, the performing, on a power grid, voltage and power optimization control based on the linear time-varying model according to the guess value of the control sequence and the prediction sequences of the power grid load and the renewable energy generation comprises:
In some alternative embodiments, the method further comprises:
It should be noted that for the online optimization control of the power grid based on model prediction control, the power grid performs the following steps at time t≥0:
S41: calculating prediction input vectors x(tk) corresponding to the time t+1 to the time t+H according to the guess value Ut0={ũ(t+1), . . . , ũ(t+H)} of the control sequence, the prediction sequence Mt={μ(t+1), . . . , μ(t+H)} of power grid load and renewable energy generation, ∀tk=t+1, . . . , t+H.
S42: calculating a cluster number corresponding to x(tk), ∀tk=t+1, . . . , t+H according to the following formula:
wherein j(x(tk)) represents a cluster number corresponding to x(tk). ωk and γk represent the cluster separation coefficient in the offline estimated piecewise linear regression model.
S43: updating the regression coefficients to be w(tk)=wj(x(t
S44: solving the following optimization problem to obtain the values of the control variable in the power grid.
The optimal control sequence solved is represented as U*t{u*(t+1), . . . , u*(t+H)}, wherein u*(t+1), . . . , u*(t+H) represent the values of the solved optimal control variable corresponding to the time t+1 to the time t+H.
S45: if t≥1, then ƒend=1; If t=0 and Ninit>Nmax, then ƒend=1; If t=0 and u*(t+k)=ũ(t+k), ∀1≤k≤H, then ƒend=1; and otherwise, ƒend=0.
S46: updating the guess values of the control sequence. For 1≤k≤H, ũ(t+k)=u*(t+k) is given. And ũ(t+H+1)=u*(t+H) is given. ũ(t+k) and ũ(t+H+1) respectively represent guess values of values of the control variable at the time t+k and the time t+H+1.
S47: if ƒend=0, returning to step S41; and otherwise, continuing with the following step.
S48: executing a control instruction u(t+1)=u*(t+1), wherein u(t+1) represents the control variable at the time t+1 of actual execution.
t=t+1 is given, and then steps S41 to S48 are returned to.
Based on the same concept, the present disclosure also provides a system for power grid optimization control based on a linear time-varying model, as shown in
The present disclosure greatly improves the efficiency, safety and flexibility of the power grid voltage and power control method in the scenario of incomplete model, and is especially suitable for the power grid with a serious problem of incomplete model, which not only saves the high cost caused by repeated maintenance of the accurate model, but also realizes the prospective optimization of the future state prediction of the system through the model prediction control framework. It can optimize power grid operation in the case of distributed power supply and load fluctuations, and has robustness to bad data in the historical data, which is suitable for large-scale promotion.
The present disclosure adopts the piecewise linear regression method based on the supported vector regression model to learn the power grid model from the historical data without relying on the exact model parameters of the power grid, and can realize the optimal operation of the power grid under the scenario of incomplete model, and is robust to the bad data that may occur in the historical data.
Based on the time-varying linear model prediction control framework, the present disclosure predicts the future state change of the power grid in the optimization process, and can better coordinate the fast regulating and control devices and slow regulating and control devices in the power grid under the condition of renewable energy and load fluctuations, and reduce the operation cost of the power grid.
By adopting the linearized model, the calculation cost is reduced, high-speed flexible resources can be efficiently utilized, and the efficiency of power grid optimization control is improved.
Based on the same concept, the present disclosure also provides an electronic device 161 such as a computer or a server, as shown in
The memory 162 is configured to store a computer program 163.
The processor 164 is configured to implement the abovementioned method for power grid optimization control based on a linear time-varying model prediction in the present disclosure when executing the program stored in the memory 162.
The above communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus and a control bus, etc.
The communication interface 165 is configured to communicate between the electronic device 161 and other devices.
The memory 162 may comprise a Random Access Memory (RAM) 162 or a non-volatile memory 162, such as at least one disk memory 162. Optionally, the memory 162 may also be at least one storage device located away from the aforementioned processor 164.
The processor 164 may be a general purpose processor 164, including a Central Processing Unit 164 (CPU), a Network Processor 164 (NP), etc. It may also be a Digital Signal Processing 164 (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
Based on the same concept, the present disclosure also provides a computer-readable storage medium on which a computer program 163 is stored, wherein the method for power grid optimization control based on a linear time-varying model prediction is implemented when the processor 164 executes the computer program 163.
The computer-readable storage medium may be comprised in the device/apparatus described in the above embodiments. It can also exist on its own and not be incorporated into the device/apparatus. The computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method for power grid optimization control based on a linear time-varying model prediction according to the disclosed embodiment is implemented.
The above embodiments are used only to illustrate the technical schemes of this application and not to restrict them. Notwithstanding the detailed description of the present application is given by reference to the foregoing embodiments, it should be understood by a person skilled in the art that he/she may modify the technical schemes recorded in the foregoing embodiments or make equivalent substitutions for some of the technical features therein. Such modifications or substitutions shall not remove the essence of the respective technical scheme from the spirit and scope of the technical scheme in each embodiment of this application.
Number | Date | Country | Kind |
---|---|---|---|
202311081754X | Aug 2023 | CN | national |