A method for calculating the weighted average electricity price of photovoltaic power based on hourly simulated power generation.
By acquiring the voltage level and time-of-use pricing rule library of the target region, a time-series pricing array is generated and matched with the power generation array output by the photovoltaic simulation system to calculate the photovoltaic weighted average price. This solves the problem of the difficulty in matching the difference between photovoltaic power generation and electricity price, realizes accurate photovoltaic project revenue calculation, and improves the reliability of investment decisions.
Patent Information
- Application Number
- CN202611036048.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-13
- Publication Date
- 2026-11-17
AI Technical Summary
Existing technologies cannot accurately reflect the fluctuation characteristics of photovoltaic power generation over time and the differences in time-of-use electricity prices, causing the revenue calculation results of photovoltaic projects to deviate from reality and affecting the reliability of investment decisions.
By acquiring the voltage level and time-of-use pricing rule library of the target region, a time-series pricing array is generated and matched with the power generation array output by the photovoltaic simulation system according to time sequence to calculate the photovoltaic weighted average price, providing a calculation method based on full grid integration.
It significantly improves the accuracy of photovoltaic weighted average electricity price calculation, provides a unified and objective benchmark return anchor, supports sensitivity analysis, reduces data preparation workload and error probability, and enhances the scientific nature of investment decisions.
Smart Images

