Power scheduling method for photovoltaic energy storage charging station, and terminal
Through prediction models based on historical and future data, the power dispatching strategy of photovoltaic storage and charging stations is automatically optimized, solving the problems of waste of photovoltaic power generation and insufficient power reserves, achieving the effect of maximizing photovoltaic utilization and minimizing power purchase costs.
Patent Information
- Application Number
- PCT/CN2024/078886
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-28
- Filing Date
- 2024-02-28
- Publication Date
- 2024-10-03
AI Technical Summary
How can photovoltaic storage and charging stations maximize photovoltaic utilization and minimize power purchase costs while satisfying users' electricity consumption? The existing technology relies on manual formulation of charging and discharging plans for energy storage systems, which leads to problems of wasted photovoltaic power generation or insufficient power reserves. .
It uses a photovoltaic power generation and user power consumption prediction model trained based on historical data, combines future weather data to predict photovoltaic power generation and user power consumption, automatically determines the power dispatch strategy, and uses artificial intelligence technology to optimize power dispatch during peak and valley periods.
It improves the accuracy and reliability of power dispatching, maximizes photovoltaic utilization, and reduces the operation and manual maintenance costs of charging stations.
Smart Images

Figure CN2024078886_03102024_PF_FP_ABST
Abstract
Description
A power dispatching method and terminal for photovoltaic charging station Technical Field
[0001] The present invention relates to the technical field of power dispatching, and in particular to a power dispatching method and terminal for a photovoltaic charging station. Background Art
[0002] Solar-energy-storage charging stations draw their power from both photovoltaic power generation and grid-purchased electricity, which is then used to charge electric vehicles. Grid-purchased electricity has peak, off-peak, and normal periods, with off-peak electricity prices being lower and peak electricity prices higher. Solar-energy-storage charging stations can purchase electricity from the grid during off-peak periods, store it in an energy storage system, and then use it to charge electric vehicles during peak periods, reducing the station's electricity purchase costs and increasing its revenue.
[0003] Two factors influence power dispatch for solar-powered charging stations: future PV generation and user electricity consumption. PV generation is subject to uncertainty due to factors such as weather, time of day, and the location of the charging station. User electricity consumption is also subject to uncertainty due to user mobility and habits.
[0004] Because the batteries in charging station energy storage systems have a capacity limit, if the batteries are fully charged during off-peak hours while photovoltaic power generation exceeds user consumption during other periods, photovoltaic power will be wasted, resulting in higher electricity costs. If the battery charge is reduced during off-peak hours while photovoltaic power generation is less than user consumption during other periods, electricity may have to be purchased during peak hours, increasing electricity costs. Therefore, it is necessary to develop an optimal power dispatch strategy that combines peak, off-peak, and normal periods, photovoltaic power generation, and user consumption. This strategy maximizes photovoltaic utilization and minimizes electricity purchase costs while meeting user demand. Currently, most energy storage system charging and discharging plans are manually developed for the peak, off-peak, and normal periods in the location, with irregular manual adjustments. This results in wasted photovoltaic power or insufficient power reserves, leading to financial losses for charging stations. Technical issues
[0005] The technical problem to be solved by the present invention is to provide a power dispatching method and terminal for a photovoltaic storage charging station, which can maximize the photovoltaic utilization rate and minimize the electricity purchase cost while meeting the user's electricity consumption. Technical Solutions
[0006] In order to solve the above technical problems, a technical solution adopted by the present invention is:
[0007] A method for dispatching power for a photovoltaic charging station, comprising the steps of:
[0008] Collect historical user charging data, historical photovoltaic power generation, historical weather data, and peak, valley, and average periods of the corresponding power grid at the photovoltaic charging station;
[0009] Based on the historical weather data, the historical photovoltaic power generation and the historical user charging amount, the photovoltaic power generation prediction model and the user power consumption prediction model are trained respectively to obtain a trained photovoltaic power generation prediction model and a trained user power consumption prediction model;
[0010] Obtaining future weather data for the photovoltaic charging station, and using the trained photovoltaic power generation prediction model and the trained user power consumption prediction model to perform predictions based on the future weather data, respectively, to obtain predicted photovoltaic power generation and predicted user power consumption;
[0011] A power dispatching strategy is determined based on the predicted photovoltaic power generation, the predicted user power consumption, and the peak, valley, and normal time periods.
[0012] In order to solve the above technical problems, another technical solution adopted by the present invention is:
[0013] A power dispatching terminal for a photovoltaic charging station includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
[0014] Collect historical user charging data, historical photovoltaic power generation, historical weather data, and peak, valley, and average periods of the corresponding power grid at the photovoltaic charging station;
[0015] Based on the historical weather data, the historical photovoltaic power generation and the historical user charging amount, the photovoltaic power generation prediction model and the user power consumption prediction model are trained respectively to obtain a trained photovoltaic power generation prediction model and a trained user power consumption prediction model;
[0016] Obtaining future weather data for the photovoltaic charging station, and using the trained photovoltaic power generation prediction model and the trained user power consumption prediction model to perform predictions based on the future weather data, respectively, to obtain predicted photovoltaic power generation and predicted user power consumption;
[0017] A power dispatching strategy is determined based on the predicted photovoltaic power generation, the predicted user power consumption, and the peak, valley, and normal time periods. Beneficial effects
[0018] The beneficial effects of the present invention are as follows: based on historical weather data, historical photovoltaic power generation and historical user charging amount, the photovoltaic power generation prediction model and the user power consumption prediction model are trained respectively to obtain the trained photovoltaic power generation prediction model and the trained user power consumption prediction model; based on future weather data, the trained photovoltaic power generation prediction model and the user power consumption prediction model are used to make predictions respectively to obtain the predicted photovoltaic power generation and the predicted user power consumption; the power dispatching strategy is determined according to them and the peak, valley and normal periods, thereby taking into account the peak, valley and normal periods of the location of the photovoltaic storage and charging station, the volatility of the photovoltaic power generation of the charging station and the user power consumption, and combining artificial intelligence technology to determine the power dispatching strategy without manual formulation, thereby ensuring the accuracy and reliability of the power dispatching strategy, so that while meeting the user power consumption, the photovoltaic utilization rate is maximized and the electricity purchase cost is minimized, thereby reducing the operating cost of the charging station and the manual maintenance cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] FIG1 is a flowchart of a method for dispatching power for a photovoltaic charging station according to an embodiment of the present invention;
[0020] FIG2 is a schematic structural diagram of a power dispatching terminal for a photovoltaic charging station according to an embodiment of the present invention. Modes for Carrying Out the Invention
[0021] To illustrate the technical content, achieved objectives and effects of the present invention in detail, the following description is given in conjunction with the embodiments and accompanying drawings.
[0022] Referring to FIG. 1 , an embodiment of the present invention provides a power dispatching method for a photovoltaic charging station, including the following steps:
[0023] Collect historical user charging data, historical photovoltaic power generation, historical weather data, and peak, valley, and average periods of the corresponding power grid at the photovoltaic charging station;
[0024] Based on the historical weather data, the historical photovoltaic power generation and the historical user charging amount, the photovoltaic power generation prediction model and the user power consumption prediction model are trained respectively to obtain a trained photovoltaic power generation prediction model and a trained user power consumption prediction model;
[0025] Obtaining future weather data for the photovoltaic charging station, and using the trained photovoltaic power generation prediction model and the trained user power consumption prediction model to perform predictions based on the future weather data, respectively, to obtain predicted photovoltaic power generation and predicted user power consumption;
[0026] A power dispatching strategy is determined based on the predicted photovoltaic power generation, the predicted user power consumption, and the peak, valley, and normal time periods.
[0027] From the above description, it can be seen that the beneficial effects of the present invention are: based on historical weather data, historical photovoltaic power generation and historical user charging amount, the photovoltaic power generation prediction model and the user power consumption prediction model are trained respectively to obtain the trained photovoltaic power generation prediction model and the trained user power consumption prediction model; based on future weather data, the trained photovoltaic power generation prediction model and the user power consumption prediction model are used to perform predictions respectively to obtain predicted photovoltaic power generation and predicted user power consumption; the power dispatching strategy is determined based on them and the peak, valley and normal periods, thereby taking into account the peak, valley and normal periods of the location of the photovoltaic storage and charging station, the volatility of the photovoltaic power generation of the charging station and the user power consumption, and combining artificial intelligence technology to determine the power dispatching strategy without manual formulation, thereby ensuring the accuracy and reliability of the power dispatching strategy, so that while meeting the user's power consumption, the photovoltaic utilization rate is maximized and the electricity purchase cost is minimized, thereby reducing the charging station operating cost and manual maintenance cost.
[0028] Furthermore, the photovoltaic power generation prediction model and the user power consumption prediction model are trained based on the historical weather data, the historical photovoltaic power generation, and the historical user charging amount, respectively, to obtain the trained photovoltaic power generation prediction model and the trained user power consumption prediction model, including:
[0029] calculating a first correlation coefficient between the historical weather data and the historical photovoltaic power generation, and determining a first correlation feature corresponding to the historical photovoltaic power generation from the historical weather data based on the first correlation coefficient;
[0030] calculating a second correlation coefficient between the historical weather data and the historical user charging amount, and determining a second correlation feature corresponding to the historical user charging amount from the historical weather data according to the second correlation coefficient;
[0031] Training a photovoltaic power generation prediction model according to the first related feature and the historical photovoltaic power generation to obtain a trained photovoltaic power generation prediction model;
[0032] The user power consumption prediction model is trained according to the second related feature and the historical user charging amount to obtain a trained user power consumption prediction model.
[0033] From the above description, we can see that by excluding irrelevant features from historical weather data and only retaining features related to historical photovoltaic power generation and historical user electricity consumption, and using these relevant features together with historical photovoltaic power generation and historical user charging volume to train the model, the model can fully learn the impact of weather data on photovoltaic power generation and user electricity consumption, thereby improving the accuracy of the model.
[0034] Furthermore, the calculating a first correlation coefficient between the historical weather data and the historical photovoltaic power generation, and determining a first correlation feature corresponding to the historical photovoltaic power generation from the historical weather data according to the first correlation coefficient includes:
[0035] determining each weather factor in the historical weather data as a first initial feature;
[0036] Calculating a first correlation coefficient between each of the first initial features and the historical photovoltaic power generation;
[0037] determining a first correlation strength according to the first correlation coefficient;
[0038] The first initial features whose first correlation strength is irrelevant are excluded from the historical weather data, and the remaining first initial features are determined as first correlation features corresponding to the historical photovoltaic power generation.
[0039] From the above description, it can be seen that the first initial features with irrelevant first correlation strength are excluded from the historical weather data, and the remaining first initial features are determined as the first relevant features corresponding to the historical photovoltaic power generation. Subsequently, only the relevant features and historical photovoltaic power generation are used for model training, which improves the model accuracy and the model training efficiency at the same time.
[0040] Furthermore, the first correlation coefficient r is:
[0041] ;
[0042] In the formula, n represents the number of samples, X i represents the sample value of the i-th first initial feature, represents the average value of the first initial feature, Y i represents the sample value of the i-th historical photovoltaic power generation, Represents the average value of historical photovoltaic power generation.
[0043] From the above description, it can be seen that the first correlation coefficient represents the degree of influence of each weather factor in the historical weather data on the historical photovoltaic power generation. According to the correlation coefficient, irrelevant weather factors can be effectively excluded to avoid invalid algorithm calculations.
[0044] Furthermore, the photovoltaic power generation prediction model is trained according to the first related feature and the historical photovoltaic power generation to obtain a trained photovoltaic power generation prediction model, which includes:
[0045] Dividing the first related features and the historical photovoltaic power generation into a first training set and a first test set;
[0046] Inputting the first training set into a plurality of preset algorithms to train a photovoltaic power generation prediction model, thereby obtaining a plurality of initially trained photovoltaic power generation prediction models;
[0047] Inputting the first test set into the plurality of initially trained photovoltaic power generation prediction models to calculate a first test value of each of the initially trained photovoltaic power generation prediction models;
[0048] Determine the preset algorithm corresponding to the largest test value from the first test values as the target algorithm;
[0049] The photovoltaic power generation prediction model is trained using the target algorithm according to the first related feature and the historical photovoltaic power generation to obtain a trained photovoltaic power generation prediction model.
[0050] From the above description, it can be seen that the target algorithm with the best training effect is determined using the test set, and the photovoltaic power generation prediction model is trained using the target algorithm based on the first relevant feature and the historical photovoltaic power generation, so that the trained prediction model has the highest accuracy and the predicted photovoltaic power generation is more accurate and reliable.
[0051] Furthermore, the first test value R2_score is:
[0052] ;
[0053] In the formula, m represents the number of samples in the first test set, f i represents the i-th predicted photovoltaic power generation, y i represents the i-th real photovoltaic power generation, Represents the actual average photovoltaic power generation.
[0054] From the above description, it can be seen that the first test value is a number between 0 and 1. The closer it is to 1, the better the model effect. The first test value can be used to effectively determine the algorithm with the best training effect, thereby improving the accuracy of the prediction model.
[0055] Furthermore, the predicted photovoltaic power generation is the predicted photovoltaic power generation corresponding to each hour in the next 24 hours;
[0056] The predicted user electricity consumption is the predicted user electricity consumption corresponding to each hour in the next 24 hours;
[0057] Determining the power dispatching strategy according to the predicted photovoltaic power generation, the predicted user power consumption, and the peak, valley, and normal periods includes:
[0058] Dividing the next 24 hours into a valley power period, a normal power period, and a peak power period according to the peak, valley, and normal power periods;
[0059] For the off-peak period, the amount of electricity purchased from the power grid in the first subsequent period corresponding to the off-peak period is determined based on the sum of the predicted user electricity consumption and the predicted sum of photovoltaic power generation between the current off-peak period and the next off-peak period;
[0060] Determining a power dispatching strategy for the off-peak period based on the amount of power purchased from the power grid during the first subsequent period;
[0061] For the flat power period, determining the lack of power consumption in the current period corresponding to the flat power period according to the sum of the predicted user power consumption and the sum of the predicted photovoltaic power generation in the current flat power period;
[0062] Determine the power purchase amount of the power grid in the second subsequent period corresponding to the normal power period according to the sum of the predicted user power consumption and the predicted photovoltaic power generation between the current normal power period and the next off-peak power period;
[0063] Determining a power dispatching strategy for the flat power period based on the lack of power consumption in the current period and the power grid purchase amount in the second subsequent period;
[0064] For the peak power period, the power dispatching strategy for the peak power period is determined as using photovoltaic power generation first for user charging, using energy storage batteries when photovoltaic power generation is insufficient, and purchasing electricity from the power grid when the remaining power of the energy storage batteries is insufficient.
[0065] From the above description, it can be seen that different judgment criteria are used for valley power periods, peak power periods, and flat power periods to obtain corresponding power dispatching strategies, so that power dispatching can maximize photovoltaic utilization and minimize electricity purchase costs while meeting user electricity consumption.
[0066] Furthermore, the power dispatching strategy for determining the off-peak period based on the power grid purchase amount in the first subsequent period includes:
[0067] Get the upper limit of the battery capacity of the energy storage battery;
[0068] If the amount of electricity purchased from the power grid during the first subsequent period is equal to a first preset value, determining that the power dispatching strategy during the off-peak period is that the energy storage battery does not need to be charged, and that photovoltaic power generation is first used for user charging, and when photovoltaic power generation is insufficient, electricity is purchased from the power grid;
[0069] If the amount of electricity purchased from the power grid during the first subsequent period is greater than the first preset value and less than or equal to the upper limit of the battery capacity, then determining the power dispatch strategy for the off-peak period to charge the energy storage battery until the amount of electricity in the energy storage battery is equal to the amount of electricity purchased from the power grid during the first subsequent period, and first using photovoltaic power generation for user charging, and purchasing electricity from the power grid when the photovoltaic power generation is insufficient;
[0070] If the amount of electricity purchased from the power grid during the first subsequent period is greater than the upper limit of the battery capacity, the power dispatching strategy for the off-peak period is determined to be charging the energy storage battery until the amount of electricity in the energy storage battery is equal to the upper limit of the battery capacity, and the user first uses photovoltaic power generation for charging. When the photovoltaic power generation is insufficient, electricity is purchased from the power grid.
[0071] From the above description, it can be seen that the power dispatching strategy for the off-peak period is determined by using the power purchase amount of the power grid in the subsequent period, which ensures the full utilization of photovoltaic power generation during the off-peak period and reduces the power purchase cost as much as possible.
[0072] Furthermore, the power dispatching strategy for determining the flat power period based on the lack of power consumption in the current period and the power grid purchase amount in the second subsequent period includes:
[0073] Get the remaining power and battery capacity limit of the energy storage battery during the current flat-power period;
[0074] If the remaining power is greater than or equal to the sum of the power shortage in the current period and the power purchase from the power grid in the second subsequent period, the power dispatching strategy for the off-peak period is determined as follows: no need to charge the energy storage battery, and the user first uses photovoltaic power generation for charging. When the photovoltaic power generation is insufficient, the energy storage battery is used. When the remaining power of the energy storage battery is insufficient, electricity is purchased from the power grid;
[0075] If the remaining power is less than the sum of the power shortage in the current period and the power purchased from the power grid in the second subsequent period, and the power purchased from the power grid in the second subsequent period is less than a second preset value, then the power dispatching strategy for the off-peak period is determined as follows: no need to charge the energy storage battery, and the user first uses photovoltaic power generation for charging. When the photovoltaic power generation is insufficient, the energy storage battery is used. When the remaining power of the energy storage battery is insufficient, electricity is purchased from the power grid;
[0076] If the remaining power is less than the sum of the power shortage in the current period and the power purchased from the power grid in the second subsequent period, and the power purchased from the power grid in the second subsequent period is greater than or equal to the second preset value and less than or equal to the upper limit of the battery capacity, then the power dispatch strategy for the off-peak period is determined to be charging the energy storage battery until the power of the energy storage battery is equal to the power purchased from the power grid in the second subsequent period, and the user first uses photovoltaic power generation for charging, and when the photovoltaic power generation is insufficient, the energy storage battery is used, and when the remaining power of the energy storage battery is insufficient, electricity is purchased from the power grid;
[0077] If the remaining power is less than the sum of the power shortage in the current period and the power purchased from the power grid in the second subsequent period, and the power purchased from the power grid in the second subsequent period is greater than the upper limit of the battery capacity, then the power dispatching strategy for the valley power period is determined to be charging the energy storage battery until the power of the energy storage battery is equal to the upper limit of the battery capacity, and the user first uses photovoltaic power generation for charging. When the photovoltaic power generation is insufficient, the energy storage battery is used. When the remaining power of the energy storage battery is insufficient, electricity is purchased from the power grid.
[0078] From the above description, it can be seen that the power dispatching strategy for the flat power period is determined by utilizing the lack of power consumption in the current period and the power grid purchase power in the second subsequent period, so that reasonable power dispatching can be achieved in the flat power period, thereby improving the economy and feasibility of the power dispatching strategy.
[0079] Referring to Figure 2, another embodiment of the present invention provides a power dispatching terminal for a photovoltaic charging station, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step of the power dispatching method for the photovoltaic charging station is implemented.
[0080] The above-mentioned power dispatching method and terminal for a photovoltaic charging station of the present invention are applicable to scenarios where power dispatching of a photovoltaic charging station is required, and are described below through specific implementation methods:
[0081] Example 1
[0082] Define the variables as follows:
[0083] Variable Name: maxSOC: The upper limit of the energy storage battery's capacity. currSOC: The remaining charge of the energy storage battery, initially set to 0. currUseSOC: The sum of the hourly forecasted user electricity consumption for the current period. If the current period is 00:00-08:00, this is the sum of the hourly forecasted user electricity consumption between 00:00 and 08:00. currSunSOC: The sum of the hourly forecasted photovoltaic power generation for the current period. If the current period is 00:00-08:00, this is the sum of the hourly forecasted photovoltaic power generation between 00:00 and 08:00. currLackSOC: The lack of electricity consumption in the current period. currLackSOC = currUseSOC - currSunSOC. afterUseSOC: The sum of the hourly forecasted user electricity consumption between the current period and the next off-peak period. If the current period is 00:00-08:00, this is the sum of the hourly forecasted user electricity consumption between 08:00 and 22:00. afterSunSOC is the hourly forecast sum of PV power generation from the current period to the next off-peak period. If the current period is 00:00-08:00, it is the hourly forecast sum of PV charge capacity from 08:00-22:00. afterLackSOC is the amount of electricity purchased from the grid during the subsequent period. afterLackSOC = afterUseSOC - afterSunSOC.
[0084] Referring to FIG. 1 , a power dispatching method for a photovoltaic charging station according to this embodiment includes the following steps:
[0085] S1. Collect historical user charging data, historical photovoltaic power generation, historical weather data, and peak, valley, and average periods of the corresponding power grid at the photovoltaic charging station;
[0086] The historical user charging amount is the historical user charging amount per hour, the historical photovoltaic power generation is the historical photovoltaic power generation per hour, and the historical weather data is the historical weather data per hour. The historical weather data can be collected from a third-party weather platform.
[0087] In an optional implementation, abnormal data in the historical user charging amount, historical photovoltaic power generation and historical weather data is filtered to remove abnormal data caused by charging station equipment maintenance, shutdown, etc.
[0088] S2. Based on the historical weather data, the historical photovoltaic power generation, and the historical user charging amount, respectively, a photovoltaic power generation prediction model and a user power consumption prediction model are trained to obtain a trained photovoltaic power generation prediction model and a trained user power consumption prediction model, specifically including:
[0089] S21, calculating a first correlation coefficient between the historical weather data and the historical photovoltaic power generation, and determining a first correlation feature corresponding to the historical photovoltaic power generation from the historical weather data based on the first correlation coefficient, specifically comprising:
[0090] S211, determining each weather factor in the historical weather data as a first initial feature;
[0091] Among them, the weather factors include irradiance, temperature, humidity, air quality, weather type (such as sunny, cloudy, light rain, etc.), wind speed, wind force, wind direction, air pressure, rainfall probability, sunrise time, sunset time, etc.; since the weather is periodic, date and time factors must also be considered, so the historical weather data includes the corresponding date number and time number, for example, the date number of January 1 is 1, the date number of January 2 is 2, the date number of December 31 is 365, the time number at 0 o'clock is 0, the time number at 1 o'clock is 1, and the time number at 23 o'clock is 23, and the date number and time number are also used as the first initial feature, corresponding to the weather factors.
[0092] S212. Calculate a first correlation coefficient between each of the first initial features and the historical photovoltaic power generation;
[0093] Wherein, the first correlation coefficient r is:
[0094] ;
[0095] In the formula, n represents the number of samples, X i represents the sample value of the i-th first initial feature, represents the average value of the first initial feature, Y i represents the sample value of the i-th historical photovoltaic power generation, Represents the average value of historical photovoltaic power generation.
[0096] S213. Determine a first correlation strength according to the first correlation coefficient;
[0097] Specifically, the first correlation strength is determined according to the first correlation coefficient according to a preset correlation coefficient and correlation strength comparison table, refer to Table 1.
[0098] Table 1 Correlation coefficient and correlation strength comparison table
[0099]
[0100] S214: Exclude the first initial features whose first correlation strength is irrelevant from the historical weather data, and determine the remaining first initial features as first correlation features corresponding to the historical photovoltaic power generation.
[0101] Specifically, the first initial feature with a first correlation strength of irrelevant is excluded from the historical weather data, and the first initial feature with a first correlation strength of low correlation, significant correlation and high correlation is determined as the first correlation feature corresponding to the historical photovoltaic power generation.
[0102] S22. Calculating a second correlation coefficient between the historical weather data and the historical user charge amount, and determining a second correlation feature corresponding to the historical user charge amount from the historical weather data based on the second correlation coefficient, specifically comprising:
[0103] The second correlation coefficient is calculated in the same manner as the first correlation coefficient.
[0104] S221. Determine each weather factor in the historical weather data as a second initial feature, and also use the date number and time number as first initial features, corresponding to the weather factor, and determine whether the day is a statutory holiday or a weekend based on the date number.
[0105] S222: Calculate a second correlation coefficient between each of the second initial features and the historical user charging amount, using the same calculation method as step S212;
[0106] S223. Determine a second correlation strength according to the second correlation coefficient;
[0107] Wherein, the second correlation strength is determined according to the second correlation coefficient according to the preset correlation coefficient and correlation strength comparison table.
[0108] S224: Exclude the second initial features whose second correlation strength is irrelevant from the historical weather data, and determine the remaining second initial features as second correlation features corresponding to the historical user charging amount.
[0109] S23: Training a photovoltaic power generation prediction model based on the first related feature and the historical photovoltaic power generation to obtain a trained photovoltaic power generation prediction model, specifically including:
[0110] S231. Divide the first related features and the historical photovoltaic power generation into a first training set and a first test set;
[0111] Specifically, the first related features and the historical photovoltaic power generation are divided into a first training set of 80% and a first test set of 20%.
[0112] S232: Inputting the first training set into multiple preset algorithms to train a photovoltaic power generation prediction model, thereby obtaining multiple initially trained photovoltaic power generation prediction models, i.e., each of the initially trained photovoltaic power generation prediction models corresponds to a different preset algorithm;
[0113] Among them, the preset algorithms include LSTM (Long short-term memory), random forest, GBDT (Gradient Boosting Decision Tree), XGBoost (Extreme Gradient Boosting), etc.
[0114] S233: Input the first test set into the plurality of initially trained photovoltaic power generation prediction models to calculate a first test value of each of the initially trained photovoltaic power generation prediction models;
[0115] Wherein, the first test value R2_score is:
[0116] ;
[0117] In the formula, m represents the number of samples in the first test set, f i represents the i-th predicted photovoltaic power generation, y i represents the i-th real photovoltaic power generation, Represents the actual average photovoltaic power generation.
[0118] S234: Determine a preset algorithm corresponding to a maximum test value among the first test values as a target algorithm;
[0119] S235 . Training a photovoltaic power generation prediction model using the target algorithm according to the first related feature and the historical photovoltaic power generation to obtain a trained photovoltaic power generation prediction model.
[0120] S24: Training a user power consumption prediction model based on the second related feature and the historical user charging amount to obtain a trained user power consumption prediction model, specifically including:
[0121] S241. Divide the second related features and the historical user charging amount into a second training set and a second test set;
[0122] Specifically, the second related features and the historical user charging amount are divided into a second training set of 80% and a second test set of 20%.
[0123] S242: Input the second training set into the plurality of preset algorithms to train a user charge amount prediction model, thereby obtaining a plurality of initially trained user charge amount prediction models;
[0124] S243: Input the second test set into the multiple initially trained user charge amount prediction models to calculate a second test value of each of the initially trained user charge amount prediction models;
[0125] The second test value R2_score′ is:
[0126] ;
[0127] Where m′ represents the number of samples in the second test set, f i ′ represents the i-th predicted user charging amount, y i ′ represents the real charging amount of the i-th user, ′ represents the average charging amount of real users.
[0128] S244: Determine the preset algorithm corresponding to the largest test value among the second test values as the target algorithm;
[0129] S245. Train the user charging amount prediction model using the target algorithm according to the second related feature and the historical user charging amount to obtain a trained user charging amount prediction model.
[0130] The AI algorithm combines historical hourly data on charging station electricity consumption, photovoltaic power generation, and weather to train user electricity consumption and photovoltaic power generation prediction models. Because each charging station has different operating locations, user groups, and other conditions, each station needs to independently train its own model using its own data to eliminate interference and improve model accuracy. This means that each photovoltaic charging station has two trained user electricity consumption and photovoltaic power generation prediction models.
[0131] S3. Obtain future weather data for the photovoltaic charging station, and perform predictions based on the future weather data using the trained photovoltaic power generation prediction model and the trained user power consumption prediction model to obtain predicted photovoltaic power generation and predicted user power consumption;
[0132] The predicted photovoltaic power generation is the predicted photovoltaic power generation corresponding to each hour in the next 24 hours; the predicted user power consumption is the predicted user power consumption corresponding to each hour in the next 24 hours; and the future weather data is the weather data corresponding to each hour in the next 24 hours, that is, the weather data for each hour of the next day.
[0133] S4. Determining a power dispatching strategy based on the predicted photovoltaic power generation, the predicted user power consumption, and the peak, valley, and normal periods, specifically including:
[0134] S41, dividing the next 24 hours into a valley power period, a normal power period, and a peak power period according to the peak, valley, and normal power periods;
[0135] In an optional embodiment, the peak, valley and normal period are 0.5 yuan / kWh for valley electricity from 00:00 to 08:00, 1.0 yuan / kWh for peak electricity from 08:00 to 18:00, 0.8 yuan / kWh for normal electricity from 18:00 to 22:00, and 0.5 yuan / kWh for valley electricity from 22:00 to 24:00.
[0136] S42: for the off-peak period, determining the power purchase amount from the power grid for the first subsequent period corresponding to the off-peak period based on the sum of predicted user power consumption and predicted photovoltaic power generation between the current off-peak period and the next off-peak period;
[0137] The current off-peak period is the off-peak period for which the power dispatching strategy is currently being determined;
[0138] Specifically, for the off-peak period, the sum of the predicted user electricity consumption between the current off-peak period and the next off-peak period (afterUseSOC) is subtracted from the sum of the predicted photovoltaic power generation between the current off-peak period and the next off-peak period (afterSunSOC) to obtain the grid-purchased electricity (afterLackSOC) in the first subsequent period corresponding to the off-peak period.
[0139] For example, the current off-peak electricity period is 00:00~08:00, and the next off-peak electricity period is 22:00~24:00. Then, the sum of the predicted user electricity consumption between 08:00~22:00 is subtracted from the sum of the predicted photovoltaic power generation to obtain the grid purchase electricity corresponding to the first subsequent period from 00:00~08:00.
[0140] S43: Determining a power dispatching strategy for the off-peak period based on the amount of power purchased from the power grid during the first subsequent period, specifically including:
[0141] S431. Obtain the upper limit of battery capacity (maxSOC) of the energy storage battery;
[0142] S432. If the amount of electricity purchased from the power grid during the first subsequent period is equal to a first preset value, determining that the power dispatching strategy during the off-peak period is that the energy storage battery does not need to be charged, and that photovoltaic power generation is first used for user charging. When the photovoltaic power generation is insufficient, electricity is purchased from the power grid;
[0143] Among them, the first preset value is 0.
[0144] S433: If the amount of electricity purchased from the power grid during the first subsequent period is greater than the first preset value and less than or equal to the upper limit of the battery capacity, determining the power dispatch strategy for the off-peak period to charge the energy storage battery until the amount of electricity in the energy storage battery is equal to the amount of electricity purchased from the power grid during the first subsequent period, and first using photovoltaic power generation for user charging. When the photovoltaic power generation is insufficient, purchasing electricity from the power grid;
[0145] S434. If the amount of electricity purchased from the power grid during the first subsequent period is greater than the upper limit of the battery capacity, the power dispatching strategy during the off-peak period is determined to be to charge the energy storage battery until the amount of electricity in the energy storage battery is equal to the upper limit of the battery capacity, and the user first uses photovoltaic power generation for charging. When the photovoltaic power generation is insufficient, electricity is purchased from the power grid.
[0146] S44. For the flat-power period, determine the lack of electricity consumption in the current period corresponding to the flat-power period based on the sum of the predicted user electricity consumption and the sum of the predicted photovoltaic power generation in the current flat-power period;
[0147] Specifically, for the flat power period, the sum of the predicted user power consumption in the current flat power period (currUseSOC) is subtracted from the sum of the predicted photovoltaic power generation in the current flat power period (currSunSOC) to obtain the current period lack of power consumption (currLackSOC) corresponding to the flat power period.
[0148] For example, if the current peak power period is 18:00-22:00, then the sum of the predicted user power consumption from 18:00 to 22:00 is subtracted from the sum of the predicted photovoltaic power generation from 18:00 to 22:00 to obtain the power shortage corresponding to the current period from 18:00 to 22:00.
[0149] S45, determining the power grid purchase amount for the second subsequent period corresponding to the peak power period based on the sum of the predicted user power consumption and the predicted photovoltaic power generation between the current peak power period and the next valley power period;
[0150] Specifically, the sum of the predicted user electricity consumption between the current normal power period and the next valley power period is subtracted from the sum of the predicted photovoltaic power generation between the current normal power period and the next valley power period to obtain the grid purchase electricity amount for the second subsequent period corresponding to the normal power period.
[0151] For example, the current peak power period is 18:00~22:00, and the next valley power period is 22:00~24:00. Then, the sum of the predicted user power consumption at 22:00 is subtracted from the sum of the predicted photovoltaic power generation at 22:00 to obtain the power grid purchase amount for the second subsequent period corresponding to 18:00~22:00.
[0152] S46: Determining a power dispatching strategy for the flat power period based on the lack of power consumption in the current period and the power grid purchase amount in the second subsequent period, specifically including:
[0153] S461. Obtain the remaining power (currSOC) and the upper limit of the battery capacity of the energy storage battery during the current flat-power period;
[0154] S462: If the remaining power is greater than or equal to the sum of the power shortage in the current period and the power purchase from the power grid in the second subsequent period, determining the power dispatching strategy for the off-peak period as follows: no need to charge the energy storage battery, and first using photovoltaic power generation for user charging; when photovoltaic power generation is insufficient, using the energy storage battery; and when the remaining power of the energy storage battery is insufficient, purchasing power from the power grid;
[0155] S463: If the remaining power is less than the sum of the power shortage in the current period and the power purchased from the power grid in the second subsequent period, and the power purchased from the power grid in the second subsequent period is less than a second preset value, determining that the power dispatching strategy for the off-peak period is that the energy storage battery does not need to be charged, and the user first uses photovoltaic power generation for charging, uses the energy storage battery when the photovoltaic power generation is insufficient, and purchases power from the power grid when the remaining power of the energy storage battery is insufficient;
[0156] The second preset value is 0.
[0157] S464: If the remaining power is less than the sum of the power shortage in the current period and the power purchased from the power grid in the second subsequent period, and the power purchased from the power grid in the second subsequent period is greater than or equal to the second preset value and less than or equal to the upper limit of the battery capacity, then determine the power dispatch strategy for the off-peak period as charging the energy storage battery until the power of the energy storage battery is equal to the power purchased from the power grid in the second subsequent period, and the user first uses photovoltaic power generation for charging, uses the energy storage battery when the photovoltaic power generation is insufficient, and purchases power from the power grid when the remaining power of the energy storage battery is insufficient.
[0158] S465. If the remaining power is less than the sum of the power shortage in the current period and the power purchase amount from the power grid in the second subsequent period, and the power purchase amount from the power grid in the second subsequent period is greater than the upper limit of the battery capacity, then the power dispatching strategy for the valley power period is determined to be charging the energy storage battery until the power of the energy storage battery is equal to the upper limit of the battery capacity, and the user first uses photovoltaic power generation for charging, and when the photovoltaic power generation is insufficient, the energy storage battery is used, and when the remaining power of the energy storage battery is insufficient, electricity is purchased from the power grid.
[0159] S47. For the peak power period, determine the power dispatching strategy for the peak power period as follows: first use photovoltaic power generation for user charging, use energy storage batteries when photovoltaic power generation is insufficient, and purchase electricity from the power grid when the remaining power of the energy storage batteries is insufficient.
[0160] In another optional embodiment, it also includes: S5, regularly collecting recent photovoltaic power generation, recent user power consumption and recent weather data of the photovoltaic storage charging station, and inputting the recent photovoltaic power generation, recent user power consumption and recent weather data into the trained photovoltaic power generation prediction model and the trained user power consumption prediction model for iterative training, thereby improving model accuracy.
[0161] Example 2
[0162] Please refer to Figure 2. A power dispatching terminal for a photovoltaic charging station in this embodiment includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the various steps of the power dispatching method for a photovoltaic charging station in Example 1.
[0163] In summary, the present invention provides a power dispatching method and terminal for a photovoltaic charging station, which collects historical user charging amount, historical photovoltaic power generation, historical weather data and peak, valley and normal periods of the corresponding power grid at the photovoltaic charging station; based on the historical weather data, the historical photovoltaic power generation and the historical user charging amount, respectively trains a photovoltaic power generation prediction model and a user power consumption prediction model to obtain a trained photovoltaic power generation prediction model and a trained user power consumption prediction model; obtains future weather data of the photovoltaic charging station, and based on the future weather data, uses the trained photovoltaic power generation prediction model and the trained user power consumption prediction model to respectively perform predictions to obtain predicted photovoltaic power generation and predicted user power consumption; according to the predicted photovoltaic power generation, the predicted user power consumption The power dispatching strategy is determined based on the predicted user power consumption and the peak, valley and normal periods. Specifically, the test set is used to determine the target algorithm with the best training effect. The photovoltaic power generation prediction model is trained using the target algorithm according to the first relevant feature and the historical photovoltaic power generation, so that the trained prediction model has the highest accuracy and the predicted photovoltaic power generation is more accurate and reliable. The user power consumption prediction model is also the same. At the same time, the peak, valley and normal periods of the location of the photovoltaic storage and charging station, the photovoltaic power generation of the charging station and the volatility of the user's power consumption are taken into account. The power dispatching strategy is determined by combining artificial intelligence technology without manual formulation, ensuring the accuracy and reliability of the power dispatching strategy, so that while meeting the user's power consumption, the photovoltaic utilization rate is maximized and the electricity purchase cost is minimized, thereby reducing the charging station operation cost and manual maintenance cost.
[0164] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's description and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for dispatching electric power for a photovoltaic charging station, characterized in that: Includes steps: Collect historical user charging data, historical photovoltaic power generation, historical weather data, and peak, valley, and normal periods of the corresponding power grid at the photovoltaic charging station; Based on the historical weather data, the historical photovoltaic power generation and the historical user charging amount, the photovoltaic power generation prediction model and the user power consumption prediction model are trained respectively to obtain a trained photovoltaic power generation prediction model and a trained user power consumption prediction model; Obtaining future weather data of the photovoltaic storage charging station, and using the trained photovoltaic power generation prediction model and the trained user power consumption prediction model to respectively perform predictions based on the future weather data to obtain predicted photovoltaic power generation and predicted user power consumption; The power dispatching strategy is determined according to the predicted photovoltaic power generation, the predicted user power consumption and the peak, valley and normal time periods.
2. A method for dispatching electric power for a photovoltaic charging station according to claim 1, characterized in that: The photovoltaic power generation prediction model and the user power consumption prediction model are trained based on the historical weather data, the historical photovoltaic power generation and the historical user charging amount, respectively, to obtain the trained photovoltaic power generation prediction model and the trained user power consumption prediction model, including: Calculating a first correlation coefficient between the historical weather data and the historical photovoltaic power generation, and determining a first correlation feature corresponding to the historical photovoltaic power generation from the historical weather data according to the first correlation coefficient; Calculating a second correlation coefficient between the historical weather data and the historical user charging amount, and determining a second correlation feature corresponding to the historical user charging amount from the historical weather data according to the second correlation coefficient; Training a photovoltaic power generation prediction model according to the first related feature and the historical photovoltaic power generation to obtain a trained photovoltaic power generation prediction model; The user power consumption prediction model is trained according to the second related feature and the historical user charging amount to obtain a trained user power consumption prediction model.
3. A method for dispatching electric power for a photovoltaic charging station according to claim 2, characterized in that: The calculating a first correlation coefficient between the historical weather data and the historical photovoltaic power generation, and determining a first correlation feature corresponding to the historical photovoltaic power generation from the historical weather data according to the first correlation coefficient includes: Determining each weather factor in the historical weather data as a first initial feature; Calculating a first correlation coefficient between each of the first initial features and the historical photovoltaic power generation; determining a first correlation strength according to the first correlation coefficient; The first initial features whose first correlation strength is irrelevant are excluded from the historical weather data, and the remaining first initial features are determined as first correlation features corresponding to the historical photovoltaic power generation.
4. A method for dispatching electric power for a photovoltaic charging station according to claim 3, characterized in that: The first correlation coefficient r is: ; In the formula, n represents the number of samples, X i represents the sample value of the i-th first initial feature, represents the average value of the first initial feature, Y i represents the sample value of the i-th historical photovoltaic power generation, Represents the average value of historical photovoltaic power generation.
5. The power dispatching method for a photovoltaic charging station according to claim 2, characterized in that: The photovoltaic power generation prediction model is trained according to the first related feature and the historical photovoltaic power generation to obtain the trained photovoltaic power generation prediction model, including: Dividing the first related feature and the historical photovoltaic power generation into a first training set and a first test set; Inputting the first training set into a plurality of preset algorithms to train the photovoltaic power generation prediction model, thereby obtaining a plurality of initially trained photovoltaic power generation prediction models; Inputting the first test set into the plurality of initially trained photovoltaic power generation prediction models to calculate a first test value of each of the initially trained photovoltaic power generation prediction models; Determine a preset algorithm corresponding to a maximum test value from among the first test values as a target algorithm; The photovoltaic power generation prediction model is trained using the target algorithm according to the first related feature and the historical photovoltaic power generation to obtain a trained photovoltaic power generation prediction model.
6. A method for dispatching electric power for a photovoltaic charging station according to claim 5, characterized in that: The first test value R2_score is: ; In the formula, m represents the number of samples in the first test set, f i represents the ith predicted photovoltaic power generation, y i represents the i-th real photovoltaic power generation, Represents the actual average photovoltaic power generation.
7. The power dispatching method for a photovoltaic charging station according to claim 1, characterized in that: The predicted photovoltaic power generation is the predicted photovoltaic power generation corresponding to each hour in the next 24 hours; The predicted user power consumption is the predicted user power consumption corresponding to each hour in the next 24 hours; The determining of the power dispatching strategy according to the predicted photovoltaic power generation, the predicted user power consumption and the peak, valley and normal periods includes: Dividing the next 24 hours into a valley power period, a normal power period and a peak power period according to the peak, valley and normal power periods; For the valley power period, the power grid purchase amount for the first subsequent period corresponding to the valley power period is determined according to the sum of the predicted user power consumption and the predicted photovoltaic power generation between the current valley power period and the next valley power period; Determining a power dispatching strategy for the valley power period based on the amount of power purchased from the power grid during the first subsequent period; For the flat-power period, the lack of power consumption in the current period corresponding to the flat-power period is determined according to the sum of the predicted user power consumption in the current flat-power period and the sum of the predicted photovoltaic power generation; Determine the power grid purchase amount for the second subsequent period corresponding to the normal power period according to the sum of the predicted user power consumption and the predicted photovoltaic power generation between the current normal power period and the next off-peak power period; Determine the power dispatch strategy for the flat power period based on the lack of power consumption in the current period and the power grid purchase amount in the second subsequent period; For the peak power period, the power dispatching strategy for the peak power period is determined as follows: photovoltaic power generation is first used for user charging, and when photovoltaic power generation is insufficient, energy storage batteries are used, and when the remaining power of the energy storage batteries is insufficient, electricity is purchased from the power grid.
8. A method for dispatching electric power for a photovoltaic charging station according to claim 7, characterized in that: The power dispatching strategy for determining the valley power period based on the power grid purchase amount in the first subsequent period includes: Get the upper limit of the battery capacity of the energy storage battery; If the amount of electricity purchased from the power grid during the first subsequent period is equal to a first preset value, then determining that the power dispatching strategy during the valley power period is that the energy storage battery does not need to be charged, and the user first uses photovoltaic power generation for charging, and when the photovoltaic power generation is insufficient, electricity is purchased from the power grid; If the amount of electricity purchased from the power grid in the first subsequent period is greater than the first preset value and less than or equal to the upper limit of the battery capacity, the power dispatching strategy for the valley power period is determined to be charging the energy storage battery until the amount of electricity in the energy storage battery is equal to the amount of electricity purchased from the power grid in the first subsequent period, and the user first uses photovoltaic power generation for charging, and when the photovoltaic power generation is insufficient, purchases electricity from the power grid; If the amount of electricity purchased from the power grid during the first subsequent period is greater than the upper limit of the battery capacity, the power dispatch strategy for the valley power period is determined to be to charge the energy storage battery until the amount of electricity in the energy storage battery is equal to the upper limit of the battery capacity, and the user first uses photovoltaic power generation for charging, and when the photovoltaic power generation is insufficient, electricity is purchased from the power grid.
9. A method for dispatching electric power for a photovoltaic charging station according to claim 7, characterized in that: The power dispatching strategy for determining the flat power period based on the lack of power consumption in the current period and the power grid purchase power in the second subsequent period includes: Get the remaining power and upper limit of the battery capacity of the energy storage battery during the current flat-power period; If the remaining power is greater than or equal to the sum of the power shortage in the current period and the power purchase from the power grid in the second subsequent period, the power dispatching strategy for the valley power period is determined as follows: no need to charge the energy storage battery, and the user first uses photovoltaic power generation for charging. When the photovoltaic power generation is insufficient, the energy storage battery is used. When the remaining power of the energy storage battery is insufficient, electricity is purchased from the power grid; If the remaining power is less than the sum of the power shortage in the current period and the power purchased from the power grid in the second subsequent period, and the power purchased from the power grid in the second subsequent period is less than a second preset value, the power dispatching strategy for the valley power period is determined as follows: no need to charge the energy storage battery, and the user first uses photovoltaic power generation for charging. When the photovoltaic power generation is insufficient, the energy storage battery is used. When the remaining power of the energy storage battery is insufficient, electricity is purchased from the power grid; If the remaining power is less than the sum of the power shortage in the current period and the power purchased from the power grid in the second subsequent period, and the power purchased from the power grid in the second subsequent period is greater than or equal to the second preset value and less than or equal to the upper limit of the battery capacity, then the power dispatch strategy for the valley power period is determined to be charging the energy storage battery until the power of the energy storage battery is equal to the power purchased from the power grid in the second subsequent period, and the user first uses photovoltaic power generation for charging, and when the photovoltaic power generation is insufficient, the energy storage battery is used, and when the remaining power of the energy storage battery is insufficient, electricity is purchased from the power grid; If the remaining power is less than the sum of the power shortage in the current period and the power purchased from the power grid in the second subsequent period, and the power purchased from the power grid in the second subsequent period is greater than the upper limit of the battery capacity, then the power dispatch strategy for the valley power period is determined to be charging the energy storage battery until the power of the energy storage battery is equal to the upper limit of the battery capacity, and the user first uses photovoltaic power generation for charging, and when the photovoltaic power generation is insufficient, the energy storage battery is used, and when the remaining power of the energy storage battery is insufficient, electricity is purchased from the power grid.
10. A power dispatching terminal for a photovoltaic charging station, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, each step of a power dispatching method for a photovoltaic charging station according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Photovoltaic power scheduling method and device, computer device and storage medium
CN109767033A
Intelligent control method of peak-valley load balance of high-tension distribution network
CN109842140A
Optimal scheduling method for photovoltaic power generation system
CN110729764A
Subentry load prediction method for fine-grained electricity consumption behaviors of resident users
CN110782094A
Coordination control-based photovoltaic power station operation and maintenance method and system with energy storage system
CN114362154A
Cited By
Intelligent charging pile scheduling method and system based on dynamic adjustment of energy storage battery pack
CN118966580A
Building photovoltaic integrated global energy intelligent scheduling system
CN118966926A
Photovoltaic power generation scheduling method, system and device and storage medium
CN119051163A
New energy power generation prediction method and platform based on acquired data
CN119275838A
New energy equipment management method based on big data
CN119482441A
