A method for controlling power consumption in a park with distributed photovoltaic and energy storage batteries
By back-propagating BP neural network to predict the difference between photovoltaic power generation and park power consumption, the charging and discharging strategy of the energy storage battery is optimized, which solves the problem of failure to fully consider electricity price and efficiency factors in the existing technology, and realizes the power consumption of the park. Effective cost reduction.
Patent Information
- Application Number
- CN202410151700.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-02-02
AI Technical Summary
Existing park power control solutions that include distributed photovoltaics and energy storage batteries fail to fully consider factors such as electricity prices at different times, photovoltaic inverter efficiency, battery inverter efficiency, and charging rectification efficiency, resulting in park power costs that do not meet expectations. .
The back propagation BP neural network is used to predict the difference between photovoltaic power generation and park power consumption, and the hidden node values are adjusted through training to optimize the charging and discharging timing and amount of the energy storage battery to reduce the cost of electricity while cutting peaks and filling valleys.
By considering different factors and optimizing the charging and discharging strategy of the energy storage battery, it is possible to reduce the cost of electricity consumption in the park while shaving peaks and filling valleys, and improves the control accuracy of electricity costs.
Smart Images

Figure CN118336673B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of smart electricity technology, and specifically relates to a park electricity control method containing distributed photovoltaics and energy storage batteries. Background Art
[0002] The existing energy supply systems of industrial parks or industrial parks mainly rely on electricity, and directly meet various energy needs of users through the consumption of electricity.
[0003] Energy and environmental issues are important factors that restrict economic and social development. Traditional energy use has great environmental costs. Photovoltaic power generation belongs to the field of new energy power generation. Its environmentally friendly characteristics are a breakthrough in solving energy and environmental problems. Distributed photovoltaic power generation has attracted more and more attention and attention because it can realize the local consumption of photovoltaic power generation and reduce the loss in the transmission and distribution links. Relevant policies have been introduced at the national level to promote the development of distributed photovoltaic power generation.
[0004] At present, distributed photovoltaic power generation mainly has two modes: "self-generation for self-use, surplus power to the grid" and "full power to the grid". Among them, the benefits brought to enterprises by the "self-generation for self-use, surplus power to the grid" mode mainly include: national subsidies obtained according to the full power generation, electricity costs saved by self-generation for self-use, and power generation income obtained by the surplus power to the grid. Therefore, distributed photovoltaic power generation has become one of the sources of electricity for the park, and the electricity cost of the park is mainly reduced through the "self-generation for self-use, surplus power to the grid" mode. However, the output power of distributed photovoltaic power generation has the characteristics of instability, and with the continuous increase of power load in the park and the fluctuation of load, the peak-valley difference of power load will increase. In order to ensure the stable operation of the power grid and the balance of power supply and demand, corresponding peak-shaving and valley-filling measures need to be taken. Battery Energy Storage System (BESS) has the advantages of high energy storage density, flexible installation and construction, and fast control response speed, which can more conveniently adjust the peak and valley of the power grid from the load side. Therefore, the method of using BESS for peak load control can not only reduce the investment in grid-side equipment, but also reduce line losses, improve equipment utilization and economic benefits, and is one of the effective ways to solve the problem of power peaks and valleys.
[0005] However, the existing power consumption control scheme for parks containing distributed photovoltaics and energy storage batteries is mainly for the purpose of peak shaving and valley filling, and has not yet taken into account the impact of factors such as different electricity prices in different time periods, photovoltaic inverter efficiency, battery inverter efficiency, and charging rectification efficiency on the power consumption cost of the park. Therefore, how to further optimize the power consumption control scheme for parks containing distributed photovoltaics and energy storage batteries while shaving peaks and valley filling so that the power consumption cost of the park reaches the expected level is a topic that technical personnel in this field urgently need to study. Summary of the invention
[0006] The purpose of the present invention is to provide a method, device, computer equipment and computer-readable storage medium for controlling power consumption in a park containing distributed photovoltaics and energy storage batteries, so as to further optimize the power consumption control scheme of the park containing distributed photovoltaics and energy storage batteries while shaving peaks and filling valleys, so as to make the power consumption cost of the park reach the expected level.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] In a first aspect, a method for controlling power consumption in a park including distributed photovoltaic and energy storage batteries is provided, comprising:
[0009] At the end of the current unit period, the weather forecast data for the next N future unit periods is obtained through online query, as well as the current remaining power of the energy storage battery, where N represents a positive integer greater than or equal to 3;
[0010] For each future unit time period in the most recent N future unit time periods, the corresponding estimated photovoltaic power generation value is predicted based on the historical weather data and historical photovoltaic power generation of the most recent M historical unit time periods and the corresponding weather forecast data, wherein M represents a positive integer greater than or equal to 3, the historical photovoltaic power generation refers to the power generation of distributed photovoltaics in the historical unit time period, and the estimated photovoltaic power generation value refers to the estimated power generation value of the distributed photovoltaics in the future unit time period;
[0011] For each future unit period, the corresponding estimated power consumption value of the park is predicted based on the historical power consumption of the park in the most recent M historical unit periods, wherein the historical power consumption of the park refers to the power consumption of the park in the historical unit period, and the estimated power consumption value of the park refers to the estimated power consumption value of the park in the future unit period;
[0012] For each future unit period, calculate the difference between the corresponding estimated photovoltaic power generation value and the corresponding estimated power consumption value of the park to obtain the corresponding estimated power consumption difference;
[0013] Creating a back propagation BP neural network including an input layer, a hidden layer and an output layer, wherein the input layer includes N input nodes corresponding one-to-one to the latest N future unit time periods, the hidden layer includes N first hidden nodes and N second hidden nodes corresponding one-to-one to the latest N future unit time periods, respectively, and the output layer includes N output nodes corresponding one-to-one to the latest N future unit time periods;
[0014] The estimated difference of the power in each future unit time period is introduced as an input vector into the BP neural network to obtain a new BP neural network that has completed training. The training process of the BP neural network includes the following steps S61 to S63:
[0015] S61. Calculate the output vector according to the following formula:
[0016]
[0017] In the formula, n is a positive integer less than or equal to N, y is n represents the output value of the nth output node among the N output nodes, and the output vector is represented as (y1, y2, ..., y n ,…y N ), x n represents the input value of the nth input node among the N input nodes, z n represents the estimated value of the park electricity consumption in the nth future unit period among the latest N future unit periods, p n,1 represents the node value of the nth first hidden node among the N first hidden nodes, p n,2 represents the node value of the nth second hidden node among the N second hidden nodes, μ n represents the inverter efficiency of supplying power to the park through the energy storage battery in the nearest nth future unit period, η n,1 represents the inverter efficiency of the distributed photovoltaic system for supplying power to the park in the latest nth future unit period, η n,2 represents the inverter efficiency of the distributed photovoltaic system supplying power to the grid in the latest n-th future unit period, c n represents the known electricity price in the nearest nth future unit period, λ n represents the rectification efficiency of charging the energy storage battery with the mains during the nth future unit period;
[0018] S62. Determine whether the sum of the elements of the output vector is less than or equal to the preset target value. If so, stop training to obtain a new BP neural network that has completed training. Otherwise, execute step S63.
[0019] S63. Adjust the node values of the N first hidden nodes and the N second hidden nodes based on the gradient descent method of the BP neural network, and then return to execute step S61, wherein the adjustment constraint condition of the node value of the N first hidden nodes includes a natural number with a value less than 3, and the adjustment constraint condition of the node value of the N second hidden nodes includes: when p n,1 When the value is 0, 0≤p n,2 ≤p n,0 -p min and When p n,1 When the value is 1, 0≤p n,2 ≤p max -p n,0 And pn,2 ≤x n +z n , and when p n,1 When the value is 2, 0≤p n,2 ≤p max -p n,0 , where p min Indicates the lower limit of the remaining power of the energy storage battery, p max Indicates the upper limit of the remaining power of the energy storage battery, p n,0 represents the remaining capacity of the energy storage battery at the beginning of the nth future unit period, and when n=1, p n,0 is equal to the current remaining power, and when n≥1 and p n-1,1 When the value is 0, p n,0 =p n-1,0 -p n-1,2 , and also in n ≥ 1 and p n-1,1 When the value is 1 or 2, p n,0 =p n-1,0 +p n-1,2 , p n-1,1 represents the node value of the n-1th first hidden node among the N first hidden nodes, p n-1,0 represents the remaining power of the energy storage battery at the start time of the n-1th future unit time period among the latest N future unit time periods, p n-1,2 represents a node value of the n-1th second hidden node among the N second hidden nodes;
[0020] Extract the node value p of the first hidden node among the N first hidden nodes from the new BP neural network 1,1 And the node value p of the first second hidden node among the N second hidden nodes 1,2 ;
[0021] In the next unit period, according to the node value p of the first hidden node 1,1 and the node value p of the first second hidden node 1,2 , the park electricity consumption is controlled as follows:
[0022] When p 1,1 =0 and When the energy storage battery and the distributed photovoltaic system are used to supply power to the park, the energy storage battery is discharged and the discharge amount is p 1,2 , the remaining required power consumption of the park in the next unit period z′1-p 1,2×μ′1 is provided by the distributed photovoltaics, and the remaining power generation of the distributed photovoltaics in the next unit time period is inverted and supplied to the power grid, wherein x′1 represents the difference between the power generation of the distributed photovoltaics in the next unit time period and the required power consumption of the park in the next unit time period, z′1 represents the required power consumption of the park in the next unit time period, μ′1 represents the inverter efficiency of the energy storage battery in the next unit time period to supply power to the park, η′ 1,1 Indicates the inverter efficiency of supplying power to the park through the distributed photovoltaic in the next unit time period;
[0023] When p 1,1 =0 and When the energy storage battery, the distributed photovoltaic power generation and the city power are used to supply power to the park, the energy storage battery is discharged and the discharge amount is p 1,2 , the remaining required power consumption of the park in the next unit period z′1-p 1,2 ×μ′1 is provided by the distributed photovoltaic power generation and the city power supply;
[0024] When p 1,1 =1 and When the distributed photovoltaic system is used to supply power to the park, the energy storage battery is charged by the distributed photovoltaic system and the charging amount is p 1,2 , and the required power consumption z′1 of the park in the next unit time period is also provided by the distributed photovoltaic, and the remaining power generation of the distributed photovoltaic in the next unit time period is inverted and supplied to the power grid;
[0025] When p 1,1 =1 and When the distributed photovoltaic and city electricity are used to supply power to the park, the energy storage battery is charged by the distributed photovoltaic and the charging amount is p 1,2 , and the required power consumption z′1 of the park in the next unit time period is provided by the distributed photovoltaic power generation and the city power supply;
[0026] When p 1,1 =2 and When the distributed photovoltaic system is used to supply power to the park, the power consumption z′1 required by the park in the next unit period is provided by the distributed photovoltaic system, and the remaining power generation of the distributed photovoltaic system in the next unit period is inverted and supplied to the power grid, and the energy storage battery is charged by the city power and the charging amount is p 1,2 ;
[0027] When p 1,1 =2 and When the distributed photovoltaic and the city power are used to supply power to the park, the power consumption z′1 required by the park in the next unit time period is provided by the distributed photovoltaic and the city power, and the energy storage battery is charged by the city power and the charging amount is p 1,2 .
[0028] Based on the above invention content, a new solution for controlling power consumption in a park based on distributed photovoltaics and energy storage batteries is provided, that is, at the end of each unit time period, the estimated value of photovoltaic power generation, the estimated value of power consumption in the park and the estimated difference between the two in each future unit time period are first predicted, and then a BP neural network including an input layer, a hidden layer and an output layer is created, and the estimated difference in power consumption is imported into the BP neural network as an input vector, so as to obtain a new BP neural network that can achieve the desired power consumption cost in the park while shaving the peak and filling the valley and completes the training, and finally, in the next unit time period, the power consumption in the park is controlled according to the corresponding hidden node values extracted from the new BP neural network, so that the charging and discharging timing and the charging and discharging amount of the energy storage battery can be optimized while shaving the peak and filling the valley, by taking into account the influence of different electricity prices, photovoltaic inverter efficiency, battery inverter efficiency and charging rectification efficiency in different time periods on the power consumption cost of the park, so that the power consumption cost of the park can reach the expected level, which is convenient for practical application and promotion.
[0029] In a possible design, the weather forecast data and the historical weather data respectively include the duration to sunrise of the day, the duration to sunset of the day and the cloud cover, as well as perceived temperature, visibility, precipitation probability, wind level, humidity, wind speed and / or dew point temperature, wherein the day refers to the day corresponding to the unit time period.
[0030] In a possible design, for each future unit period in the most recent N future unit periods, the corresponding estimated photovoltaic power generation value is predicted based on the historical weather data and historical photovoltaic power generation of the most recent M historical unit periods and the corresponding weather forecast data, including:
[0031] For each future unit period in the most recent N future unit periods, extract the historical weather data and historical photovoltaic power generation of the most recent M historical unit periods to obtain the corresponding historical weather data and historical photovoltaic power generation of the same unit period in multiple historical days, where M represents a positive integer greater than or equal to 3, and the historical photovoltaic power generation refers to the power generation of distributed photovoltaics in the historical unit period;
[0032] For each future unit period, the historical weather data of the corresponding unit periods in the same period of multiple historical days are used as input items, and the historical photovoltaic power generation of the corresponding unit periods in the same period of multiple historical days is used as output items, and the artificial intelligence model based on support vector machine, K nearest neighbor method, stochastic gradient descent method, multivariate linear regression, multilayer perceptron, decision tree, back propagation neural network or radial basis function network is calibrated and verified to obtain the corresponding photovoltaic power generation prediction model;
[0033] For each future unit time period, the corresponding weather forecast data is used as a new input item and input into the corresponding photovoltaic power generation prediction model, and the corresponding photovoltaic power generation estimate is output, wherein the photovoltaic power generation estimate refers to the estimated power generation value of the distributed photovoltaic in the future unit time period.
[0034] In a possible design, for each future unit period, the corresponding estimated value of the park power consumption is predicted based on the historical park power consumption of the most recent M historical unit periods, including:
[0035] For each future unit period, extract the historical park power consumption of the corresponding multiple historical unit periods in the same period from the historical park power consumption of the most recent M historical unit periods, wherein the historical park power consumption refers to the power consumption of the park in the historical unit period, and the historical unit period in the same period is the historical day unit period or the historical week unit period;
[0036] For each future unit period, the corresponding historical park electricity consumption average is calculated based on the historical park electricity consumption of the corresponding multiple historical unit periods in the same period;
[0037] For each future unit time period, the corresponding historical average of the park's electricity consumption is used as the corresponding estimated value of the park's electricity consumption.
[0038] In one possible design, the method further includes:
[0039] During the training process of the BP neural network, if the training is stopped before the node value adjustment times of the N first hidden nodes and the N second hidden nodes do not reach a preset first threshold, the BP neural network is retrained after reducing the preset target value.
[0040] In one possible design, the method further includes:
[0041] During the training process of the BP neural network, if the training is not stopped after the number of node value adjustments of the N first hidden nodes and the N second hidden nodes reaches a preset second number threshold, the BP neural network is retrained after increasing the preset target value, wherein the second number threshold is greater than the first number threshold.
[0042] In one possible design, the latest N future unit time periods are the latest future 24 hours, the latest future 48 hours, or the latest future 72 hours.
[0043] In the second aspect, a park power control device containing distributed photovoltaic and energy storage batteries is provided, including a data acquisition module, a power generation prediction module, a power consumption prediction module, a power calculation module, a network creation module, a network training module, a node value extraction module and a power control module;
[0044] The data acquisition module is used to query and acquire the weather forecast data for the latest N future unit periods through the Internet at the end of the current unit period, and to acquire the current remaining power of the energy storage battery, where N represents a positive integer greater than or equal to 3;
[0045] The power generation prediction module is communicatively connected to the data acquisition module, and is used to predict the corresponding estimated photovoltaic power generation value for each future unit period in the most recent N future unit periods, based on the historical weather data and historical photovoltaic power generation of the most recent M historical unit periods and the corresponding weather forecast data, wherein M represents a positive integer greater than or equal to 3, the historical photovoltaic power generation refers to the power generation of the distributed photovoltaic in the historical unit period, and the estimated photovoltaic power generation value refers to the estimated power generation value of the distributed photovoltaic in the future unit period;
[0046] The power consumption prediction module is used to predict the corresponding estimated power consumption of the park according to the historical power consumption of the park in the most recent M historical unit time periods for each future unit time period, wherein the historical power consumption of the park refers to the power consumption of the park in the historical unit time period, and the estimated power consumption of the park refers to the estimated power consumption of the park in the future unit time period;
[0047] The power calculation module is respectively connected to the power generation prediction module and the power consumption prediction module for calculating the difference between the corresponding photovoltaic power generation estimate and the corresponding park power consumption estimate for each future unit period to obtain the corresponding power estimation difference;
[0048] The network creation module is used to create a back propagation BP neural network including an input layer, a hidden layer and an output layer, wherein the input layer includes N input nodes corresponding to the latest N future unit time periods one by one, the hidden layer includes N first hidden nodes and N second hidden nodes corresponding to the latest N future unit time periods one by one, and the output layer includes N output nodes corresponding to the latest N future unit time periods one by one;
[0049] The network training module is respectively connected to the power calculation module and the network creation module for communication, and is used to import the power estimation difference of each future unit time period as an input vector into the BP neural network to obtain a new BP neural network that has completed training, wherein the network training module includes an output vector calculation unit, a judgment unit, and a node value adjustment unit;
[0050] The output vector calculation unit is used to calculate the output vector according to the following formula:
[0051]
[0052] In the formula, n is a positive integer less than or equal to N, y is n represents the output value of the nth output node among the N output nodes, and the output vector is represented as (y1, y2, ..., y n ,…y N ), x n represents the input value of the nth input node among the N input nodes, z n represents the estimated value of the park electricity consumption in the nth future unit period among the latest N future unit periods, p n,1 represents the node value of the nth first hidden node among the N first hidden nodes, p n,2 represents the node value of the nth second hidden node among the N second hidden nodes, μ n represents the inverter efficiency of supplying power to the park through the energy storage battery in the nearest nth future unit period, η n,1 represents the inverter efficiency of the distributed photovoltaic system for supplying power to the park in the latest nth future unit period, η n,2 represents the inverter efficiency of the distributed photovoltaic system supplying power to the grid in the latest n-th future unit period, c n represents the known electricity price in the nearest nth future unit period, λ n represents the rectification efficiency of charging the energy storage battery with the mains during the nth future unit period;
[0053] The judging unit is respectively connected to the output vector calculating unit and the node value adjusting unit for judging whether the sum of the elements of the output vector is less than or equal to a preset target value, and if so, the training is stopped to obtain a new BP neural network that has completed the training, otherwise, the node value adjusting unit is started;
[0054] The node value adjustment unit is communicatively connected to the output vector calculation unit, and is used to adjust the node values of the N first hidden nodes and the N second hidden nodes based on the gradient descent method of the BP neural network, and then return to start the output vector calculation unit, wherein the node value adjustment constraint condition of the N first hidden nodes includes a natural number with a value less than 3, and the node value adjustment constraint condition of the N second hidden nodes includes: when p n,1 When the value is 0, 0≤p n,2 ≤p n,0 -p min and When p n,1 When the value is 1, 0≤p n,2 ≤p max -p n,0 And p n,2 ≤x n +z n , and when p n,1 When the value is 2, 0≤p n,2 ≤p max -p n,0 , where p min Indicates the lower limit of the remaining power of the energy storage battery, p max Indicates the upper limit of the remaining power of the energy storage battery, p n,0 represents the remaining capacity of the energy storage battery at the beginning of the nth future unit period, and when n=1, p n,0 is equal to the current remaining power, and when n≥1 and p n-1,1 When the value is 0, p n,0 =p n-1,0 -p n-1,2 , and also in n ≥ 1 and p n-1,1 When the value is 1 or 2, p n,0 =p n-1,0 +p n-1,2 , p n-1,1 represents the node value of the n-1th first hidden node among the N first hidden nodes, p n-1,0 represents the remaining power of the energy storage battery at the start time of the n-1th future unit time period among the latest N future unit time periods, p n-1,2 represents a node value of the n-1th second hidden node among the N second hidden nodes;
[0055] The node value extraction module is communicatively connected to the network training module and is used to extract the node value p of the first hidden node among the N first hidden nodes from the new BP neural network. 1,1 And the node value p of the first second hidden node among the N second hidden nodes 1,2 ;
[0056] The power consumption control module is communicatively connected to the node value extraction module, and is used to extract the node value p of the first hidden node according to the node value p of the first hidden node in the next unit time period. 1,1 and the node value p of the first second hidden node 1,2 , the park electricity consumption is controlled as follows:
[0057] When p 1,1 =0 and When the energy storage battery and the distributed photovoltaic system are used to supply power to the park, the energy storage battery is discharged and the discharge amount is p 1,2 , the remaining required power consumption of the park in the next unit period z′1-p 1,2 ×μ′1 is provided by the distributed photovoltaics, and the remaining power generation of the distributed photovoltaics in the next unit time period is inverted and supplied to the power grid, wherein x′1 represents the difference between the power generation of the distributed photovoltaics in the next unit time period and the required power consumption of the park in the next unit time period, z′1 represents the required power consumption of the park in the next unit time period, μ′1 represents the inverter efficiency of the energy storage battery in the next unit time period to supply power to the park, η′ 1,1 Indicates the inverter efficiency of supplying power to the park through the distributed photovoltaic in the next unit time period;
[0058] When p 1,1 =0 and When the energy storage battery, the distributed photovoltaic power generation and the city power are used to supply power to the park, the energy storage battery is discharged and the discharge amount is p 1,2 , the remaining required power consumption of the park in the next unit period z′1-p 1,2 ×μ′1 is provided by the distributed photovoltaic power generation and the city power supply;
[0059] When p 1,1 =1 and When the distributed photovoltaic system is used to supply power to the park, the energy storage battery is charged by the distributed photovoltaic system and the charging amount is p 1,2 , and the required power consumption z′1 of the park in the next unit time period is also provided by the distributed photovoltaic, and the remaining power generation of the distributed photovoltaic in the next unit time period is inverted and supplied to the power grid;
[0060] When p 1,1 =1 and When the distributed photovoltaic and city electricity are used to supply power to the park, the energy storage battery is charged by the distributed photovoltaic and the charging amount is p 1,2 , and the required power consumption z′1 of the park in the next unit time period is provided by the distributed photovoltaic power generation and the city power supply;
[0061] When p 1,1 =2 and When the distributed photovoltaic system is used to supply power to the park, the power consumption z′1 required by the park in the next unit period is provided by the distributed photovoltaic system, and the remaining power generation of the distributed photovoltaic system in the next unit period is inverted and supplied to the power grid, and the energy storage battery is charged by the city power and the charging amount is p 1,2 ;
[0062] When p 1,1 =2 and When the distributed photovoltaic and the city power are used to supply power to the park, the power consumption z′1 required by the park in the next unit time period is provided by the distributed photovoltaic and the city power, and the energy storage battery is charged by the city power and the charging amount is p 1,2 .
[0063] In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the campus electricity control method as described in the first aspect or any possible design of the first aspect.
[0064] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed on a computer, the campus electricity control method as described in the first aspect or any possible design of the first aspect is executed.
[0065] In a fifth aspect, the present invention provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the campus electricity control method as described in the first aspect or any possible design of the first aspect.
[0066] Beneficial effects of the above scheme:
[0067] (1) The present invention creatively provides a new scheme for controlling the power consumption of a park based on distributed photovoltaics and energy storage batteries, that is, at the end of each unit time period, the estimated value of photovoltaic power generation, the estimated value of the power consumption of the park and the estimated difference between the two are predicted for each future unit time period, and then a BP neural network including an input layer, a hidden layer and an output layer is created, and the estimated difference in power consumption is imported into the BP neural network as an input vector, so as to obtain a new BP neural network that can achieve the desired power consumption cost of the park while shaving the peak and filling the valley, and has completed training. Finally, in the next unit time period, the power consumption of the park is controlled according to the corresponding hidden node values extracted from the new BP neural network. In this way, while shaving the peak and filling the valley, the charging and discharging timing and charging and discharging amount of the energy storage battery can be optimized by taking into account the influence of different electricity prices, photovoltaic inverter efficiency, battery inverter efficiency and charging rectification efficiency in different time periods on the power consumption cost of the park, so that the power consumption cost of the park can reach the desired level, which is convenient for practical application and promotion. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0069] Figure 1 A flow chart of a method for controlling electricity consumption in a park containing distributed photovoltaics and energy storage batteries provided in an embodiment of the present application.
[0070] Figure 2 A schematic diagram of the structure of the BP neural network provided in an embodiment of the present application.
[0071] Figure 3 A schematic diagram of the structure of a campus power control device containing distributed photovoltaics and energy storage batteries provided in an embodiment of the present application.
[0072] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.
[0074] It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another object. For example, a first object can be referred to as a second object, and similarly, a second object can be referred to as a first object without departing from the scope of the exemplary embodiments of the present invention.
[0075] It should be understood that the term "and / or" that may appear in this article is merely a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can indicate three situations: A exists alone, B exists alone, or A and B exist at the same time. For another example, A, B and / or C can indicate the existence of any one of A, B and C or any combination of them. The term " / and" that may appear in this article describes another type of association object relationship, indicating that there may be two relationships. For example, A / and B can indicate two situations: A exists alone or A and B exist at the same time. In addition, the character " / " that may appear in this article generally indicates that the previous and next associated objects are in an "or" relationship.
[0076] Example:
[0077] like Figure 1 As shown, the power control method for a park including distributed photovoltaic and energy storage batteries provided in the first aspect of this embodiment can be, but is not limited to, executed by a control module with certain computing resources, such as a controller in a park power distribution cabinet or other electronic device. Figure 1 As shown, the park electricity control method may include but is not limited to the following steps S1 to S8.
[0078] S1. At the end of the current unit period, the weather forecast data for the next N future unit periods is obtained through online query, as well as the current remaining power of the energy storage battery, where N represents a positive integer greater than or equal to 3.
[0079] In step S1, the unit time period of the current unit time period and the unit time period of the latest N future unit time periods depends on the forecast period accuracy of the weather forecast data; considering that the current meteorological system can perform hourly weather forecasts, the unit time period can preferably be an hour, that is, the latest N future unit time periods can be but not limited to the latest future 24 hours, the latest future 48 hours, or the latest future 72 hours, etc. In addition, the specific query method for obtaining the weather forecast data is the existing conventional method, and the existing battery power monitoring circuit can be used to obtain the current remaining power of the energy storage battery in real time.
[0080] In step S1, preferably, the weather forecast data includes but is not limited to the duration to sunrise of the day, the duration to sunset of the day and cloud cover, as well as perceived temperature, visibility, precipitation probability, wind level, humidity, wind speed and / or dew point temperature, etc., wherein the day refers to the day corresponding to the unit time period (for example, if a future unit time period is 7:00-8:00 p.m. tomorrow, then the day is tomorrow). Specifically, the duration until the sunrise time of the current day can be conventionally calculated based on the sunrise time of the current day and the midpoint time of the time period corresponding to the unit time period (for example, if a future unit time period is 7:00-8:00 p.m. tomorrow, and the sunrise time of the current day is 6:33 a.m., then the duration until the sunrise time of the current day is 19:30-6:33=12 hours and 57 minutes), and the duration until the sunset time of the current day can be conventionally calculated based on the sunset time of the current day and the midpoint time of the time period corresponding to the unit time period (for example, if a future unit time period is 7:00-8:00 p.m. tomorrow, and the sunset time of the current day is 7:22 p.m., then the duration until the sunset time of the current day is 19:30-19:22=8 minutes), and the cloud cover, the perceived temperature, the visibility, the precipitation probability, the wind level, the humidity, the wind speed and the dew point temperature are all existing common meteorological parameters. Since the duration until the sunrise time of the same day and the duration until the sunset time of the same day will limit the relative position of the corresponding unit time period and the daytime time period of the same day (i.e., from the sunrise time of the same day to the sunset time of the same day), they are closely related to the sunshine intensity of the corresponding unit time period just like the cloud amount. Therefore, the duration until the sunrise time of the same day, the duration until the sunset time of the same day and the cloud amount are required data for predicting photovoltaic power generation, while the perceived temperature, the visibility, the probability of precipitation, the wind level, the humidity, the wind speed and the dew point temperature can be used as optional data for predicting photovoltaic power generation due to their low correlation.
[0081] S2. For each of the most recent N future unit time periods, the corresponding estimated photovoltaic power generation value is predicted based on the historical weather data and historical photovoltaic power generation of the most recent M historical unit time periods and the corresponding weather forecast data, wherein M represents a positive integer greater than or equal to 3, the historical photovoltaic power generation refers to the power generation of distributed photovoltaics in the historical unit time period, and the estimated photovoltaic power generation value refers to the estimated power generation value of the distributed photovoltaics in the future unit time period.
[0082] In step S2, if the unit time period is an hour, the most recent M historical unit time periods are also specific but not limited to all historical hourly time periods in the most recent month. The historical weather data includes but is not limited to the duration from sunrise to sunset on the same day, the cloud cover, the perceived temperature, the visibility, the precipitation probability, the wind level, the humidity, the wind speed and / or the dew point temperature, etc. The historical weather data can also be obtained through conventional online query at the end of the corresponding unit time period. In addition, the historical photovoltaic power generation can be obtained by conventional power generation statistics at the end of the corresponding unit time period.
[0083] In step S2, in order to accurately predict the estimated value of photovoltaic power generation in each future unit time period, preferably, for each future unit time period in the most recent N future unit time periods, the corresponding estimated value of photovoltaic power generation is predicted based on the historical weather data and historical photovoltaic power generation of the most recent M historical unit time periods and the corresponding weather forecast data, including but not limited to the following steps S21 to S23.
[0084] S21. For each of the most recent N future unit time periods, the historical weather data and historical photovoltaic power generation of the corresponding unit time periods in the same period of multiple historical days are extracted from the historical weather data and historical photovoltaic power generation of the most recent M historical unit time periods, wherein M represents a positive integer greater than or equal to 3, and the historical photovoltaic power generation refers to the power generation of distributed photovoltaics in the historical unit time period.
[0085] In the step S21, for example, if a future unit time period is 7:00-8:00 pm tomorrow, the unit time periods in the same period of the multiple historical days may include, but are not limited to, 7:00-8:00 pm yesterday and 7:00-8:00 pm the day before yesterday.
[0086] S22. For each future unit time period, the historical weather data of the corresponding unit time periods in the same period of multiple historical days are used as input items, and the historical photovoltaic power generation of the corresponding unit time periods in the same period of multiple historical days is used as output items, and artificial intelligence models based on such as support vector machines, K nearest neighbor method, stochastic gradient descent method, multivariate linear regression, multilayer perceptron, decision tree, back propagation neural network or radial basis function network are calibrated and verified to obtain the corresponding photovoltaic power generation prediction model.
[0087] In step S22, the support vector machine, the K nearest neighbor method, the stochastic gradient descent method, the multivariate linear regression, the multilayer perceptron, the decision tree, the back propagation neural network and the radial basis function network are all common solutions in existing artificial intelligence methods. The specific process of the calibration verification modeling includes the calibration process and the verification process of the model, that is, first by comparing the model simulation results with the measured data, and then adjusting the model parameters according to the comparison results, so that the simulation results are consistent with the actual process, so the photovoltaic power generation prediction model for each future unit time period can be obtained through the conventional calibration verification modeling method.
[0088] S23. For each future unit time period, the corresponding weather forecast data is used as a new input item, input into the corresponding photovoltaic power generation prediction model, and the corresponding photovoltaic power generation estimate is output, wherein the photovoltaic power generation estimate refers to the estimated power generation value of the distributed photovoltaic in the future unit time period.
[0089] S3. For each future unit time period, the corresponding estimated value of the park electricity consumption is predicted based on the historical park electricity consumption in the most recent M historical unit time periods, wherein the historical park electricity consumption refers to the park's electricity consumption in the historical unit time period, and the estimated value of the park electricity consumption refers to the estimated value of the park's electricity consumption in the future unit time period.
[0090] In step S3, the historical park electricity consumption can be obtained by conventionally collecting electricity meters. Specifically, for each future unit period, the corresponding park electricity consumption estimate is predicted based on the historical park electricity consumption of the most recent M historical unit periods, including but not limited to the following steps S31 to S33.
[0091] S31. For each future unit time period, the historical park electricity consumption of the corresponding multiple historical unit time periods is extracted from the historical park electricity consumption of the most recent M historical unit time periods, wherein the historical park electricity consumption refers to the electricity consumption of the park in the historical unit time period, and the historical unit time period is the historical day-day unit time period or the historical week-day unit time period.
[0092] In step S31, for example, if a future unit time period is 7:00-8:00 p.m. tomorrow, and tomorrow is Monday, the unit time period in the same period of the historical week may be, but is not limited to, 7:00-8:00 p.m. last Monday.
[0093] S32. For each future unit time period, the corresponding historical park electricity consumption average is calculated based on the historical park electricity consumption of the corresponding multiple historical unit time periods in the same period.
[0094] S33. For each future unit time period, the corresponding historical average of the park's electricity consumption is used as the corresponding estimated value of the park's electricity consumption.
[0095] S4. For each future unit time period, calculate the difference between the corresponding estimated photovoltaic power generation value and the corresponding estimated power consumption value of the park to obtain the corresponding estimated power consumption difference.
[0096] S5. Create a back-propagation BP neural network comprising an input layer, a hidden layer and an output layer, wherein the input layer comprises N input nodes corresponding one-to-one to the most recent N future unit time periods, the hidden layer comprises N first hidden nodes and N second hidden nodes corresponding one-to-one to the most recent N future unit time periods respectively, and the output layer comprises N output nodes corresponding one-to-one to the most recent N future unit time periods.
[0097] In the step S5, since the BP (Back Propagation) neural network is a concept proposed by scientists led by Rumelhart and McClelland in 1986, it is a multi-layer feedforward neural network trained according to the error back propagation algorithm (i.e., taking the square of the error as the objective function and using the gradient descent method to calculate the minimum value of the objective function), and is one of the most widely used neural network models; and the basic structure of the BP neural network is to add one or more layers of neurons (these neurons are called hidden nodes, which have no direct connection with the outside world, but the change of their state can affect the relationship between the input and output) between the input layer (which can have several input nodes) and the output layer (which can have several output nodes), and obtain a hidden layer with several hidden nodes, so the network structure of the BP neural network created can be as follows Figure 2 As shown, the node value of the first hidden node can be used to represent the charging and discharging mode of the energy storage battery in the corresponding unit time period, for example: 0 represents the energy storage battery discharging to power the park, 1 represents the energy storage battery being charged by distributed photovoltaics, and 2 represents the energy storage battery being charged by city power; and the node value of the second hidden node can also be used to represent the charging and discharging amount of the energy storage battery in the corresponding unit time period. In addition, the node connection relationship between the N input nodes, the N first hidden nodes, the N second hidden nodes, and the N output nodes is a conventional feature in the existing BP neural network.
[0098] S6. Import the estimated difference of the power in each future unit time period as an input vector into the BP neural network to obtain a new BP neural network that has completed training.
[0099] In step S6, the input vector is used as the input data required for training, which can be specifically expressed as (x1, x2, ... x n,…,x N ), where n is a positive integer less than or equal to N, and x n Indicates the input value of the nth input node among the N input nodes. The training process of the BP neural network includes but is not limited to the following steps S61 to S63.
[0100] S61. Calculate the output vector according to the following formula:
[0101]
[0102] In the formula, n is a positive integer less than or equal to N, y is n represents the output value of the nth output node among the N output nodes, and the output vector is represented as (y1, y2, ..., y n ,…y N ), x n represents the input value of the nth input node among the N input nodes, z n represents the estimated value of the park electricity consumption in the nth future unit period among the latest N future unit periods, p n,1 represents the node value of the nth first hidden node among the N first hidden nodes, p n,2 represents the node value of the nth second hidden node among the N second hidden nodes, μ n represents the inverter efficiency of supplying power to the park through the energy storage battery in the nearest nth future unit period, η n,1 represents the inverter efficiency of the distributed photovoltaic system for supplying power to the park in the latest nth future unit period, η n,2 represents the inverter efficiency of the distributed photovoltaic system supplying power to the grid in the latest n-th future unit period, c n represents the known electricity price in the nearest nth future unit period, λ n It represents the rectification efficiency of charging the energy storage battery with the mains during the most recent n-th future unit period.
[0103] In step S61, p n,1 and p n,2 The initial value of can be randomly generated according to the corresponding constraint conditions (see the subsequent step S63). The aforementioned inverter efficiency can be a fixed value known in advance, or a dynamic value that is positively correlated with the inverter input power (this positive correlation can be a linear relationship or a nonlinear relationship, and can be conventionally fitted in advance); the aforementioned rectifier efficiency can also be a fixed value known in advance, or a dynamic value that is positively correlated with the rectifier input power (this positive correlation can also be a linear relationship or a nonlinear relationship, and can be conventionally fitted in advance). It can be seen from the aforementioned calculation formula that y nReflects the estimated electricity cost of the park in the corresponding unit time period.
[0104] S62. Determine whether the sum of the elements of the output vector is less than or equal to a preset target value. If so, stop training to obtain a new BP neural network that has completed training. Otherwise, execute step S63.
[0105] In step S62, the preset target value represents the expected cost of electricity consumption in the park. Once the expectation is reached, it means that the task of optimizing the power consumption control scheme of the park is completed and the training can be stopped.
[0106] S63. Adjust the node values of the N first hidden nodes and the N second hidden nodes based on the gradient descent method of the BP neural network, and then return to execute step S61, wherein the adjustment constraint condition of the node value of the N first hidden nodes includes a natural number with a value less than 3, and the adjustment constraint condition of the node value of the N second hidden nodes includes: when p n,1 When the value is 0, 0≤p n,2 ≤p n,0 -p min and When p n,1 When the value is 1, 0≤p n,2 ≤p max -p n,0 And p n,2 ≤x n +z n , and when p n,1 When the value is 2, 0≤p n,2 ≤p max -p n,0 , where p min Indicates the lower limit of the remaining power of the energy storage battery, p max Indicates the upper limit of the remaining power of the energy storage battery, p n,0 represents the remaining capacity of the energy storage battery at the beginning of the nth future unit period, and when n=1, p n,0 is equal to the current remaining power, and when n≥1 and p n-1,1 When the value is 0, p n,0 =p n-1,0 -p n-1,2 , and also in n ≥ 1 and p n-1,1 When the value is 1 or 2, p n,0 =p n-1,0 +p n-1,2 , p n-1,1 represents the node value of the n-1th first hidden node among the N first hidden nodes, p n-1,0represents the remaining power of the energy storage battery at the start time of the n-1th future unit time period among the latest N future unit time periods, p n-1,2 Represents the node value of the n-1th second hidden node among the N second hidden nodes.
[0107] In step S63, the existing principle of adjustment based on the gradient descent method of the BP neural network is: transfer the error (i.e., the error between the sum of the elements of the output vector and the preset target value) into the back propagation process; the error back propagation is to propagate the output error through the hidden layer to the input layer layer by layer, and distribute the error to all nodes of each layer, and use the error signal obtained from each layer as the basis for adjusting the value of each node; by adjusting the connection strength between the input node and the hidden node and the connection strength between the hidden node and the output node and the threshold, the error is reduced along the gradient direction; finally, after repeated learning and training, the network parameters corresponding to the minimum error can be determined. In addition, preferably, during the training process of the BP neural network, if the training is stopped before the number of node value adjustments of the N first hidden nodes and the N second hidden nodes reaches a preset first number threshold, then after reducing the preset target value, the BP neural network is retrained to explore a park electricity control scheme that makes the park electricity cost lower; during the training process of the BP neural network, if the training is not stopped after the number of node value adjustments of the N first hidden nodes and the N second hidden nodes reaches a preset second number threshold, then after increasing the preset target value, the BP neural network is retrained to be able to explore a park electricity control scheme that achieves a certain park electricity cost expectation, wherein the second number threshold is greater than the first number threshold.
[0108] S7. Extract the node value p of the first hidden node among the N first hidden nodes from the new BP neural network. 1,1 And the node value p of the first second hidden node among the N second hidden nodes 1,2 .
[0109] S8. In the next unit period, according to the node value p of the first hidden node 1,1 and the node value p of the first second hidden node 1,2 , the power consumption of the park is controlled according to the following methods (A) to (F).
[0110] (A) When p 1,1 =0 and When the energy storage battery and the distributed photovoltaic system are used to supply power to the park, the energy storage battery is discharged and the discharge amount is p 1,2 , the remaining required power consumption of the park in the next unit period z′1-p 1,2×μ′1 is provided by the distributed photovoltaics, and the remaining power generation of the distributed photovoltaics in the next unit time period is inverted and supplied to the power grid, wherein x′1 represents the difference between the power generation of the distributed photovoltaics in the next unit time period and the required power consumption of the park in the next unit time period, z′1 represents the required power consumption of the park in the next unit time period, μ′1 represents the inverter efficiency of the energy storage battery in the next unit time period to supply power to the park, η′ 1,1 It indicates the inverter efficiency of the distributed photovoltaic system to supply power to the park in the next unit period. The situation shown in (A) above is that the photovoltaic power generation is relatively abundant, the energy storage battery has sufficient power and the electricity price is high. Therefore, the surplus power can be connected to the grid while shaving the peak and filling the valley, which can reduce the electricity cost.
[0111] (B) When p 1,1 =0 and When the energy storage battery, the distributed photovoltaic power generation and the city power are used to supply power to the park, the energy storage battery is discharged and the discharge amount is p 1,2 , the remaining required power consumption of the park in the next unit period z′1-p 1,2 ×μ′1 is provided by the distributed photovoltaic and the city electricity. The situation shown in (B) above is that the photovoltaic power generation is relatively insufficient, the energy storage battery has sufficient power and the electricity price is high. Therefore, while reducing the peak and filling the valley, the city electricity supply is reduced to the greatest extent, which can also reduce the electricity cost.
[0112] (C) When p 1,1 =1 and When the distributed photovoltaic system is used to supply power to the park, the energy storage battery is charged by the distributed photovoltaic system and the charging amount is p 1,2 , and the required power consumption z′1 of the park in the next unit time period is also provided by the distributed photovoltaic, and the surplus power generation of the distributed photovoltaic in the next unit time period is inverted and supplied to the grid. The situation shown in (C) above is that the photovoltaic power generation is relatively abundant, the energy storage battery power is insufficient and the electricity price is high. Therefore, while shaving the peak and filling the valley, the surplus power is connected to the grid and the energy storage battery is charged, which can reduce the electricity cost.
[0113] (D) When p 1,1 =1 and When the distributed photovoltaic and city electricity are used to supply power to the park, the energy storage battery is charged by the distributed photovoltaic and the charging amount is p 1,2, and the required power consumption z′1 of the park in the next unit time period is provided by the distributed photovoltaic and the city power. The situation shown in (D) above is that the photovoltaic power generation is relatively insufficient, the energy storage battery is insufficient and the electricity price is high. Therefore, while reducing the peak and filling the valley, the city power supply is reduced to the greatest extent, which can also reduce the electricity cost.
[0114] (E) When p 1,1 =2 and When the distributed photovoltaic system is used to supply power to the park, the power consumption z′1 required by the park in the next unit period is provided by the distributed photovoltaic system, and the remaining power generation of the distributed photovoltaic system in the next unit period is inverted and supplied to the power grid, and the energy storage battery is charged by the city power and the charging amount is p 1,2 The situation shown in (E) above is that the photovoltaic power generation is relatively abundant, the energy storage battery is insufficient and the electricity price is relatively cheap. Therefore, charging the energy storage battery with municipal electricity while shaving the peak and filling the valley can reduce the electricity cost.
[0115] (F) When p 1,1 =2 and When the distributed photovoltaic and the city power are used to supply power to the park, the power consumption z′1 required by the park in the next unit time period is provided by the distributed photovoltaic and the city power, and the energy storage battery is charged by the city power and the charging amount is p 1,2 The situation shown in (F) above is that the photovoltaic power generation is relatively insufficient, the energy storage battery is insufficient and the electricity price is low. Therefore, charging the energy storage battery while shaving the peak and filling the valley can also reduce the electricity cost.
[0116] Therefore, based on the park electricity control method described in the aforementioned steps S1 to S8, a new solution for park electricity control based on distributed photovoltaics and energy storage batteries is provided, that is, at the end of each unit time period, the estimated photovoltaic power generation, the estimated park electricity consumption and the estimated difference between the two in each future unit time period are first predicted, and then a BP neural network including an input layer, a hidden layer and an output layer is created, and the estimated difference in electricity consumption is imported into the BP neural network as an input vector, so as to obtain a new BP neural network that achieves the desired park electricity cost while shaving the peak and filling the valley and completes the training, and finally, in the next unit time period, the park electricity control is performed according to the corresponding hidden node values extracted from the new BP neural network, so that while shaving the peak and filling the valley, the charging and discharging timing and charging and discharging amount of the energy storage battery can be optimized by taking into account the impact of different electricity prices, photovoltaic inverter efficiency, battery inverter efficiency and charging rectification efficiency in different time periods on the park electricity cost, so that the park electricity cost can reach the expected level, which is convenient for practical application and promotion.
[0117] like Figure 3As shown, the second aspect of this embodiment provides a virtual device for implementing the park power control method described in the first aspect, including a data acquisition module, a power generation prediction module, a power consumption prediction module, a power calculation module, a network creation module, a network training module, a node value extraction module and a power control module;
[0118] The data acquisition module is used to query and acquire the weather forecast data for the latest N future unit periods through the Internet at the end of the current unit period, and to acquire the current remaining power of the energy storage battery, where N represents a positive integer greater than or equal to 3;
[0119] The power generation prediction module is communicatively connected to the data acquisition module, and is used to predict the corresponding estimated photovoltaic power generation value for each future unit period in the most recent N future unit periods, based on the historical weather data and historical photovoltaic power generation of the most recent M historical unit periods and the corresponding weather forecast data, wherein M represents a positive integer greater than or equal to 3, the historical photovoltaic power generation refers to the power generation of the distributed photovoltaic in the historical unit period, and the estimated photovoltaic power generation value refers to the estimated power generation value of the distributed photovoltaic in the future unit period;
[0120] The power consumption prediction module is used to predict the corresponding estimated power consumption of the park according to the historical power consumption of the park in the most recent M historical unit time periods for each future unit time period, wherein the historical power consumption of the park refers to the power consumption of the park in the historical unit time period, and the estimated power consumption of the park refers to the estimated power consumption of the park in the future unit time period;
[0121] The power calculation module is respectively connected to the power generation prediction module and the power consumption prediction module for calculating the difference between the corresponding photovoltaic power generation estimate and the corresponding park power consumption estimate for each future unit period to obtain the corresponding power estimation difference;
[0122] The network creation module is used to create a back propagation BP neural network including an input layer, a hidden layer and an output layer, wherein the input layer includes N input nodes corresponding to the latest N future unit time periods one by one, the hidden layer includes N first hidden nodes and N second hidden nodes corresponding to the latest N future unit time periods one by one, and the output layer includes N output nodes corresponding to the latest N future unit time periods one by one;
[0123] The network training module is respectively connected to the power calculation module and the network creation module for communication, and is used to import the power estimation difference of each future unit time period as an input vector into the BP neural network to obtain a new BP neural network that has completed training, wherein the network training module includes an output vector calculation unit, a judgment unit, and a node value adjustment unit;
[0124] The output vector calculation unit is used to calculate the output vector according to the following formula:
[0125]
[0126] In the formula, n is a positive integer less than or equal to N, y is n represents the output value of the nth output node among the N output nodes, and the output vector is represented as (y1, y2, ..., y n ,…y N ), x n represents the input value of the nth input node among the N input nodes, z n represents the estimated value of the park electricity consumption in the nth future unit period among the latest N future unit periods, p n,1 represents the node value of the nth first hidden node among the N first hidden nodes, p n,2 represents the node value of the nth second hidden node among the N second hidden nodes, μ n represents the inverter efficiency of supplying power to the park through the energy storage battery in the nearest nth future unit period, η n,1 represents the inverter efficiency of the distributed photovoltaic system for supplying power to the park in the latest nth future unit period, η n,2 represents the inverter efficiency of the distributed photovoltaic system supplying power to the grid in the latest n-th future unit period, c n represents the known electricity price in the nearest nth future unit period, λ n represents the rectification efficiency of charging the energy storage battery with the mains during the nth future unit period;
[0127] The judging unit is respectively connected to the output vector calculating unit and the node value adjusting unit for judging whether the sum of the elements of the output vector is less than or equal to a preset target value, and if so, the training is stopped to obtain a new BP neural network that has completed the training, otherwise, the node value adjusting unit is started;
[0128] The node value adjustment unit is communicatively connected to the output vector calculation unit, and is used to adjust the node values of the N first hidden nodes and the N second hidden nodes based on the gradient descent method of the BP neural network, and then return to start the output vector calculation unit, wherein the node value adjustment constraint condition of the N first hidden nodes includes a natural number with a value less than 3, and the node value adjustment constraint condition of the N second hidden nodes includes: when p n,1 When the value is 0, 0≤p n,2 ≤p n,0 -p min and When p n,1 When the value is 1, 0≤p n,2 ≤p max -p n,0 And p n,2 ≤x n +z n , and when p n,1 When the value is 2, 0≤p n,2 ≤p max -p n,0 , where p min Indicates the lower limit of the remaining power of the energy storage battery, p max Indicates the upper limit of the remaining power of the energy storage battery, p n,0 represents the remaining capacity of the energy storage battery at the beginning of the nth future unit period, and when n=1, p n,0 is equal to the current remaining power, and when n≥1 and p n-1,1 When the value is 0, p n,0 =p n-1,0 -p n-1,2 , and also in n ≥ 1 and p n-1,1 When the value is 1 or 2, p n,0 =p n-1,0 +p n-1,2 , p n-1,1 represents the node value of the n-1th first hidden node among the N first hidden nodes, p n-1,0 represents the remaining power of the energy storage battery at the start time of the n-1th future unit time period among the latest N future unit time periods, p n-1,2 represents a node value of the n-1th second hidden node among the N second hidden nodes;
[0129] The node value extraction module is communicatively connected to the network training module and is used to extract the node value p of the first hidden node among the N first hidden nodes from the new BP neural network. 1,1 And the node value p of the first second hidden node among the N second hidden nodes 1,2 ;
[0130] The power consumption control module is communicatively connected to the node value extraction module, and is used to extract the node value p of the first hidden node according to the node value p of the first hidden node in the next unit time period. 1,1 and the node value p of the first second hidden node 1,2 , the park electricity consumption is controlled as follows:
[0131] When p 1,1 =0 and When the energy storage battery and the distributed photovoltaic system are used to supply power to the park, the energy storage battery is discharged and the discharge amount is p 1,2 , the remaining required power consumption of the park in the next unit period z′1-p 1,2 ×μ′1 is provided by the distributed photovoltaics, and the remaining power generation of the distributed photovoltaics in the next unit time period is inverted and supplied to the power grid, wherein x′1 represents the difference between the power generation of the distributed photovoltaics in the next unit time period and the required power consumption of the park in the next unit time period, z′1 represents the required power consumption of the park in the next unit time period, μ′1 represents the inverter efficiency of the energy storage battery in the next unit time period to supply power to the park, η′ 1,1 Indicates the inverter efficiency of supplying power to the park through the distributed photovoltaic in the next unit time period;
[0132] When p 1,1 =0 and When the energy storage battery, the distributed photovoltaic power generation and the city power are used to supply power to the park, the energy storage battery is discharged and the discharge amount is p 1,2 , the remaining required power consumption of the park in the next unit period z′1-p 1,2 ×μ′1 is provided by the distributed photovoltaic power generation and the city power supply;
[0133] When p 1,1 =1 and When the distributed photovoltaic system is used to supply power to the park, the energy storage battery is charged by the distributed photovoltaic system and the charging amount is p 1,2 , and the required power consumption z′1 of the park in the next unit time period is also provided by the distributed photovoltaic, and the remaining power generation of the distributed photovoltaic in the next unit time period is inverted and supplied to the power grid;
[0134] When p 1,1 =1 and When the distributed photovoltaic and city electricity are used to supply power to the park, the energy storage battery is charged by the distributed photovoltaic and the charging amount is p 1,2, and the required power consumption z′1 of the park in the next unit time period is provided by the distributed photovoltaic power generation and the city power supply;
[0135] When p 1,1 =2 and When the distributed photovoltaic system is used to supply power to the park, the power consumption z′1 required by the park in the next unit period is provided by the distributed photovoltaic system, and the remaining power generation of the distributed photovoltaic system in the next unit period is inverted and supplied to the power grid, and the energy storage battery is charged by the city power and the charging amount is p 1,2 ;
[0136] When p 1,1 =2 and When the distributed photovoltaic and the city power are used to supply power to the park, the power consumption z′1 required by the park in the next unit time period is provided by the distributed photovoltaic and the city power, and the energy storage battery is charged by the city power and the charging amount is p 1,2 .
[0137] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be found in the park electricity control method described in the first aspect, and will not be repeated here.
[0138] like Figure 4 As shown, the third aspect of this embodiment provides a computer device for executing the park power control method as described in the first aspect, including a memory, a processor and a transceiver that are sequentially connected in communication, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the park power control method as described in the first aspect. For example, the memory may include, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a flash memory (FlashMemory), a first-in-first-out memory (FIFO) and / or a first-in-last-out memory (FILO), etc.; the processor may include, but is not limited to, a microprocessor of the STM32F105 series. In addition, the computer device may also include, but is not limited to, a power module, a display screen and other necessary components.
[0139] The working process, working details and technical effects of the aforementioned computer equipment provided in the third aspect of this embodiment can be found in the campus electricity control method described in the first aspect, and will not be repeated here.
[0140] In a fourth aspect of this embodiment, there is provided a computer-readable storage medium storing instructions including the park power control method as described in the first aspect, that is, the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the park power control method as described in the first aspect is executed. The computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to computer-readable storage media such as floppy disks, optical disks, hard disks, flash memories, USB flash drives, and / or memory sticks, and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
[0141] The working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment can be referred to the campus electricity control method described in the first aspect, and will not be repeated here.
[0142] The fifth aspect of this embodiment provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the park power control method as described in the first aspect. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
[0143] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for controlling power consumption in a park containing distributed photovoltaic and energy storage batteries. It is characterized in that include: At the end of the current unit period, the weather forecast data for the next N future unit periods is obtained through online query, as well as the current remaining power of the energy storage battery, where N represents a positive integer greater than or equal to 3; For each future unit time period in the most recent N future unit time periods, the corresponding estimated photovoltaic power generation value is predicted based on the historical weather data and historical photovoltaic power generation of the most recent M historical unit time periods and the corresponding weather forecast data, wherein M represents a positive integer greater than or equal to 3, the historical photovoltaic power generation refers to the power generation of distributed photovoltaics in the historical unit time period, and the estimated photovoltaic power generation value refers to the estimated power generation value of the distributed photovoltaics in the future unit time period; For each future unit period, the corresponding estimated power consumption value of the park is predicted based on the historical power consumption of the park in the most recent M historical unit periods, wherein the historical power consumption of the park refers to the power consumption of the park in the historical unit period, and the estimated power consumption value of the park refers to the estimated power consumption value of the park in the future unit period; For each future unit period, calculate the difference between the corresponding estimated photovoltaic power generation value and the corresponding estimated power consumption value of the park to obtain the corresponding estimated power consumption difference; Creating a back propagation BP neural network including an input layer, a hidden layer and an output layer, wherein the input layer includes N input nodes corresponding one-to-one to the latest N future unit time periods, the hidden layer includes N first hidden nodes and N second hidden nodes corresponding one-to-one to the latest N future unit time periods, respectively, and the output layer includes N output nodes corresponding one-to-one to the latest N future unit time periods; The estimated difference of the power in each future unit time period is introduced as an input vector into the BP neural network to obtain a new BP neural network that has completed training. The training process of the BP neural network includes the following steps S61 to S63: S61. Calculate the output vector according to the following formula: In the formula, n is a positive integer less than or equal to N, y is n represents the output value of the nth output node among the N output nodes, and the output vector is represented as (y 1 ,y 2 ,…,y n ,…y N ), x n represents the input value of the nth input node among the N input nodes, z n represents the estimated value of the park electricity consumption in the nth future unit period among the latest N future unit periods, p n,1 represents the node value of the nth first hidden node among the N first hidden nodes, p n,2 represents the node value of the nth second hidden node among the N second hidden nodes, μ n represents the inverter efficiency of supplying power to the park through the energy storage battery in the nearest nth future unit period, η n,1 represents the inverter efficiency of the distributed photovoltaic system for supplying power to the park in the latest nth future unit period, η n,2 represents the inverter efficiency of the distributed photovoltaic system supplying power to the grid in the latest n-th future unit period, c n represents the known electricity price in the nearest nth future unit period, λ n represents the rectification efficiency of charging the energy storage battery with the mains during the nth future unit period; S62. Determine whether the sum of the elements of the output vector is less than or equal to the preset target value. If so, stop training to obtain a new BP neural network that has completed training. Otherwise, execute step S63. S63. Adjust the node values of the N first hidden nodes and the N second hidden nodes based on the gradient descent method of the BP neural network, and then return to execute step S61, wherein the adjustment constraint condition of the node value of the N first hidden nodes includes a natural number with a value less than 3, and the adjustment constraint condition of the node value of the N second hidden nodes includes: when p n,1 When the value is 0, 0≤p n,2 ≤p n,0 -p min and When p n,1 When the value is 1, 0≤p n,2 ≤p max -p n,0 And p n,2 ≤x n +z n , and when p n,1 When the value is 2, 0≤p n,2 ≤p max -p n,0 , where p min Indicates the lower limit of the remaining power of the energy storage battery, p max Indicates the upper limit of the remaining power of the energy storage battery, p n,0 represents the remaining capacity of the energy storage battery at the beginning of the nth future unit period, and when n=1, p n,0 is equal to the current remaining power, and when n≥1 and p n-1,1 When the value is 0, p n,0 =p n-1,0 -p n-1,2 , and also in n ≥ 1 and p n-1,1 When the value is 1 or 2, p n,0 =p n-1,0 +p n-1,2 , p n-1,1 represents the node value of the n-1th first hidden node among the N first hidden nodes, p n-1,0 represents the remaining power of the energy storage battery at the start time of the n-1th future unit time period among the latest N future unit time periods, p n-1,2 represents a node value of the n-1th second hidden node among the N second hidden nodes; Extract the node value p of the first hidden node among the N first hidden nodes from the new BP neural network 1,1 And the node value p of the first second hidden node among the N second hidden nodes 1,2 ; In the next unit period, according to the node value p of the first hidden node 1,1 and the node value p of the first second hidden node 1,2 , the park electricity consumption is controlled as follows: When p 1,1 = 0 and When the energy storage battery and the distributed photovoltaic system are used to supply power to the park, the energy storage battery is discharged and the discharge amount is p 1,2 , the remaining required power consumption z′ of the park in the next unit period 1 -p 1,2 ×μ′ 1 Provided by the distributed photovoltaic, the remaining power generation of the distributed photovoltaic in the next unit period is inverted and supplied to the grid, where x′ 1 It represents the difference between the power generation of the distributed photovoltaic system in the next unit period and the required power consumption of the park in the next unit period, z′ 1 represents the required power consumption of the park in the next unit period, μ′ 1 represents the inverter efficiency of supplying power to the park through the energy storage battery in the next unit period, η′ 1,1 Indicates the inverter efficiency of supplying power to the park through the distributed photovoltaic in the next unit time period; When p 1,1 = 0 and When the energy storage battery, the distributed photovoltaic power generation and the city power are used to supply power to the park, the energy storage battery is discharged and the discharge amount is p 1,2 , the remaining required power consumption z′ of the park in the next unit period 1 -p 1,2 ×μ′ 1 Provided by the distributed photovoltaic power and the city electricity; When p 1,1 =1 and When the distributed photovoltaic system is used to supply power to the park, the energy storage battery is charged by the distributed photovoltaic system and the charging amount is p 1,2 , and the required power consumption z′ of the park in the next unit period 1 It is also provided by the distributed photovoltaics, and the surplus power generation of the distributed photovoltaics in the next unit time period is inverted and supplied to the power grid; When p 1,1 =1 and When the distributed photovoltaic and city electricity are used to supply power to the park, the energy storage battery is charged by the distributed photovoltaic and the charging amount is p 1,2 , and the required power consumption z′ of the park in the next unit period 1 Provided by the distributed photovoltaic power and the city electricity; When p 1,1 =2 and When the distributed photovoltaic system is used to supply power to the park, the required power consumption z′ of the park in the next unit period is: 1 The distributed photovoltaic system provides the remaining power generation in the next unit period, which is then inverted and supplied to the grid. Meanwhile, the energy storage battery is charged by the city power and the charging capacity is p 1,2 ; When p 1,1 =2 and When the distributed photovoltaic and city power are used to supply power to the park, the required power consumption z′ of the park in the next unit period is: 1 The distributed photovoltaic and the mains electricity are provided together, and the energy storage battery is charged by the mains electricity and the charging amount is p 1,2 .
2. The park electricity control method according to claim 1, It is characterized in that The weather forecast data and the historical weather data respectively include the duration to the sunrise time of the current day, the duration to the sunset time of the current day and the cloud cover, as well as the perceived temperature, visibility, precipitation probability, wind level, humidity, wind speed and / or dew point temperature, wherein the current day refers to the day corresponding to the unit time period.
3. The park electricity control method according to claim 1, It is characterized in that For each future unit time period in the most recent N future unit time periods, the corresponding estimated photovoltaic power generation value is predicted based on the historical weather data and historical photovoltaic power generation of the most recent M historical unit time periods and the corresponding weather forecast data, including: For each future unit period in the most recent N future unit periods, extract the historical weather data and historical photovoltaic power generation of the most recent M historical unit periods to obtain the corresponding historical weather data and historical photovoltaic power generation of the same unit period in multiple historical days, where M represents a positive integer greater than or equal to 3, and the historical photovoltaic power generation refers to the power generation of distributed photovoltaics in the historical unit period; For each future unit period, the historical weather data of the corresponding unit periods in the same period of multiple historical days are used as input items, and the historical photovoltaic power generation of the corresponding unit periods in the same period of multiple historical days is used as output items, and the artificial intelligence model based on support vector machine, K nearest neighbor method, stochastic gradient descent method, multivariate linear regression, multilayer perceptron, decision tree, back propagation neural network or radial basis function network is calibrated and verified to obtain the corresponding photovoltaic power generation prediction model; For each future unit time period, the corresponding weather forecast data is used as a new input item and input into the corresponding photovoltaic power generation prediction model, and the corresponding photovoltaic power generation estimate is output, wherein the photovoltaic power generation estimate refers to the estimated power generation value of the distributed photovoltaic in the future unit time period.
4. The park electricity control method according to claim 1, It is characterized in that For each future unit period, the corresponding estimated value of the park power consumption is predicted based on the historical park power consumption of the most recent M historical unit periods, including: For each future unit period, extract the historical park power consumption of the corresponding multiple historical unit periods in the same period from the historical park power consumption of the most recent M historical unit periods, wherein the historical park power consumption refers to the power consumption of the park in the historical unit period, and the historical unit period in the same period is the historical day unit period or the historical week unit period; For each future unit period, the corresponding historical park electricity consumption average is calculated based on the historical park electricity consumption of the corresponding multiple historical unit periods in the same period; For each future unit time period, the corresponding historical average of the park's electricity consumption is used as the corresponding estimated value of the park's electricity consumption.
5. The park electricity control method according to claim 1, It is characterized in that The method further comprises: During the training process of the BP neural network, if the training is stopped before the node value adjustment times of the N first hidden nodes and the N second hidden nodes do not reach a preset first threshold, the BP neural network is retrained after reducing the preset target value.
6. The park electricity control method according to claim 5, It is characterized in that The method further comprises: During the training process of the BP neural network, if the training is not stopped after the number of node value adjustments of the N first hidden nodes and the N second hidden nodes reaches a preset second number threshold, the BP neural network is retrained after increasing the preset target value, wherein the second number threshold is greater than the first number threshold.
7. The park electricity control method according to claim 1, It is characterized in that The latest N future unit time periods are the latest future 24 hours, the latest future 48 hours, or the latest future 72 hours.
8. A park power control device containing distributed photovoltaic and energy storage batteries, It is characterized in that It includes a data acquisition module, a power generation prediction module, a power consumption prediction module, a power calculation module, a network creation module, a network training module, a node value extraction module and a power consumption control module; The data acquisition module is used to query and acquire the weather forecast data for the latest N future unit periods through the Internet at the end of the current unit period, and to acquire the current remaining power of the energy storage battery, where N represents a positive integer greater than or equal to 3; The power generation prediction module is communicatively connected to the data acquisition module, and is used to predict the corresponding estimated photovoltaic power generation value for each future unit period in the most recent N future unit periods, based on the historical weather data and historical photovoltaic power generation of the most recent M historical unit periods and the corresponding weather forecast data, wherein M represents a positive integer greater than or equal to 3, the historical photovoltaic power generation refers to the power generation of the distributed photovoltaic in the historical unit period, and the estimated photovoltaic power generation value refers to the estimated power generation value of the distributed photovoltaic in the future unit period; The power consumption prediction module is used to predict the corresponding estimated power consumption of the park according to the historical power consumption of the park in the most recent M historical unit time periods for each future unit time period, wherein the historical power consumption of the park refers to the power consumption of the park in the historical unit time period, and the estimated power consumption of the park refers to the estimated power consumption of the park in the future unit time period; The power calculation module is respectively connected to the power generation prediction module and the power consumption prediction module for calculating the difference between the corresponding photovoltaic power generation estimate and the corresponding park power consumption estimate for each future unit period to obtain the corresponding power estimation difference; The network creation module is used to create a back propagation BP neural network including an input layer, a hidden layer and an output layer, wherein the input layer includes N input nodes corresponding to the latest N future unit time periods one by one, the hidden layer includes N first hidden nodes and N second hidden nodes corresponding to the latest N future unit time periods one by one, and the output layer includes N output nodes corresponding to the latest N future unit time periods one by one; The network training module is respectively connected to the power calculation module and the network creation module for communication, and is used to import the power estimation difference of each future unit time period as an input vector into the BP neural network to obtain a new BP neural network that has completed training, wherein the network training module includes an output vector calculation unit, a judgment unit, and a node value adjustment unit; The output vector calculation unit is used to calculate the output vector according to the following formula: In the formula, n is a positive integer less than or equal to N, y is n represents the output value of the nth output node among the N output nodes, and the output vector is represented as (y 1 ,y 2 ,…,y n ,…y N ), x n represents the input value of the nth input node among the N input nodes, z n represents the estimated value of the park electricity consumption in the nth future unit period among the latest N future unit periods, p n,1 represents the node value of the nth first hidden node among the N first hidden nodes, p n,2 represents the node value of the nth second hidden node among the N second hidden nodes, μ n represents the inverter efficiency of supplying power to the park through the energy storage battery in the nearest nth future unit period, η n,1 represents the inverter efficiency of the distributed photovoltaic system for supplying power to the park in the latest nth future unit period, η n,2 represents the inverter efficiency of the distributed photovoltaic system supplying power to the grid in the latest n-th future unit period, c n represents the known electricity price in the nearest nth future unit period, λ n represents the rectification efficiency of charging the energy storage battery with the mains during the nth future unit period; The judging unit is respectively connected to the output vector calculating unit and the node value adjusting unit for judging whether the sum of the elements of the output vector is less than or equal to a preset target value, and if so, the training is stopped to obtain a new BP neural network that has completed the training, otherwise, the node value adjusting unit is started; The node value adjustment unit is communicatively connected to the output vector calculation unit, and is used to adjust the node values of the N first hidden nodes and the N second hidden nodes based on the gradient descent method of the BP neural network, and then return to start the output vector calculation unit, wherein the node value adjustment constraint condition of the N first hidden nodes includes a natural number with a value less than 3, and the node value adjustment constraint condition of the N second hidden nodes includes: when p n,1 When the value is 0, 0≤p n,2 ≤p n,0 -p min and When p n,1 When the value is 1, 0≤p n,2 ≤p max -p n,0 And p n,2 ≤x n +z n , and when p n,1 When the value is 2, 0≤p n,2 ≤p max -p n,0 , where p min Indicates the lower limit of the remaining power of the energy storage battery, p max Indicates the upper limit of the remaining power of the energy storage battery, p n,0 represents the remaining capacity of the energy storage battery at the beginning of the nth future unit period, and when n=1, p n,0 is equal to the current remaining power, and when n≥1 and p n-1,1 When the value is 0, p n,0 =p n-1,0 -p n-1,2 , and also in n ≥ 1 and p n-1,1 When the value is 1 or 2, p n,0 =p n-1,0 +p n-1,2 , p n-1,1 represents the node value of the n-1th first hidden node among the N first hidden nodes, p n-1,0 represents the remaining power of the energy storage battery at the start time of the n-1th future unit time period among the latest N future unit time periods, p n-1,2 represents a node value of the n-1th second hidden node among the N second hidden nodes; The node value extraction module is communicatively connected to the network training module and is used to extract the node value p of the first hidden node among the N first hidden nodes from the new BP neural network. 1,1 And the node value p of the first second hidden node among the N second hidden nodes 1,2 ; The power consumption control module is communicatively connected to the node value extraction module, and is used to extract the node value p of the first hidden node according to the node value p of the first hidden node in the next unit time period. 1,1 and the node value p of the first second hidden node 1,2 , the park electricity consumption is controlled as follows: When p 1,1 = 0 and When the energy storage battery and the distributed photovoltaic system are used to supply power to the park, the energy storage battery is discharged and the discharge amount is p 1,2 , the remaining required power consumption z′ of the park in the next unit period 1 -p 1,2 ×μ′ 1 Provided by the distributed photovoltaic, the remaining power generation of the distributed photovoltaic in the next unit period is inverted and supplied to the grid, where x′ 1 It represents the difference between the power generation of the distributed photovoltaic system in the next unit period and the required power consumption of the park in the next unit period, z′ 1 represents the required power consumption of the park in the next unit period, μ′ 1 represents the inverter efficiency of supplying power to the park through the energy storage battery in the next unit period, η′ 1,1 Indicates the inverter efficiency of supplying power to the park through the distributed photovoltaic in the next unit time period; When p 1,1 = 0 and When the energy storage battery, the distributed photovoltaic power generation and the city power are used to supply power to the park, the energy storage battery is discharged and the discharge amount is p 1,2 , the remaining required power consumption z′ of the park in the next unit period 1 -p 1,2 ×μ′ 1 Provided by the distributed photovoltaic power and the city electricity; When p 1,1 =1 and When the distributed photovoltaic system is used to supply power to the park, the energy storage battery is charged by the distributed photovoltaic system and the charging amount is p 1,2 , and the required power consumption z′ of the park in the next unit period 1 It is also provided by the distributed photovoltaics, and the surplus power generation of the distributed photovoltaics in the next unit time period is inverted and supplied to the power grid; When p 1,1 =1 and When the distributed photovoltaic and city electricity are used to supply power to the park, the energy storage battery is charged by the distributed photovoltaic and the charging amount is p 1,2 , and the required power consumption z′ of the park in the next unit period 1 Provided by the distributed photovoltaic power and the city electricity; When p 1,1 =2 and When the distributed photovoltaic system is used to supply power to the park, the required power consumption z′ of the park in the next unit period is: 1 The distributed photovoltaic system provides the remaining power generation in the next unit period, which is then inverted and supplied to the grid. Meanwhile, the energy storage battery is charged by the city power and the charging capacity is p 1,2 ; When p 1,1 =2 and When the distributed photovoltaic and city power are used to supply power to the park, the required power consumption z′ of the park in the next unit period is: 1 The distributed photovoltaic and the mains electricity are provided together, and the energy storage battery is charged by the mains electricity and the charging amount is p 1,2 .
9. A computer device, It is characterized in that It includes a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the campus electricity control method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, Features The computer-readable storage medium stores instructions, and when the instructions are executed on the computer, the park power control method as described in any one of claims 1 to 7 is executed.