Figure CN123118151A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system automation technology, specifically to a method, system, storage medium, and processor for calculating the photovoltaic weighted average electricity price based on hourly simulated power generation. Background Technology
[0002] Currently, my country's distributed photovoltaic (PV) installed capacity is growing rapidly, and national policies are increasingly stringent on the self-consumption ratio of large-scale industrial and commercial distributed PV projects, requiring, in principle, all power to be self-consumed. Simultaneously, provinces across the country are generally implementing complex time-of-use (TOU) pricing policies, including seasonal, time-of-use, weekday / holiday pricing and peak-hour surcharges, to promote renewable energy consumption and guide load regulation. These dual factors make the revenue calculation for distributed PV projects primarily for self-consumption extremely complex. Traditional calculation methods often use the annual total power generation multiplied by the arithmetic average electricity price, or roughly calculate based on the weighted average of peak, off-peak, and valley power generation. These methods fail to reflect the inherent characteristics of PV output fluctuating hourly with solar radiation, and cannot match the dynamic rules of seasonal switching, holiday price adjustments, and peak-hour surcharges in TOU pricing. This leads to calculation results deviating from reality and affecting the reliability of investment decisions.
[0003] To address the aforementioned issues, some existing technologies have been explored. Some existing patented solutions attempt to obtain the time-of-use irradiance (TOU) values for the project site based on historical irradiance data, calculate power generation at each moment by manually setting the power plant efficiency, and then combine this with the corresponding TOU price for comprehensive electricity price prediction. However, these power generation estimates are detached from the actual design of the photovoltaic power plant (module type, tilt angle, system losses, etc.), and the specific algorithm for decomposing the daily average irradiance into hourly values is not disclosed, resulting in limited confidence. Meanwhile, while commonly used simulation software in the industry can output hourly power generation throughout the year, its globally universal architecture lacks localization for my country's TOU price policy. It cannot automatically generate hourly price sequences that conform to seasonal, holiday, and peak-hour rules, and it also lacks a dedicated function for calculating a weighted average price based on the coupling of hourly power generation and electricity price. More commonly, mainstream calculation tools on the market often mix multiple models such as full consumption, self-consumption of surplus electricity fed into the grid, and curtailment losses. However, in the early stages of a project, it is urgent to conduct sensitivity analysis based on full consumption as the benchmark. At present, there is a lack of a standardized hourly matching calculation method based solely on the assumption of full consumption.
[0004] In the process of realizing this invention, the inventors of this application discovered that the above-mentioned solutions in the prior art have the following defects: the power generation calculation method based on historical irradiance and artificially set efficiency is out of touch with the actual design of photovoltaic systems and lacks confidence; although existing simulation software can provide high-precision hourly power generation, it lacks localized support for my country's complex time-of-use pricing rules and cannot automatically generate hourly price sequences; existing industry calculation tools generally couple and mix full-quota grid connection benchmark calculation with other grid connection modes, failing to provide an independent technical solution that takes full grid connection as a premise, accurately matches hourly power generation with the time-of-use pricing of the project site, and calculates the photovoltaic weighted average price, making it difficult to meet the actual needs of accurately calculating benchmark prices and conducting sensitivity analysis in the early feasibility study stage. Summary of the Invention
[0005] The purpose of this invention is to provide a method for calculating the weighted average electricity price of photovoltaic power. This method is based on the hourly power generation output from simulation and coupled with the annual time-series electricity price table constructed according to the complex time-of-use electricity price rules of the project site. It calculates the power generation revenue and the equivalent weighted average electricity price, based on full consumption. This method solves the defects of existing technologies, such as the disconnect between power generation estimation and design and the inability to adapt to the time-of-use electricity price rules of the project site. It also provides a standardized extension interface for subsequent sensitivity analysis.
[0006] To achieve the above objectives, embodiments of the present invention provide a method for calculating the photovoltaic weighted average electricity price based on hourly simulated power generation, comprising: obtaining the voltage level of a target region, and obtaining a corresponding local time-of-use electricity price rule library based on the target region and voltage level; generating a time-series electricity price array corresponding to each hour within a preset calculation period based on the time-of-use electricity price rule library; obtaining a time-series power generation array for each hour within the preset calculation period; matching the time-series power generation array and the time-series electricity price array according to time sequence, and obtaining the total revenue and total power generation within the preset calculation period based on the power generation and electricity price at each time point; calculating the photovoltaic weighted average electricity price based on the total revenue and the total power generation, and outputting a standardized report.
[0007] Optionally, the time-of-use electricity pricing rule library includes at least one of the following: seasonal division rules, rules for distinguishing between weekdays and holidays, rules for dividing peak, off-peak, and valley periods, and rules for peak periods and peak surcharges.
[0008] Optionally, the time-series electricity price array is obtained by traversing each natural hour within the preset calculation period, determining the seasonal attribute, date attribute, and electricity price time period attribute of the current moment hour by hour, and generating an electricity price sequence corresponding to each hour.
[0009] Optionally, the electricity price time period attributes include peak hours, high hours, normal hours, low hours, and deep low hours; the date attributes include weekday attributes and holiday attributes.
[0010] Optionally, the time-series power generation array is obtained by: simulating the annual power generation process using a photovoltaic simulation system and exporting an hourly power generation data file for the entire year; automatically identifying the version format of the data file, locating the starting row and valid data columns; and extracting the hourly AC power generation corresponding to each hour to form a time-series power generation array.
[0011] Optionally, the system checks whether the local time-of-use electricity pricing rule selected by the user exists in the rule base. If it does not exist, the electricity pricing rule configuration process is triggered.
[0012] Optionally, the photovoltaic weighted average electricity price The following formula can be used to calculate:
[0013] in, The time-of-use electricity price for that hour; For the first Electricity generation at any given moment.
[0014] On the other hand, the present invention provides a photovoltaic weighted average electricity price calculation system based on hourly simulated power generation. The system includes: a memory storing instructions; and a processor that calls the instructions in the memory to execute the photovoltaic weighted average electricity price calculation method based on hourly simulated power generation as described above.
[0015] On the other hand, the present invention provides a computer-readable storage medium storing instructions that, when executed by a processor, implement the photovoltaic weighted average electricity price calculation method based on hourly simulated power generation as described above.
[0016] On the other hand, the present invention provides a computer program product, including a computer program that, when executed by a processor, implements the photovoltaic weighted average electricity price calculation method based on hourly simulated power generation as described above.
[0017] Through the above technical solution, the present invention has at least the following beneficial effects: First, by acquiring the local time-of-use electricity price rule library under the target region and corresponding voltage level, it automatically generates a time-series electricity price array corresponding to each hour within the preset calculation period, eliminating the need for manual hourly entry of electricity price information and significantly reducing the workload and error probability of data preparation. Second, by precisely matching the time-series power generation array and the time-series electricity price array according to time sequence, it calculates and summarizes the power generation revenue at each hour. Compared with the traditional rough estimation method of multiplying the annual total power generation by the arithmetic average electricity price, it can fully reflect the fluctuation characteristics of photovoltaic output over time and the differences in time-of-use electricity prices at different times, significantly improving the calculation accuracy of the weighted average electricity price. Third, by directly calculating the equivalent weighted average electricity price based on the total revenue and total power generation, and outputting a standardized report, it provides a unified and objective benchmark revenue anchor for the early investment decision-making of photovoltaic projects. At the same time, the calculation process has clear logic, complete steps, and good reproducibility and engineering applicability.
[0018] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description section. Attached Figure Description
[0019] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings: Figure 1 A flowchart of a photovoltaic weighted average electricity price calculation method based on hourly simulated power generation provided by this invention; Figure 2 A schematic diagram of the initial parameter configuration interface for a photovoltaic weighted average electricity price calculation method based on hourly simulated power generation, provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the time-series electricity price generation completion interface of a photovoltaic weighted average electricity price calculation method based on hourly simulated power generation provided in an embodiment of the present invention; Figure 4 A schematic diagram of the photovoltaic simulation power generation data file import pop-up window provided in this embodiment of the invention for a photovoltaic weighted average electricity price calculation method based on hourly simulated power generation; Figure 5 This is a schematic diagram of the coupled calculation result display interface of a photovoltaic weighted average electricity price calculation method based on hourly simulated power generation provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the output of a summary information worksheet for a photovoltaic weighted average electricity price calculation method based on hourly simulated power generation, provided in an embodiment of the present invention. Figure 7This is a schematic diagram of the time-detailed worksheet output for a photovoltaic weighted average electricity price calculation method based on hourly simulated power generation, provided in an embodiment of the present invention. Detailed Implementation
[0020] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the scope of the present invention.
[0021] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application all comply with relevant laws and regulations. In the embodiments of this application, certain existing industry solutions such as software, components, and models may be mentioned. These should be considered exemplary, intended only to illustrate the feasibility of implementing the technical solution of this application, and do not imply that the applicant has already used or necessarily used such solutions.
[0022] Figure 1 The flowchart illustrates a method for calculating the weighted average electricity price of photovoltaic power based on hourly simulated power generation, as provided by this invention. Figure 1 As shown, firstly, the voltage level of the target region is obtained, and then the corresponding local time-of-use electricity price rule library is obtained based on the target region and voltage level.
[0023] The time-of-use electricity pricing rule library includes at least one of the following: seasonal division rules, rules for distinguishing between weekdays and holidays, rules for dividing peak, off-peak, and valley periods, and rules for peak periods and peak surcharges.
[0024] Specifically, the system first obtains the voltage level of the target region, and then, based on the target region and voltage level, retrieves the corresponding time-of-use (TOU) pricing rules from the built-in local TOU pricing rule library. This TOU pricing rule library is a database that pre-parses, encodes, and stores structured TOU pricing policies already published by various provinces and cities across the country. Each rule record includes, but is not limited to, the following data items: seasonal division rules (e.g., summer, winter, off-season and their corresponding monthly intervals), distinction between weekdays and holidays and the electricity price execution standard, the start and end times of each time period each day (e.g., peak, high, low, low), and the specific surcharge ratio within peak months and peak periods. When the user selects the province and voltage level of the project, the system automatically retrieves the latest and complete set of rules implemented in that region for the target calculation year. If the rules for that region are not included or have been updated, the system will provide an interactive interface for the user to manually enter or update them, ensuring the timeliness and accuracy of the electricity price data.
[0025] like Figure 1 As shown, the second step is to generate a time-series electricity price array corresponding to each hour within a preset calculation period, based on the time-of-use electricity price rule library.
[0026] The time-series electricity price array is obtained by traversing each natural hour within the preset calculation period, determining the seasonal attribute, date attribute, and electricity price time period attribute of the current moment hour by hour, and generating an electricity price sequence corresponding to each hour.
[0027] The electricity price time period attributes include peak hours, high hours, normal hours, low hours, and deep low hours; the date attributes include weekday attributes and holiday attributes.
[0028] Specifically, after acquiring the complete local time-of-use (TOU) electricity pricing rules, the system automatically constructs and generates a time-series electricity price array corresponding one-to-one with each hour within a preset calculation period, based on the rule base. The generation of the time-series electricity price array is achieved as follows: the system uses a built-in calendar algorithm to iterate through each natural hour within the preset calculation period, performing multi-dimensional attribute determinations for each hour. First, based on the date of the hour, it determines the seasonal attribute (e.g., whether it belongs to a summer peak month) and the date attribute (i.e., whether it is a weekday or a national statutory holiday). Second, based on the specific time of the hour, combined with the determination results of the seasonal and date attributes, it calls the corresponding daytime division rules to determine the electricity price time period attribute, which includes peak hours, high-peak hours, normal hours, low-peak hours, and deep-valley hours. Finally, based on the finally determined seasonal, date, and electricity price time period attributes, it retrieves and matches the precise electricity price value corresponding to that hour from the TOU electricity pricing rule base, thereby generating a time-series electricity price array containing ordered electricity price data points. This array provides an accurate price benchmark for subsequent revenue calculations.
[0029] like Figure 1 As shown, the third step is to obtain the time-series power generation array for each hour within the preset calculation period.
[0030] The time-series power generation array is obtained by simulating the power generation process through a photovoltaic simulation system and exporting hourly power generation data files; automatically identifying the version format of the data file, locating the starting row of data and the effective data columns; and extracting the hourly AC power generation corresponding to each hour to form a time-series power generation array.
[0031] Specifically, the time-series power generation array is obtained for each hour within the preset calculation period. This time-series power generation array is obtained as follows: First, a high-precision model of the target photovoltaic power station is created using photovoltaic system simulation software. This model integrates actual meteorological data from the project site, performance parameters of photovoltaic modules, inverter efficiency, array layout, and line loss, among other engineering design parameters, to simulate the power generation process of the power station at each moment and export a standard format file containing power generation data corresponding to each moment within the preset calculation period. Second, the system's built-in data parsing module automatically identifies the software version format of the data file and intelligently locates the starting line of the data body and the valid data columns containing the time-series index and power generation data based on the specific file header structure of different versions. Finally, the parsing module extracts the power generation data corresponding to each moment within the preset calculation period, organizes and stores it as a time-series power generation array, ensuring strict alignment with the aforementioned time-series electricity price array in the time dimension.
[0032] like Figure 1 As shown, in the fourth step, the time-series power generation array and the time-series electricity price array are matched according to time sequence, and the total revenue and total power generation within the preset calculation period are obtained based on the power generation and electricity price at each time point.
[0033] Specifically, time-series coupling calculations are performed. The system takes the time-series power generation array and the time-series electricity price array as inputs, and performs a one-to-one matching according to the time-series index, using the hour as the smallest time unit. The specific calculation process includes: for the first... Read the power generation data at that moment every hour. and corresponding time-of-use electricity price data Calculate the power generation revenue at that moment. After completing the product calculation for all time points, the system sums up the power generation data for all time points to obtain the total power generation within the preset calculation period. = Σ Simultaneously, the power generation revenue data at all times are summed to obtain the total revenue within the preset calculation period. This process achieves precise time-series coupling between the hourly output characteristics of photovoltaic power and complex time-of-use pricing policies, avoiding calculation errors caused by time dimension mismatch.
[0034] like Figure 1 As shown, the photovoltaic weighted average electricity price is calculated based on the total revenue and the total power generation, and a standardized report is output.
[0035] The photovoltaic weighted average electricity price The following formula can be used to calculate:
[0036] in, The time-of-use electricity price for that hour; For the first Electricity generation at any given moment.
[0037] Specifically, based on the total revenue and the total power generation, the system calculates the photovoltaic weighted average electricity price according to a preset weighted average electricity price calculation formula, and automatically generates and outputs a standardized calculation report. The photovoltaic weighted average electricity price is then calculated according to the aforementioned formula. This result represents the comprehensive equivalent price per kilowatt-hour of electricity generated by the photovoltaic power station under the specific time-of-use pricing policy at the project site, in a fully grid-connected scenario. Based on this, the automatic calculation report generation module is triggered. This module integrates the project's basic information (such as project name, location, and voltage level), calculation period, key summary indicators (such as total annual power generation, total annual revenue, and photovoltaic weighted average electricity price), and detailed tables containing hourly electricity prices, power generation, and revenue data, according to a preset standard template. Finally, it outputs a complete calculation result document in a user-specified format (such as Excel or PDF), providing intuitive and detailed data support for project investment decisions.
[0038] Example The following detailed description, in conjunction with the accompanying drawings, illustrates a specific embodiment of the present invention. This embodiment uses a rooftop distributed photovoltaic project of a company in Hebei Province as an application scenario, aiming to verify the effectiveness and operability of the method proposed in this invention. The project parameters, electricity price rules, and simulation data used in this embodiment are all real engineering data; however, the present invention is not limited to these specific parameters.
[0039] In this embodiment, the project is located in Hebei Province, with a photovoltaic installed capacity of 14.21 MW. It adopts a full self-consumption and grid integration model. The settlement voltage level between the enterprise's electricity consumption side and the grid is 110 kV, and the calculation year is 2026. First, based on the project site's latitude, longitude, and climate characteristics, a photovoltaic power station simulation model is established in PVsyst. Design parameters such as component models, inverter parameters, array installation tilt angle, azimuth angle, line loss, and system efficiency are input, along with typical meteorological data for the project site in a given year. After running the PVsyst simulation, the hourly AC power generation results file for the entire year is exported and named Hourly_Results.csv. This file records the AC power generation for each hour out of the 8760 hours throughout the year, serving as the input source for subsequent power generation data.
[0040] After the user starts the measurement software described in this invention, they will first enter the initial parameter configuration interface. Figure 2 This is a schematic diagram of the initial parameter configuration interface for a photovoltaic weighted average electricity price calculation method based on hourly simulated power generation, provided as an embodiment of the present invention. Figure 2As shown, in the main interface of the software, the user selects the calculation year "2026", the province "Hebei Province", the city "a certain city", and the voltage level "110 kV" from the drop-down menu. The software will automatically search the built-in local time-of-use pricing rule library to confirm whether the latest time-of-use pricing policy implemented in the corresponding year for that voltage level in that region has been included. In this embodiment, the system successfully retrieved the time-of-use pricing rule summary for the 110 kV voltage level of a certain city in Hebei Province, including the seasonal division rules, the start and end times of peak, valley, and normal periods in each season, peak months and peak periods, and the corresponding electricity price fluctuation ratio. After confirming that the rules are correct, the user clicks the "Generate 8760 Time Series Electricity Price" button. The system then, based on the retrieved time-of-use pricing rules, iterates through every natural hour from 0:00 on January 1, 2026 to 23:00 on December 31, 2026, determining the seasonal attribute, date attribute, and electricity price period attribute hourly, and automatically constructs a time series electricity price data table that corresponds one-to-one with the 8760 hours of that year. Figure 3 This is a schematic diagram of the time-series electricity price generation completion interface for a photovoltaic weighted average electricity price calculation method based on hourly simulated power generation, provided in an embodiment of the present invention. Figure 3 As shown, the interface displays a preview area of the complete time-series electricity price table, listing the electricity price details for certain time periods in tabular form. It also plots a year-round electricity price time-series curve, allowing users to intuitively verify the distribution and fluctuation characteristics of electricity prices over time. If the rules for the user's selected region are not included or the electricity price policy has been updated, the system will provide an interactive interface for users to manually enter the latest electricity price rules and save them to the rule base.
[0041] After the time-series electricity price table is generated, the user clicks the "Import PVsyst hourly power generation" button, and the system pops up a file selection dialog box. Figure 4 This is a schematic diagram of a pop-up window for importing photovoltaic simulated power generation data files, provided in an embodiment of the present invention, for a method of calculating the photovoltaic weighted average electricity price based on hourly simulated power generation. Figure 4 As shown, in the pop-up Windows file open dialog box, the user can browse local folders through the left-hand directory tree navigation bar to locate the directory containing the CSV result file output by the PVsyst simulation from the desktop, various disk partitions, or external storage devices. The bottom of the dialog box includes a filename input box and a file type filter drop-down menu; the system defaults to displaying only .csv and .txt files to assist users in quickly locating the file. In this embodiment, the user navigates to the project folder, selects the file named "14.21MW Hourly Power Generation project_VC2_HourlyRes_0.CSV", and then clicks the "Open" button to confirm the import. After the file is selected, the system automatically starts the data parsing process in the background.
[0042] Specifically, the built-in parsing module automatically identifies the exported version format of the CSV file, adaptively skips the header comment lines that differ between versions, locates the data header, identifies the hourly serial number column and the AC power generation column from the header, extracts the power generation data corresponding to each hour within the preset calculation period, and stores it in a time-series power generation array, ensuring strict alignment with the aforementioned time-series electricity price array in the time dimension. After parsing, the interface displays a statistical summary of the power generation data, including the total annual power generation and the maximum and minimum hourly power generation, allowing users to immediately verify the completeness and rationality of the data after import.
[0043] After importing the power generation data, the user clicks the "Execute Calculation" button, and the system initiates the hourly time-series coupled calculation process. For each hour within the preset calculation period, the system retrieves the electricity price for that hour from the time-series electricity price array. Extract the power generation at that moment from the time-series power generation array. Calculate the photovoltaic power generation revenue at that moment. After iterating through all moments within the preset calculation period, the total power generation is obtained by summing them up. = Σ Total revenue Finally, according to The weighted average price of electricity generated by photovoltaic power was calculated. Figure 5 This is a schematic diagram showing the result of the coupled calculation of a photovoltaic weighted average electricity price calculation method based on hourly simulated power generation, provided in an embodiment of the present invention. Figure 5 As shown, the software interface prominently displays three core indicators: total annual power generation, total annual revenue, and the weighted average price of photovoltaic power. It also overlays a comparison of the annual electricity price curve and the power generation curve, allowing users to intuitively observe the matching relationship between photovoltaic output and time-of-use pricing over time. This helps identify the differences in the contribution of power generation revenue in different seasons and time periods. In this embodiment, the project's calculated total annual power generation is 16,429,249 kWh, total annual revenue is 8,934,567.32 yuan, and the weighted average price of photovoltaic power is 0.543837 yuan / kWh.
[0044] After the calculation is complete, the user clicks the "Export Report" button, and the system automatically generates a standardized calculation report. Figure 6 This is a schematic diagram of the output of a summary information worksheet for a photovoltaic weighted average electricity price calculation method based on hourly simulated power generation, provided in an embodiment of the present invention. Figure 7 This is a schematic diagram showing the output of a detailed data worksheet for a photovoltaic weighted average electricity price calculation method based on hourly simulated power generation, provided in an embodiment of the present invention. (See diagram below.) Figure 6As shown, the summary information worksheet centrally displays basic project information, including project name, construction location, installed capacity, voltage level, calculation year, and key summary indicators such as total annual power generation, total annual revenue, and weighted average electricity price. It also supplements subtotal statistics by season or time period, allowing users to grasp the project's revenue structure from multiple dimensions. Figure 7 As shown, the detailed data worksheet displays complete records for each moment within the preset calculation period, arranged in rows. Each row contains a time-series index, the time-of-use electricity price at that moment, the photovoltaic power generation at that moment, and the power generation revenue at that moment. All data is strictly arranged in time sequence. Users can use Excel's filtering and sorting functions to perform flexible and in-depth analysis of the detailed data, and can also create custom data pivots and charts based on this data.
[0045] This embodiment fully demonstrates the automated operation of the entire process of this invention, from parameter input, rule retrieval, time-series electricity price generation, power generation analysis, coupled calculation to report output. All steps are completed under the guidance of a graphical interface, and each module completes data docking through time-series indexing, requiring no manual intervention throughout the process. To further verify the rationality and superiority of the calculation results of this embodiment, the weighted average electricity price of 0.543837 yuan / kWh obtained by this method is compared and analyzed with that of the traditional simplified algorithm. The traditional arithmetic average electricity price is approximately 0.48 yuan / kWh, with a relative deviation of 13.3%. The reason for this deviation is that the photovoltaic system outputs the most at noon, but according to the time-of-use electricity price rules of Hebei Province, noon is often a flat period or even a valley or deep valley period; while at the peak of the evening, when the electricity price is the highest, the photovoltaic output has dropped significantly or even to zero. Traditional algorithms either multiply the total annual power generation by the arithmetic average electricity price or roughly calculate based on the peak, off-peak, and valley power ratios. These methods completely fail to reflect the mismatch between photovoltaic (PV) output characteristics and time-of-use (TOU) pricing over time, thus significantly deviating from the actual profitability of the project. This method, by matching power generation and electricity price hourly, accurately reflects the aforementioned time-series coupling characteristics. The resulting weighted average electricity price truly reflects the project's profitability under the current complex TOU pricing policy, providing a scientific and reliable benchmark for investment decisions. Furthermore, although this embodiment uses full grid connection as the benchmark calculation scenario—assuming all PV power is consumed by the user and not fed back to the grid—to obtain the weighted average PV price under the benchmark state as a reference for subsequent profitability calculations, the algorithm core of this invention has reserved extension interfaces for parameters such as self-consumption ratio, surplus power grid connection price, curtailment rate, and energy storage charging and discharging strategies. This allows for convenient extension to diversified profitability calculation scenarios such as self-consumption with surplus power grid connection, partial curtailment, and PV-storage synergy, achieving a smooth transition from the benchmark model to complex business scenarios without refactoring the core algorithm. Meanwhile, this embodiment also verifies the method's universal adaptability to complex time-of-use electricity pricing policies in different provinces, as well as its high confidence level based on PVsyst simulation data. The low coupling between functional modules and the clear interfaces support modular upgrades and functional expansion, demonstrating good engineering practical value and promising prospects for widespread application.
[0046] The photovoltaic weighted average electricity price calculation system based on hourly simulated power generation includes a processor and a memory. The aforementioned user interaction and parameter input module, the hourly time-of-use electricity price rule library module, the module for automatically constructing hourly time-series electricity price tables based on local electricity price rules, the PVsyst hourly power generation analysis module, and the hourly power generation and hourly time-series electricity price coupled calculation module are all stored as program units in the memory. The processor executes the aforementioned program units stored in the memory to achieve the corresponding functions.
[0047] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and by adjusting kernel parameters, instructions can be executed to calculate the weighted average electricity price of photovoltaic power based on the time-series coupling of hourly simulated power generation and local time-of-use pricing rules. This enables accurate calculation of the equivalent electricity price level of distributed photovoltaic projects under complex time-of-use pricing policies.
[0048] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0049] This invention provides a storage medium storing a program that, when executed by a processor, implements the method for calculating the photovoltaic weighted average electricity price based on hourly simulated power generation.
[0050] This invention provides a processor for running a program, wherein the program executes a method for calculating the photovoltaic weighted average electricity price based on hourly simulated power generation.
[0051] This invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: obtaining the voltage level of a target region, and obtaining the corresponding local time-of-use electricity price rule library based on the target region and the voltage level. Based on the time-of-use electricity price rule base, a time-series electricity price array corresponding to each hour within a preset calculation period is generated; Obtain the time-series power generation array for each hour within the preset calculation period; match the time-series power generation array with the time-series electricity price array according to time sequence, and obtain the total revenue and total power generation within the preset calculation period based on the power generation and electricity price at each time point; Based on the total revenue and the total power generation, the photovoltaic weighted average electricity price is calculated and a standardized report is output.
[0052] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.
[0053] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: obtaining the voltage level of a target region, and obtaining the corresponding local time-of-use electricity price rule library based on the target region and the voltage level; Based on the time-of-use electricity price rule base, a time-series electricity price array corresponding to each hour within a preset calculation period is generated; Obtain the time-series power generation array for each hour within the preset calculation period; The time-series power generation array and the time-series electricity price array are matched according to time sequence, and the total revenue and total power generation within the preset calculation period are obtained based on the power generation and electricity price at each time point. Based on the total revenue and the total power generation, the photovoltaic weighted average electricity price is calculated and a standardized report is output.
[0054] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0055] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0056] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0057] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0058] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0059] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0060] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0061] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0062] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for calculating the weighted average electricity price of photovoltaic power based on hourly simulated power generation, characterized in that, include: Obtain the voltage level of the target region, and obtain the corresponding local time-of-use electricity price rule library based on the target region and voltage level; Based on the time-of-use electricity price rule base, a time-series electricity price array corresponding to each hour within a preset calculation period is generated; Obtain the time-series power generation array for each hour within the preset calculation period; The time-series power generation array and the time-series electricity price array are matched according to time sequence, and the total revenue and total power generation within the preset calculation period are obtained based on the power generation and electricity price at each time point. Based on the total revenue and the total power generation, the photovoltaic weighted average electricity price is calculated and a standardized report is output.
2. The method according to claim 1, characterized in that, The time-of-use electricity pricing rule library includes at least one of the following: seasonal division rules, rules for distinguishing between weekdays and holidays, rules for dividing peak, off-peak, and valley periods, and rules for peak periods and peak surcharges.
3. The method according to claim 1, characterized in that, The time-series electricity price array is obtained in the following way: Iterate through each natural hour within the preset calculation period, determine the seasonal attribute, date attribute, and electricity price time period attribute of the current moment hour by hour, and generate an electricity price sequence corresponding to each hour.
4. The method according to claim 3, characterized in that, The electricity price time period attributes include peak hours, high hours, normal hours, low hours, and deep low hours; the date attributes include weekday attributes and holiday attributes.
5. The method according to claim 1, characterized in that, The time-series power generation array is obtained in the following way: The photovoltaic simulation system simulates the annual power generation process and exports the hourly power generation data file for the whole year. Automatically identify the version format of the data file and locate the starting row and valid data columns; Extract the hourly AC power generation corresponding to each hour to form a time-series power generation array.
6. The method according to claim 1, characterized in that, Also includes: The system checks whether the user-selected local time-of-use electricity pricing rule exists in the rule base. If it does not exist, the electricity pricing rule configuration process is triggered.
7. The method according to claim 1, characterized in that, The photovoltaic weighted average electricity price The following formula can be used to calculate: in, The time-of-use electricity price for that hour; For the first Electricity generation at any given moment.
8. A photovoltaic weighted average electricity price calculation system based on hourly simulated power generation, characterized in that, The system includes: a memory storing instructions; and a processor that invokes the instructions in the memory to execute the photovoltaic weighted average electricity price calculation method based on hourly simulated power generation according to any one of claims 1 to 7.
9. A computer-readable storage medium storing instructions thereon, characterized in that, When the instruction is executed by the processor, it implements the photovoltaic weighted average electricity price calculation method based on hourly simulated power generation as described in any one of claims 1 to 7.
10. A computer program product, characterized in that, The method includes a computer program that, when executed by a processor, implements the photovoltaic weighted average electricity price calculation method based on hourly simulated power generation as described in any one of claims 1 to 7.
