A user demand optimization control method, system, device and medium

By constructing a comprehensive electricity pricing optimization model and demand early warning processing, combined with the dynamic adjustment of energy storage and interruptible loads, the problem of inaccurate demand optimization by electricity sales companies under the tiered demand pricing rules has been solved, achieving optimized control of electricity prices and suppression of demand exceeding limits.

CN123162928APending Publication Date: 2026-11-24HUANENG ZHEJIANG ENERGY SALES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611334125.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Under the tiered demand pricing system, the demand optimization of electricity sales companies on behalf of users is inaccurate and lacks real-time control, leading to demand exceeding limits when load surges, thus increasing punitive costs.

Method used

By acquiring user equipment capacity, electricity price, load forecast, and adjustable resource parameters, a comprehensive electricity cost minimization optimization model is constructed to perform demand early warning processing and issue control commands to suppress demand exceeding limits, combined with the dynamic adjustment of energy storage systems and interruptible loads.

Benefits of technology

It has achieved optimized control of electricity costs across the entire range, reduced users' basic electricity expenses and penalty risks, and improved the accuracy and real-time response capability of demand management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123162928A_ABST
    Figure CN123162928A_ABST
Patent Text Reader

Abstract

This invention discloses a user demand optimization control method, system, device, and medium, comprising: acquiring a first parameter set including user equipment capacity parameters, electricity price parameters, load forecast data, and adjustable resource parameters, wherein the electricity price parameters include demand pricing rules tiered according to load factor; constructing a first optimization model based on the first parameter set and the goal of minimizing total electricity costs, and solving for the billing method, contracted demand value, and pre-scheduling plan; performing a first demand early warning process based on the contracted demand value and real-time load monitoring data to obtain the demand exceedance risk; and responding to the demand exceedance risk by performing a first power regulation process and issuing a first control command to control adjustable resources to suppress demand exceedance. This method links month-to-month optimization decisions with intraday control, reducing the risk of demand exceedance penalties and lowering users' basic electricity costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of demand optimization control technology, specifically to a user demand optimization control method, system, device, and medium. Background Technology

[0002] In the electricity sales business of industrial and commercial users, demand management is used to control users' basic electricity expenses. Under the demand pricing rule based on load factor tiers, the demand price changes with the user's load factor tier, while the contracted demand value is fixed for the entire month after being reported at the beginning of the month. When the user's actual load factor is at a low tier, the demand price is relatively higher; when the load surges and the maximum demand exceeds the contracted demand value, a penalty fee is charged for the excess.

[0003] Traditional demand management methods typically report contracted demand values ​​based on historical maximum demand experience, relying on manual judgment to determine the suitability for electricity pricing rules and load factor levels. With the operation of the electricity spot market, the timing of user electricity purchases and the charging and discharging operations of adjustable resources such as energy storage interact, and adjustments to reduce maximum demand will alter the amount and cost of spot market purchases. Traditional methods calculate basic electricity cost optimization and spot market purchase costs separately, failing to comprehensively consider the overall electricity cost, resulting in discrepancies between recommended results and actual electricity prices.

[0004] During intraday operation, peak user loads often occur within a short time window. Traditional methods lack demand warning and automatic control mechanisms. Users or electricity retailers cannot call in energy storage to discharge or disconnect interruptible loads before maximum demand is reached, and thus can only accept punitive electricity charges after demand exceeds limits. When an electricity retailer manages multiple users, available regulation resources are dispersed across each user, and traditional methods cannot achieve unified dispatching across the represented user area. Therefore, a user demand optimization control method is needed that combines comprehensive electricity price optimization decision-making with intraday demand warning control in an environment where tiered demand pricing rules and spot market electricity purchases coexist, in order to reduce users' basic electricity expenses and the risk of exceeding limits. Summary of the Invention

[0005] In view of the above-mentioned problems, the present invention provides a user demand optimization control method, system, device and medium.

[0006] Therefore, the technical problem solved by this invention is: how to solve the problem of inaccurate demand optimization for electricity sales companies acting as agents for users under the tiered demand pricing rules, and the lack of real-time control when demand exceeds the limit.

[0007] To solve the above-mentioned technical problems, the present invention provides the following technical solution: a user demand optimization control method, comprising: Obtain a first set of parameters, which includes user equipment capacity parameters, electricity price parameters, load forecast data, and adjustable resource parameters. The electricity price parameters include demand-based electricity price rules tiered according to load factor. Based on the first set of parameters and the goal of minimizing the total electricity cost, a first optimization model is constructed to solve for the billing method, contracted demand value and pre-scheduling plan, wherein the pre-scheduling plan is a monthly-scale scheduling arrangement for adjustable resources; Based on the contracted demand value and real-time load monitoring data, the first demand warning process is executed to obtain the risk of demand exceeding the limit. In response to the aforementioned demand over-limit risk, a first power regulation process is executed and a first control command is issued. The first control command is used to control adjustable resources to suppress demand over-limit.

[0008] As a preferred embodiment of the user demand optimization control method described in this invention, the step of obtaining the first parameter set includes: Obtain user equipment capacity parameters, including transformer operating capacity and voltage level; The electricity price parameters are determined, including single-rate electricity price, two-part electricity price, capacity basic price, demand price benchmark price, and demand price adjustment coefficient. The demand price adjustment coefficient is set according to load factor tiers. Obtain load forecast data, which includes a baseline load forecast sequence and a spot electricity price forecast sequence with a preset time granularity; Obtain adjustable resource parameters, including rated energy storage capacity, rated energy storage charge and discharge power, energy storage charge and discharge efficiency, energy storage cycle life equivalent to cost per kilowatt-hour, maximum amount of interruptible load that can be reduced, and unit compensation cost of interruptible load; The first parameter set is obtained based on the user equipment capacity parameters, the electricity price parameters, the load forecast data, and the adjustable resource parameters.

[0009] As a preferred embodiment of the user demand optimization control method described in this invention, the step of determining the electricity price parameter includes: Obtain the demand-based electricity price benchmark, the single-rate electricity price, the two-part electricity price, and the capacity-based basic electricity price; Multiple load factor tiers are obtained, each load factor tier corresponds to a demand electricity price adjustment coefficient, and the multiple load factor tiers cover a continuous range from low load factor to high load factor; Based on the multiple load factor tiers and the corresponding demand price adjustment coefficients, a demand price adjustment function is generated. The input of the demand price adjustment function is the load factor, and the output is the demand price adjustment coefficient corresponding to the load factor tier where the load factor is located. The demand price adjustment coefficient is used to correct the demand price benchmark price. The demand electricity price benchmark price, the demand electricity price adjustment function, the single-system electricity price, the two-system electricity price, and the capacity basic price are determined as the electricity price parameters.

[0010] As a preferred embodiment of the user demand optimization control method described in this invention, the steps of constructing a first optimization model based on the first parameter set and the overall electricity cost minimization objective, and solving for the billing method, contracted demand value, and pre-scheduling plan include: A comprehensive electricity tariff objective function is constructed, comprising an energy cost item, a transmission and distribution cost item, a basic electricity cost item, and a regulation cost item. The energy cost item is determined based on the spot electricity price forecast sequence and net load power. The transmission and distribution cost item is determined based on the two-part electricity price and net load power. The basic electricity cost item is determined based on the billing method, the contracted demand value, the demand price rule, or the capacity basic price. The regulation cost item is determined based on the energy storage cycle life equivalent per kilowatt-hour and the interruptible load unit compensation cost. The demand pricing rules tiered by load factor are linearized to generate a linearized expression of demand pricing, which includes piecewise linear constraints for continuous load factor intervals. Based on the adjustable resource parameters, constraints are generated for energy storage charging and discharging power, energy storage capacity, interruptible load reduction, and the relationship between maximum demand and contracted demand. Based on the objective function of the total electricity cost, the linearized expression of the demand price, and the constraints, the first optimization model is constructed and solved to obtain the billing method, contract demand value, and pre-schedule plan.

[0011] As a preferred embodiment of the user demand optimization control method described in this invention, the step of performing a first demand warning process based on the contracted demand value and real-time load monitoring data to obtain the demand exceedance risk includes: Acquire real-time load monitoring data, which includes the average power within the current preset time window and the maximum demand that has occurred within the current billing cycle; Based on the average power within the current preset time window and the maximum demand that has occurred within the current billing cycle, and combined with the baseline load forecast sequence for the remaining time period in the load forecast data, the maximum demand forecast value for the whole month is determined. The maximum demand forecast value for the whole month is the maximum demand without calling adjustable resources. The maximum monthly demand forecast is compared with the preset safety threshold of the contracted demand value to obtain the comparison result; If the comparison result indicates that the predicted maximum demand for the whole month exceeds the preset safety threshold, the risk of demand exceeding the limit is obtained.

[0012] As a preferred embodiment of the user demand optimization control method of the present invention, in response to the risk of demand exceeding limits, a first power adjustment process is performed and a first control command is issued, the first control command being used to control adjustable resources to suppress demand exceeding limits, including the following steps: In response to the risk of demand exceeding the limit, a control target power is determined based on the contracted demand value, wherein the control target power is the upper limit of the average power within the current preset time window; A second optimization model is constructed. The optimization objective of the second optimization model is to minimize the adjustment cost under the constraint that the average power within the current preset time window does not exceed the control target power. The decision variables of the second optimization model include energy storage discharge power and interruptible load reduction. Solving the second optimization model yields the energy storage discharge power value and the interruptible load reduction value; Based on the energy storage discharge power value and the interruptible load reduction value, the first control command is generated and issued. The first control command is used to control the energy storage system and the interruptible load to suppress demand exceeding the limit within the current preset time window.

[0013] As a preferred embodiment of the user demand optimization control method described in this invention, the step of performing a first demand warning process based on the contracted demand value and real-time load monitoring data to obtain the demand exceedance risk includes: The current load rate is determined based on the real-time load monitoring data. The current load rate is the ratio of the average power of the current billing period to the maximum demand of the current billing period. If the demand exceedance risk is not triggered, the load rate crossing trend is determined based on the current load rate and the demand electricity price rule based on the load rate. The load rate crossing trend is used to indicate whether the current load rate will enter the load rate tier range with a lower demand electricity price adjustment coefficient. When the load rate transition trend indicates that the current load rate will enter a load rate tier with a lower demand electricity price adjustment coefficient, the preset safety threshold is reduced to obtain an updated preset safety threshold. Based on the updated preset safety threshold, the first demand warning process is re-executed to obtain the demand exceedance risk.

[0014] This invention provides a user demand optimization control system.

[0015] To solve the above-mentioned technical problems, the present invention provides the following technical solution: a user demand optimization control system, comprising: The parameter acquisition module is used to acquire a first parameter set, which includes user equipment capacity parameters, electricity price parameters, load forecast data and adjustable resource parameters. The electricity price parameters include demand-based electricity price rules tiered according to load factor. The optimization decision module is used to construct a first optimization model based on the first parameter set and the goal of minimizing the total electricity cost, and solve for the billing method, contract demand value and pre-schedule plan; The demand warning module is used to perform the first demand warning process based on the contracted demand value and real-time load monitoring data to obtain the risk of demand exceeding the limit; The power control module is configured to respond to the risk of demand exceeding limits by performing a first power regulation process and issuing a first control command. The first control command is used to control adjustable resources to suppress demand exceeding limits. The present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the user demand optimization control method described above.

[0016] The present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the user demand optimization control method described above.

[0017] The beneficial effects of this invention are as follows: This application obtains a first parameter set including demand pricing rules tiered by load factor, constructs a first optimization model with the goal of minimizing total electricity costs, and solves for the billing method and contracted demand value. This allows electricity retailers to report contracted demand values ​​that match operating conditions based on the model results, reducing demand pricing discount losses and punitive costs caused by experience-based reporting. This application performs a first demand warning process based on contracted demand value and real-time load monitoring data. Upon the occurrence of demand exceeding limits, it performs a first power regulation process and issues a first control command, enabling energy storage systems and interruptible loads to operate within the time window, reducing the probability of actual maximum demand exceeding the contracted demand value. This application adjusts the warning threshold when there is a trend of load factor crossing tiers, reducing demand pricing costs in conjunction with demand pricing tier rules. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of the overall process of the user demand optimization control method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the overall process of parameter acquisition and electricity price determination method according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the overall process of constructing and solving the first optimization model according to an embodiment of the present invention. Detailed Implementation

[0020] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of the present invention.

[0021] Example 1, refer to Figure 1 This is one embodiment of the present invention, which provides a user demand optimization control method, including: M1, obtain the first parameter set, which includes user equipment capacity parameters, electricity price parameters, load forecast data and adjustable resource parameters, wherein the electricity price parameters include demand electricity price rules tiered according to load factor; M2, based on the first parameter set and the goal of minimizing the total electricity cost, constructs a first optimization model to solve for the billing method, contracted demand value and pre-scheduling plan, wherein the pre-scheduling plan is a monthly-scale scheduling arrangement for adjustable resources; M3, based on the contracted demand value and real-time load monitoring data, performs the first demand warning process to obtain the demand over-limit risk; M4, in response to the aforementioned demand over-limit risk, performs a first power regulation process and issues a first control command, the first control command being used to control adjustable resources to suppress demand over-limit.

[0022] It should be noted that in user-side demand management scenarios where tiered demand pricing rules and spot electricity purchases coexist, the basic electricity charge is determined by both the billing method and the contracted demand value, while the maximum actual demand generated within a day directly relates to whether punitive charges are triggered. This embodiment orchestrates pre-monthly decisions and intraday control into a continuous data processing link. Through four stages, M1 to M4, the contracted demand value obtained pre-monthly can be verified and dynamically protected in real time within the day. This orchestration method links optimal overall electricity pricing with demand exceedance risk control under the same parameter system, avoiding a disconnect between pre-monthly decisions and intraday execution.

[0023] Specifically, when obtaining the first parameter set in M1, user equipment capacity parameters, electricity price parameters, load forecast data, and adjustable resource parameters are aggregated into a single standardized input. User equipment capacity parameters include transformer operating capacity. Voltage levels are used to define the charging base when billing by capacity; electricity price parameters include demand pricing rules tiered by load factor, which are based on monthly load factor. With demand-based electricity price adjustment coefficient The piecewise function form of the adjusted demand electricity price Load forecasting data includes a baseline load forecasting sequence with a preset time granularity. and spot electricity price forecast series Adjustable resource parameters include rated energy storage capacity. Rated charge and discharge power Charge / discharge efficiency, cycle life, and cost per kilowatt-hour. Maximum cutoff amount of interruptible load and unit compensation cost Each parameter is aligned with a 15-minute time window and stored in the same data structure to form the first parameter set, providing a unified input for subsequent models.

[0024] Furthermore, when constructing the first optimization model in M2, the objective is to minimize the total electricity cost, and the objective function expression is: ;in The cost of spot electricity purchase is equal to the sum of the spot electricity price for each period of the month and the net load power. The net load power is obtained by superimposing the baseline load with the charging and discharging of energy storage and the reduction of interruptible load. The transmission and distribution electricity charge is calculated by multiplying the net load electricity consumption by the two-part electricity price. calculate; For basic electricity charges, binary variables are used to select between demand-based billing and capacity-based billing. The cost of adjustable resource allocation includes energy storage charging and discharging losses and interrupted load compensation. The solution outputs a billing method, a recommended contracted demand value, and a monthly pre-scheduling plan for energy storage and interruptible loads. The pre-scheduling plan provides setpoints for energy storage charging and discharging power and interruptible load reduction at each time point.

[0025] In M3, a first demand warning is performed based on the contracted demand value and real-time load monitoring data. The real-time load monitoring data includes the average power within the current preset time window and the maximum demand that has occurred within the current billing cycle. By combining the baseline load forecast sequence for the remaining period, the maximum monthly demand forecast is estimated without invoking adjustable resources. .Will Compared with the preset safety threshold of the contract demand value, when When the preset safety threshold is exceeded, it is determined that there is a risk of demand exceeding the limit, and subsequent power adjustment actions are triggered.

[0026] Furthermore, in response to the aforementioned demand exceedance risk, M4 performs a first power regulation process. The target power is set at the contracted demand value or slightly higher than the contracted value. The average power within the current preset time window is satisfied. No more than Under the condition of minimizing adjustment costs, allocate energy storage discharge power. and interruptible load reduction The system generates a first control command and sends it to the user side to control the energy storage system and interruptible loads to operate within the current time window, ensuring that the average power does not exceed the limit at the end of the window. The first control command simultaneously carries the energy storage discharge power setpoint and the interruptible load switch signal. These two types of commands correspond to the active power setpoint of the energy storage converter and the open / close position of the load switch, respectively.

[0027] It should be noted that the pre-scheduling plan output by M2 serves as the initial boundary for intraday control, while M3 and M4 adjust the initial boundary based on actual load changes. When the actual load is lower than the predicted value, the energy storage charging schedule in the pre-scheduling plan is executed as usual; when the actual load surges, the first power regulation process adds discharge or load shedding to the pre-scheduling plan. The connection between the two time scales is achieved through the contracted demand value, obtained from the solution obtained a month ago. Simultaneously serving as a benchmark for the safety threshold in M3 and a basis for determining the control target power in M4, this dual-time-scale linkage architecture ensures that the optimization results from the previous month no longer remain merely report suggestions, but are directly transformed into executable real-time control boundaries.

[0028] On the other hand, the first optimization model also needs to include constraints on the relationship between the maximum demand and the contracted demand value, i.e. Must be less than or equal to A certain multiple of the target value is charged, with any excess charged at a multiple rate. This penalty rule is embedded in the objective function as a penalty function. Boundary constraints for energy storage and interruptible loads are generated by adjustable resource parameters, including... , , Energy storage capacity is constrained by its rated capacity. The limit ensures that the remaining energy stored at any given time does not exceed the available range.

[0029] For example, the operating capacity of transformers for medium-sized users represented by a certain electricity sales company. The system has an 800kVA capacity, a historical maximum demand of approximately 520kW, a rated energy storage capacity of 400kWh, a rated charge / discharge power of 200kW, and interruptible auxiliary load of approximately 20kW. A model obtained a month ago showed that the optimal billing method is demand-based billing, and the recommended contracted demand value is... The power storage capacity is 490kW, with a pre-scheduled plan for daily peak discharge of 100kW in the morning and 50kW in the evening. This plan, through the timing of charging during off-peak hours at night and discharging during peak hours, allows energy storage to both serve peak shaving and take into account the benefits of spot price differences.

[0030] At a certain point during the day, real-time monitoring detected that the average power over the current 15 minutes would reach 493kW, exceeding the 95% safety threshold of the contracted demand value. The first demand warning process then output a demand exceedance risk warning. Subsequently, the first power adjustment process used 490kW as the control target power, compared the adjustment costs of different power allocation combinations, and obtained an allocation result of 80kW of energy storage discharge and 15kW of interruptible load shedding. After issuing the first control command, the average power was locked at 489.5kW at the end of the 15-minute window.

[0031] Understandably, through continuous actions from M1 to M4, the maximum monthly demand did not exceed the contract value, the load factor reached 72.3%, and the demand electricity price was settled at 0.9 times the benchmark price, resulting in a total monthly electricity cost saving of approximately 8,200 yuan compared to capacity-based billing. Throughout the process, each step is linked by three data objects: the first parameter set, the contract demand value, and the demand exceeding the limit risk, forming a complete closed loop of data-driven, pre-monthly decision-making, and intraday control linkage.

[0032] Example 2 Reference Figure 2 In some embodiments, the step of obtaining the first parameter set may further include the following steps: M1.1, Obtain user equipment capacity parameters, which include transformer operating capacity and voltage level; M1.2, Determine the electricity price parameters, which include single-rate electricity price, two-part electricity price, capacity basic price, demand price benchmark price, and demand price adjustment coefficient. The demand price adjustment coefficient is set according to load factor tiers. M1.3, acquire load forecast data, which includes a baseline load forecast sequence and a spot electricity price forecast sequence with a preset time granularity; M1.4, obtain adjustable resource parameters, including rated energy storage capacity, rated energy storage charge and discharge power, energy storage charge and discharge efficiency, energy storage cycle life equivalent to the cost per kilowatt-hour, maximum amount of interruptible load that can be reduced, and unit compensation cost of interruptible load; M1.5, based on the user equipment capacity parameters, the electricity price parameters, the load forecast data, and the adjustable resource parameters, obtain the first parameter set.

[0033] Understandably, the first parameter set originates from four data sources: user profiles, power grid price lists, spot market clearing results, and user-side resource ledgers. The time bases and units of measurement for each data source are not consistent. Therefore, in large-scale user management, the raw data cannot be directly fed into optimization calculations. The acquisition process needs to be broken down into four parallel actions: acquiring user equipment capacity parameters, determining electricity price parameters, acquiring load forecast data, and acquiring adjustable resource parameters. These are then uniformly aggregated into the first parameter set. The purpose of this breakdown is to ensure that the source of each parameter is traceable and its definition verifiable. Subsequent updates to any parameter only require refreshing the corresponding sub-step, without affecting other parameters.

[0034] In this embodiment, when M1.1 obtains the user equipment capacity parameters, it reads the transformer operating capacity from the user's electricity consumption file. and voltage level. Used for calculating basic electricity charges under capacity-based billing. Voltage levels are used to determine the two-part electricity price in the transmission and distribution tariff schedule. Basic electricity price per unit capacity and demand-based electricity price benchmark price The corresponding value is then determined. For example, for 10kV voltage level users, the electricity price value in the corresponding row is directly read from the price list; if the transformer capacity in the user file does not match the nameplate on site, it is updated with the on-site verified value. Voltage level is also used to determine whether a user falls within the scope of the two-part tariff. Users with a transformer operating capacity of 100kVA or more are included in the two-part billing system.

[0035] Furthermore, when determining the electricity price parameters in M1.2, the single-rate electricity price, two-part electricity price, capacity base price, demand base price, and demand adjustment coefficient must all be included in the electricity price parameter set. The demand adjustment coefficient is set according to load factor tiers, with one adjustment coefficient corresponding to each tier, used to subsequently form the demand adjustment function. This step only completes parameter reading and does not perform discount calculations; discount calculations are completed in subsequent sub-steps after determining the electricity price parameters. The single-rate electricity price is used for calculating energy costs for users not using two-part pricing or when using single-rate billing. The two-part electricity price is used for calculating transmission and distribution charges for two-part users. The capacity base price and demand base price serve as the price base for the two basic electricity charge billing methods, respectively.

[0036] In practical applications, when M1.3 acquires load forecast data, it reads the baseline load forecast sequence with a preset time granularity. and spot electricity price forecast series The baseline load forecast sequence describes the power consumption in each time window under unregulated conditions, obtained by fitting historical power curves and factors such as weather and production plans. The spot electricity price forecast sequence describes the purchase price of electricity in each time window, derived from the day-ahead spot market clearing results. Both sequences are aligned using the same time index, with a time granularity consistent with the demand metering window. If baseline load forecast data for a certain time window is missing, the median value is estimated using two known data points before and after the missing location, based on their distance. Specifically, the difference between the previous and next known values ​​is divided by the time interval, and then multiplied by the interval between the missing location and the previous known value to obtain the estimated value for the missing location.

[0037] Meanwhile, when M1.4 acquires adjustable resource parameters, the energy storage parameters include the rated capacity. Rated charge and discharge power Charge and discharge efficiency, cycle life, and cost per kilowatt-hour. Interruptible load parameters include the maximum amount that can be reduced. and unit compensation cost (RMB / kWh). Rated capacity The upper and lower boundaries of the energy storage capacity are defined, the rated charge / discharge power defines the upper and lower boundaries of the energy storage charge / discharge power within each time window, the cycle life cost per kilowatt-hour represents the battery loss cost corresponding to each kilowatt-hour of charge / discharge, and the interruptible load unit compensation cost represents the compensation cost corresponding to each 1kW load reduction for 1 hour, i.e., billed based on the reduced capacity (power × duration). These parameters are used, on the one hand, to generate the upper and lower power constraints in the first optimization model before the month, and on the other hand, to calculate the adjustment cost in the second optimization model within the day.

[0038] For example, M1.5, based on the above four types of parameters, writes all values ​​into the same data structure according to user identifier and time index to obtain the first parameter set. Within the first parameter set of the same user, the time coverage of each parameter is consistent, covering the entire billing cycle; the sets of different users are stored independently for subsequent models to call. During the writing process, electricity price parameters are automatically matched according to user voltage level, load parameters are arranged according to time window, and resource parameters are stored by resource type, forming a standardized data table containing user profile area, electricity price configuration area, load forecast area, and resource parameter area.

[0039] It should be noted that the preset time granularity is 15 minutes, which is consistent with the metering window for electricity user demand settlement and can be directly read from the technical parameters of the user's metering device. In application, it can be adjusted within the range of 5 to 60 minutes according to the local power grid metering rules. This application uses 15 minutes for users participating in the spot market, so that each data point of the day-ahead spot price sequence and the baseline load sequence corresponds exactly to a demand metering window, which facilitates the subsequent calculation of electricity costs by accumulating according to the window.

[0040] For example, for a textile user A, the following data is collected: transformer operating capacity 800kVA, voltage level 10kV, demand electricity price benchmark price 40 yuan / kW·month, capacity basic price 30 yuan / kVA·month, 15-minute granular baseline load sequence and day-ahead spot price sequence, energy storage rated capacity 400kWh, charging and discharging power 200kW, cycle life equivalent cost per kilowatt-hour 0.15 yuan / kWh, interruptible load 20kW, unit compensation cost 0.3 yuan / kWh. The above data is combined to form the first parameter set for this user, which can be directly called by the monthly optimization model.

[0041] Example 3 Reference Figure 2 In some embodiments, the step of determining the electricity price parameters may further include the following steps: M1.21, obtain the demand-based electricity price benchmark, single-rate electricity price, two-part electricity price, and capacity basic price; M1.22, obtain multiple load factor tiers, each load factor tier corresponds to a demand electricity price adjustment coefficient, the multiple load factor tiers cover a continuous range from low load factor to high load factor; M1.23, Based on the multiple load factor tiers and the corresponding demand price adjustment coefficients, a demand price adjustment function is generated. The input of the demand price adjustment function is the load factor, and the output is the demand price adjustment coefficient corresponding to the load factor tier where the load factor is located. The demand price adjustment coefficient is used to correct the demand price benchmark price. M1.24, the demand electricity price benchmark price, the demand electricity price adjustment function, the single-system electricity price, the two-system electricity price, and the capacity basic price are determined as the electricity price parameters.

[0042] It should be noted that the demand-based electricity price is no longer a fixed value in the fourth regulatory cycle, but rather a tiered value that varies according to the user's monthly load factor. To accurately incorporate this tiered value into the optimization model, the electricity price parameter needs to be split into two parts: a base price and an adjustment function. The base price includes the demand-based benchmark price, the single-part tariff price, the two-part tariff price, and the basic capacity price. The adjustment function describes the relationship between the load factor and the adjustment coefficient. This split allows the subsequent model to automatically select the corresponding demand-based price based on the load factor tier when calculating the basic electricity charge.

[0043] In practical applications, when M1.21 obtains the four basic electricity price values, it reads the values ​​from the corresponding rows in the transmission and distribution price tables for each voltage level published by the power grid company. Demand-based electricity price benchmark. The first is the original demand electricity price without discounts, in yuan / kW·month; the second is the electricity price under the single-rate billing system, in yuan / kWh; the third is the two-part electricity price. This refers to the transmission and distribution electricity price per kilowatt-hour for two-part tariff users, expressed in yuan / kWh; basic capacity tariff. This is the basic electricity price when billing is based on transformer capacity, and the unit is yuan / kVA·month. All four values ​​are related to the user's voltage level. The values ​​may differ for 10kV users and 35kV users. When reading the price list, the voltage level in the user's file should be used as the reference to locate the row number.

[0044] On the other hand, when M1.22 obtains multiple load factor tiers, it must ensure that all tiers are consecutive, covering a complete and continuous range from low to high load factors. Each tier corresponds to a demand rate adjustment coefficient. The adjustment coefficient represents the discount or increase percentage of the demand electricity price relative to the benchmark price at this tier. An example rule is: the monthly load factor... hour, ;when hour, ;when hour, This rule states that the lower the load factor, the higher the demand electricity price; a 10% discount is applied when the load factor reaches 70% or above. Tier boundary values, such as 30% and 70%, are assigned to higher tiers to avoid situations where the tier cannot be determined when the load factor equals the boundary value.

[0045] Furthermore, when generating the demand-price adjustment function, M1.23 organizes the multiple load factor tiers and their corresponding demand-price adjustment coefficients into a lookup table. The lookup input is the real-time or predicted monthly load factor. The table lookup process is as follows: First, compare the load factor value with the boundaries of each gear level in turn to find the gear level range in which the load factor falls, and then retrieve the corresponding value for that range. The adjusted demand electricity price is calculated using the following formula: The multiplication operation in this formula represents scaling the base electricity price according to the load factor level. The higher the load factor, the smaller the scaling ratio, and finally obtains the user's demand electricity price per unit for the current month.

[0046] Preferably, M1.24 combines five types of data—the demand price benchmark price, the demand price adjustment function, the single-rate electricity price, the two-part electricity price, and the capacity basic price—to determine the electricity price parameters. The demand price adjustment function is stored as a piecewise constant function in the electricity price parameter set, alongside the base price. When the first optimization model is subsequently invoked, the piecewise intervals and coefficient values ​​of the adjustment function are directly read. By introducing auxiliary binary variables, the piecewise constant function is transformed into a linear constraint, thereby completing the solution within the mixed integer programming framework.

[0047] For example, a user's monthly load factor is calculated to be 72.3%, and a table is consulted to determine that this load factor falls within the range... Gear, corresponding adjustment coefficient If the demand electricity price is the benchmark price The adjusted demand electricity price is calculated at yuan / kW·month. Yuan / kW·month. If the user's load factor is only 68.5%, then it falls into... The tier has an adjustment coefficient of 1.0 and a demand electricity price of 40 yuan / kW·month. Compared with the tier, the monthly demand electricity price per kilowatt is 4 yuan more, thus reflecting the direct economic difference brought about by the load factor tier.

[0048] Example 4 Reference Figure 3 In some embodiments, the step of constructing a first optimization model based on the first parameter set and the overall electricity cost minimization objective, and solving for the billing method, contracted demand value, and pre-scheduling plan, further includes the following steps: M2.1, Construct a comprehensive electricity cost objective function, which includes an electricity cost item, a transmission and distribution cost item, a basic electricity cost item, and a regulation cost item; M2.2 linearizes the demand pricing rules tiered by load factor to generate a linearized expression for the demand pricing. M2.3, based on the adjustable resource parameters, generates energy storage charging and discharging power constraints, energy storage capacity constraints, interruptible load reduction constraints, and the relationship constraints between maximum demand and contracted demand values; M2.4, based on the total electricity cost objective function, the linearized expression of demand price, and the constraints, constructs and solves the first optimization model to obtain the billing method, contract demand value, and pre-schedule plan.

[0049] The comprehensive electricity cost objective function incorporates all electricity costs for the user in a single month into a unified objective, avoiding local optima caused by itemized decision-making. The objective function is written as: ;in Total monthly electricity bill For electricity costs, For power transmission and distribution costs, This is the basic electricity fee item. To adjust for cost items, all four expenses are calculated as the cumulative value of all 15-minute time windows within a calendar month. The number of time windows is denoted as... .

[0050] Specifically, the electricity cost item Calculate using the following formula: ;in For the first Spot electricity prices within a specific time window, For the first Net load power for each time window, The time window length is set to 0.25 hours. The expression for net load power is: ,in For baseline load, This represents the charging and discharging power of energy storage. A positive value is used during charging, and a negative value is used during discharging. The amount of interruptible load reduction is negative when it is reduced. Therefore, the net load power reflects the actual amount of electricity purchased from the grid by the electricity user.

[0051] Furthermore, the transmission and distribution costs item Calculate using the following formula: ;in This is a two-part electricity tariff, expressed in yuan / kWh. This charge is based on net load electricity consumption and shares the same net load power series as spot electricity charges. Basic electricity tariff items. Through binary variables Choose: If If it means billing is based on demand, then ;like If it means billing is based on capacity, then The two billing methods are mutually exclusive; the model uses binary variables to ensure that only one billing method is active at any given time. (Adjustment cost item) Calculate using the following formula: ;in For energy storage charging power, For energy storage discharge power, To reduce power for interruptible loads, The cost per kilowatt-hour is calculated based on the energy storage cycle life. The unit compensation cost for interruptible load (yuan / kWh) is given in the formula. This refers to the compensation cost incurred by interruptible load reduction within that time window.

[0052] Optionally, when M2.2 linearizes the demand pricing rules based on load factor tiers, since the demand pricing adjustment function is in piecewise constant form, directly substituting it into the objective function would lead to nonlinear terms. Therefore, an auxiliary binary variable is introduced. Each of the three load factor levels corresponds to a different load factor, and the following constraints are added: When the load factor When it falls into a certain gear, the corresponding gear The value is 1, and the rest are 0. Load factor It is determined by the ratio of the average monthly power to the maximum demand, i.e. ,in The average power for the entire month. This represents the maximum monthly demand. Demand-based electricity price. Expressed as This transforms the piecewise constant function into a linear expression, which enables the model to be solved within a mixed-integer programming framework.

[0053] Specifically, when generating constraints in M2.3, the energy storage charging and discharging power constraint is: and Simultaneously, charging and discharging cannot occur simultaneously within each time window; therefore, mutual exclusion constraints are added. The condition that the product is 0 can be transformed into a linear constraint by introducing an auxiliary variable. The energy storage capacity constraint is determined by the rated capacity. Limited energy storage capacity satisfy And the recursive relationship between adjacent time windows is ;in For charging efficiency, Discharge efficiency is directly provided by the technical parameters of the energy storage device. The interruptible load reduction constraint is... The relationship between maximum demand and contracted demand is constrained as follows: ,in To allow for a certain multiple of excess, if the actual maximum demand exceeds the contract value, the excess portion will be charged at 1.5 times the price. This penalty rule is built into the objective function as a penalty function.

[0054] Furthermore, based on the aforementioned comprehensive electricity cost objective function, the linearized expression of demand price, and the constraints, M2.4 constructs a complete mixed-integer quadratic constrained programming model. The model's decision variables include binary variables. Continuous variables The model outputs the optimal billing method after solving. If demand-based billing is selected, the recommended contract demand value will be output. and energy storage charging and discharging power and interruptible load reduction The monthly-scale pre-scheduling plan provides initial settings for subsequent intraday control.

[0055] For example, the operating capacity of a user's transformer kVA, basic electricity price per unit capacity Yuan / kVA·month, demand-based electricity price benchmark Yuan / kW·month. When solving the model, first compare... and The total electricity cost of the two options, after iterative calculation The overall electricity cost is lower, so demand-based billing is recommended, with a contracted demand value of 490kW. At this point, if the user's load factor reaches 70% or higher, the basic electricity cost will be... Yuan / month; if charged by capacity, then... The demand-based billing scheme saves 6360 yuan per month. The model also outputs a pre-scheduled plan for energy storage with a daily morning peak discharge of 100kW and an evening peak discharge of 50kW, ensuring that the maximum monthly demand does not exceed 490kW.

[0056] Example 5 In some embodiments, the step of performing a first demand warning based on the contracted demand value and real-time load monitoring data to obtain the risk of demand exceeding limits further includes the following steps: M3.1, acquire real-time load monitoring data, which includes the average power within the current preset time window and the maximum demand that has occurred within the current billing cycle; M3.2, based on the average power within the current preset time window and the maximum demand that has occurred within the current billing cycle, and combined with the baseline load forecast sequence for the remaining time period in the load forecast data, determine the maximum demand forecast value for the whole month. The maximum demand forecast value for the whole month is the maximum demand without calling adjustable resources. M3.3, compare the predicted maximum demand for the whole month with the preset safety threshold of the contract demand value to obtain the comparison result; M3.4, when the comparison result indicates that the predicted maximum demand for the whole month exceeds the preset safety threshold, the demand exceedance risk is obtained.

[0057] It should be noted that the risk of demand exceeding the limit is the trigger condition for intraday control actions, and its judgment logic needs to rely on both the actual measured data that has already occurred and the forecast data that has not yet occurred. The actual measured data that has occurred comes from the metering device, and the forecast data comes from the remaining part of the baseline load forecast sequence. The two are combined to form an estimate of the maximum demand for the whole month, which is then compared with the preset safety threshold of the contracted demand value to obtain an objective signal of the risk of exceeding the limit.

[0058] In this application, when M3.1 acquires real-time load monitoring data, it continuously collects power values ​​in 15-minute windows through the user-side metering device, and the average power within the current preset time window is recorded as... This value is the arithmetic mean of 15 minute-level power samples within the window. The maximum demand that has occurred within the current billing cycle is denoted as... Retrieve all time windows that have ended this month. The maximum value, mathematically expressed as ,in This represents the sequence number of the currently completed time window. Real-time load monitoring data is written to the time-series database immediately after each data collection, for use by the early warning logic.

[0059] Furthermore, M3.2 determines the maximum demand forecast for the entire month. At that time, The larger of the two values ​​is taken as the maximum value in the baseline load forecast sequence for the remaining period. The calculation formula is: This calculation represents the most conservative estimate of the maximum monthly demand without utilizing any adjustable resources. If the predicted power for the remaining period is lower than the actual power demand... ,but If the remaining time period has a higher than The predicted power, then Take the maximum value in the forecast sequence. Since the time granularity of the baseline load forecast sequence is 15 minutes, the maximum value can be obtained by comparing windows one by one.

[0060] Furthermore, M3.3 will When comparing the contract demand value with a preset safety threshold, the threshold value is first calculated, and the preset safety threshold is the contract demand value. With proportionality coefficient The product of the two is compared using the logic of judging inequalities. Whether the condition is met or not, if the condition is met, the comparison result indicates the existence of a risk of exceeding the limit; if the condition is not met, the comparison result indicates operational safety. Proportionality coefficient. The value of determines the sensitivity of the warning. The larger the size, the more conservative it is; the smaller the size, the more sensitive it is.

[0061] For example, contract demand value kW, proportional coefficient The safety threshold is 465.5kW. If maximum demand has already occurred... kW, the predicted maximum power for the remaining period is 450kW, then If the kW value is greater than 465.5kW, the comparison result will trigger an early warning. kW, the predicted maximum power for the remaining period is 440kW, then kW, less than 465.5kW, will not trigger a warning.

[0062] In this application, M3.4 is used to characterize the comparison results. When the demand exceeds a preset safety threshold, a demand over-limit risk signal is output. This signal is a binary flag; a value of 1 indicates a risk of over-limit, and a value of 0 indicates no risk. The demand over-limit risk signal serves as the trigger condition for subsequent first-stage power regulation processing. This signal is also correlated with the demand within the current time window. , These values ​​are then passed to the power regulation module for use in subsequent model optimization.

[0063] It should be noted that the proportionality coefficient The method for obtaining the threshold is as follows: The ratio of the number of demand exceedances to the number of load surges is calculated from the historical 12 months of operational data, and this ratio is used as the initial sensitivity basis; the preferred setting range is 90% to 98%; this application uses 95% for users with sufficient adjustable resources and fast response speed, and 90% for users with fewer adjustable resources or slow response speed. Through the above rules, the proportional coefficient can be automatically adjusted according to the user's adjustable resource level, avoiding false alarms due to overly lenient safety threshold settings, and also avoiding unnecessary adjustments due to overly tight settings.

[0064] For example, at 11:00 AM on a certain day, a user has already experienced maximum demand. If the baseline load forecast for the remaining period is 500kW during the evening peak, then... kW. Contracted demand value kW, with a preset safety threshold of 465.5kW. If the kW exceeds 465.5kW, a demand warning is triggered, indicating a risk of demand exceeding the limit. This risk signal drives the real-time control layer to immediately initiate power regulation to prevent the actual maximum demand from exceeding the contract value due to a surge in evening peak load.

[0065] Example 6 In some embodiments, the step of performing a first power regulation process and issuing a first control command in response to the risk of demand exceeding the limit further includes the following steps: M4.1, in response to the risk of demand exceeding the limit, determines the control target power based on the contracted demand value, wherein the control target power is the upper limit of the average power within the current preset time window; M4.2, Construct a second optimization model. The optimization objective of the second optimization model is to minimize the adjustment cost under the constraint that the average power within the current preset time window does not exceed the control target power. The decision variables of the second optimization model include energy storage discharge power and interruptible load reduction. M4.3, solve the second optimization model to obtain the energy storage discharge power value and the interruptible load reduction value; M4.4, Based on the energy storage discharge power value and the interruptible load reduction value, generate the first control command and issue the first control command. The first control command is used to control the energy storage system and the interruptible load to suppress demand exceeding the limit within the current preset time window.

[0066] It should be noted that the role of the first power regulation process is to transform the risk of demand exceeding limits into a specific, actionable power regulation amount. The real-time control time window is typically only 15 minutes, therefore the power regulation calculation must be sufficiently simple and fast, and cannot rely on complex iterative solutions. This embodiment employs a short-timescale quadratic programming model, with the optimization objective of minimizing regulation costs, to rapidly allocate energy storage discharge power and interruptible load reduction within the time window.

[0067] Specifically, in response to the aforementioned demand exceedance risk, M4.1 determines the target control power based on the contracted demand value. . This is the upper limit of the average power within the current preset time window, typically taken as... This refers to the recommended contract demand value obtained from optimization a month ago. If the maximum demand that has occurred in the current month is not yet close to the contract value, and the remaining time in the current window is short, the limit can be appropriately relaxed. to The limit is 101%, but this value must be ensured to be lower than the trigger value for exceeding demand limits to avoid incurring penalty electricity charges. Confirm. Then, the power margin of the current window is calculated in real time. , A positive value indicates that the current average power has exceeded the control target and immediate adjustment is required. A negative value indicates that the limit has not yet been exceeded, but considering the possibility of increased load in the remaining time, adjustments will still be made as needed.

[0068] Meanwhile, when M4.2 constructs the second optimization model, the decision variable is the energy storage discharge power. and interruptible load reduction The optimization objective is to minimize the adjustment cost, expressed as: ;in Cost per kilowatt-hour (RMB / kWh) is calculated based on the energy storage cycle life. Compensation cost per unit of interruptible load (RMB / kWh). This is based on the duration of each control window. Since the cost is fixed, when comparing costs at the beginning of the window, we can directly compare based on power values; the higher the power, the higher the total compensation cost. Constraints include power balance constraints and resource ceiling constraints. The power balance constraint is... This indicates that the net power after the combined effects of energy storage discharge and load shedding does not exceed the control target; the resource upper limit constraint is... and The energy storage discharge power cannot exceed the rated discharge power, and the interruptible load reduction cannot exceed the maximum reduction amount. Furthermore, if the energy storage is already charging within the current time window, the charging power will be adjusted in the opposite direction, while also being constrained by the energy storage capacity. Restrictions.

[0069] For example, when solving the second optimization model in M4.3, the optimal solution is obtained by discrete enumeration comparison. The energy storage discharge power is set between 0 and... Within the range, candidate discrete values ​​are divided in steps of 1kW, and the interruptible load reduction is set between 0 and... Within the range, candidate discrete values ​​are divided into steps of 1kW. The power balance constraints of each pair of candidate values ​​are calculated sequentially. For combinations that satisfy the constraints, the adjustment cost is calculated. After comparing all cost values, the pair of candidate values ​​with the lowest cost is selected as the solution. The total number of calculations for this enumeration is... For a 200kW energy storage and 20kW load shedding scenario, a total of 201×21=4221 comparisons are required, which can be completed within seconds, meeting the real-time requirements of a 15-minute window.

[0070] Furthermore, M4.4 generates a first control command based on the solved energy storage discharge power value and interruptible load reduction value. This first control command includes two signals: the first is the energy storage discharge power setpoint, sent to the energy storage converter controller to adjust the converter's active power setpoint to... The second path is the interruptible load switch signal, which is sent to the load switch controller. When the value is greater than 0, the corresponding switch is disconnected, and the specified interruptible load is cut off. When the value is 0, the original state is maintained. The two signals are sent in parallel through the local communication bus. The energy storage converter adjusts its output power within 50 milliseconds after receiving the set value, and the load switch completes the opening and closing within 200 milliseconds after receiving the signal.

[0071] For example, at a certain moment kW, kW, power margin kW. The maximum discharge power of the energy storage is 200kW, with a unit cost of 0.15 yuan / kWh; the maximum interruptible load reduction is 20kW, with a unit cost of 0.3 yuan / kWh. After enumeration and comparison, the optimal combination is 80kW energy storage discharge and 15kW load shedding, with a regulation cost of [missing information]. Yuan, satisfying power balance constraints The combined cost is lower than the cost of simply discharging 95kW of energy using energy storage. The cost is 14.25 yuan if only 95kW of energy storage is used for discharge, which also satisfies the constraints. Therefore, the optimal solution may be 95kW of energy storage discharge and 0kW of load shedding. The specific choice depends on the actual enumeration results. After the first control command is issued, 95kW of energy storage discharge is performed. The average power at the end of the current window is 398kW, which does not exceed 490kW. At the same time, the adjusted actual power value is written back to the monitoring database for use by the early warning logic of the next window.

[0072] Example 7 In some embodiments, the step of performing a first demand warning based on the contracted demand value and real-time load monitoring data to obtain the risk of demand exceeding limits further includes the following steps: M3.41, the current load rate is determined based on the real-time load monitoring data, wherein the current load rate is the ratio of the average power of the current billing cycle to the maximum demand of the current billing cycle; M3.42, if the demand exceedance risk is not triggered, determine the load rate crossing trend based on the current load rate and the demand electricity price rule based on the load rate tier. The load rate crossing trend is used to indicate whether the current load rate will enter the load rate tier range with a lower demand electricity price adjustment coefficient. M3.43, when the load rate transition trend indicates that the current load rate will enter a load rate tier with a lower demand electricity price adjustment coefficient, the preset safety threshold is reduced to obtain an updated preset safety threshold; M3.44, based on the updated preset safety threshold, re-execute the first demand warning process to obtain the demand exceeding the limit risk.

[0073] Understandably, after demand pricing is tiered based on load factor, users have an incentive to cross tiers. If the load factor is close to the boundary of a higher tier this month, actively reducing maximum demand can increase the load factor, thereby lowering the demand pricing adjustment coefficient and reducing the basic monthly electricity bill. In this embodiment, when the risk of demand exceeding the limit is not triggered, an additional load factor tier crossing trend judgment is performed, and the safety threshold is dynamically adjusted based on the judgment result, so that the early warning control serves the goal of optimizing electricity price discounts.

[0074] Furthermore, when M3.41 determines the current load rate based on the real-time load monitoring data, the formula for calculating the current load rate is as follows: ,in This is the average power of all completed time windows within the current billing cycle. This represents the maximum demand that has occurred within the current billing cycle. The average power is obtained by calculating the arithmetic mean of the average power over each 15-minute window, with the maximum demand being the maximum of the average power across all windows. As the billing cycle progresses, and As the load factor is constantly updated, it also changes accordingly. For example, if a user's average power consumption from the beginning of the month to date is 350kW, and their current maximum demand is 520kW, then the current load factor is... .

[0075] In this embodiment, M3.42 determines the load factor crossing trend based on the current load factor and the demand pricing rules tiered by load factor, provided that the demand exceedance risk has not been triggered. The method for determining the crossing trend is as follows: the current load factor value is compared sequentially with the boundary values ​​of each tier, and the difference between the current load factor and the nearest upper tier boundary value is calculated. ,in This represents the upper boundary value of the current load factor's tier. If the difference is less than a preset trend threshold, it is determined that there is a tier crossing trend, indicating that the current load factor may enter a tier range with a lower demand-price adjustment coefficient. For example, the tier rule is... hour , hour , hour The current load factor is 67.3%, the upper limit threshold is 70%, and the difference is... If the trend threshold is set to 3%, then a cross-rate trend is determined, and the load factor is likely to enter a range. The gear position.

[0076] Specifically, M3.43 lowers the preset safety threshold when the load factor transition trend indicates that the current load factor will enter a load factor tier with a lower demand-price adjustment coefficient. The reduction in the safety threshold can be determined based on the transition distance, calculated using the following formula: ,in This is the original proportionality coefficient. To adjust the step size, use a value between 0.5 and 2. For example, the original scaling factor. Gear distance Adjust step size ,but Lowering the safety threshold means triggering early warnings and more strictly controlling maximum demand, which can further increase the load factor and thus exceed the threshold.

[0077] Furthermore, when M3.44 re-executes the first demand warning process based on the updated preset safety threshold, it will use the maximum demand forecast value for the entire month. With the updated threshold Recompare. If If the new threshold is exceeded, a demand exceedance risk warning is issued; otherwise, the current operating status is maintained. After re-executing the warning process, the system returns to M3.41 to continue monitoring the load factor, forming a closed-loop adjustment.

[0078] It should be noted that the preset trend threshold is obtained by statistically analyzing the historical distribution of user load rates on both sides of each load level boundary, and taking 1 / 4 of the product of the distribution variance and the load level width as the initial value; the preferred setting range is 1% to 5%; this application uses 3% for industrial users with stable loads and 5% for users with large load fluctuations. Through this rule, the trend threshold can be automatically adapted according to the user load characteristics, avoiding missed opportunities to cross load levels due to an excessively small threshold, and also avoiding frequent adjustments to the safety threshold due to an excessively large threshold.

[0079] For example, a user's current load factor is 67.3%, and maximum demand has occurred. The load factor is kW, and the difference between the load factor and the 70% threshold is 2.7%, which is less than the trend threshold of 3%, indicating a potential trend of crossing thresholds. The original safety threshold proportional coefficient was 95%, which has been adjusted to 92.3%, corresponding to a safety threshold of [missing value]. kW. If currently If the maximum demand is 470kW, which is greater than 452.3kW, the risk of demand exceeding the limit will be triggered, and power regulation will be initiated. By reducing the maximum demand, the load factor will be pushed up to more than 70%, and the demand electricity price will be reduced from 40 yuan / kW·month to 36 yuan / kW·month, reducing the basic electricity cost for the whole month by about 1960 yuan.

[0080] Example 8 is an embodiment of the present invention. This embodiment provides a user demand optimization control system, including: a parameter acquisition module, used to acquire a first parameter set, the first parameter set including user equipment capacity parameters, electricity price parameters, load forecast data and adjustable resource parameters, the electricity price parameters including demand electricity price rules tiered according to load rate; The optimization decision module is used to construct a first optimization model based on the first parameter set and the goal of minimizing the total electricity cost, and solve for the billing method, contract demand value and pre-schedule plan; The demand warning module is used to perform the first demand warning process based on the contracted demand value and real-time load monitoring data to obtain the risk of demand exceeding the limit; The power control module is used to respond to the risk of demand exceeding the limit by performing a first power regulation process and issuing a first control command, the first control command being used to control adjustable resources to suppress demand exceeding the limit.

[0081] This embodiment also provides an electronic device applicable to a user demand optimization control method, comprising: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement a user demand optimization control method as proposed in the above embodiment.

[0082] This embodiment also provides a storage medium storing a computer program that, when executed by a processor, implements a user demand optimization control method as proposed in the above embodiments.

[0083] The storage medium proposed in this embodiment and the method for implementing user demand optimization control proposed in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0084] Based on the above description of the implementation methods, those skilled in the art can clearly understand that the present invention can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.

[0085] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A method of demand-optimized control of a user, characterized in that include: Obtain a first set of parameters, which includes user equipment capacity parameters, electricity price parameters, load forecast data, and adjustable resource parameters. The electricity price parameters include demand-based electricity price rules tiered according to load factor. Based on the first set of parameters and the goal of minimizing the total electricity cost, a first optimization model is constructed to solve for the billing method, contracted demand value and pre-scheduling plan, wherein the pre-scheduling plan is a monthly-scale scheduling arrangement for adjustable resources; Based on the contracted demand value and real-time load monitoring data, the first demand warning process is executed to obtain the risk of demand exceeding the limit. In response to the aforementioned demand over-limit risk, a first power regulation process is executed and a first control command is issued. The first control command is used to control adjustable resources to suppress demand over-limit.

2. The method of claim 1, wherein, The steps to obtain the first parameter set include: Obtain user equipment capacity parameters, including transformer operating capacity and voltage level; The electricity price parameters are determined, including single-rate electricity price, two-part electricity price, capacity basic price, demand price benchmark price, and demand price adjustment coefficient. The demand price adjustment coefficient is set according to load factor tiers. Obtain load forecast data, which includes a baseline load forecast sequence and a spot electricity price forecast sequence with a preset time granularity; Obtain adjustable resource parameters, including rated energy storage capacity, rated energy storage charge and discharge power, energy storage charge and discharge efficiency, energy storage cycle life equivalent to cost per kilowatt-hour, maximum amount of interruptible load that can be reduced, and unit compensation cost of interruptible load; The first parameter set is obtained based on the user equipment capacity parameters, the electricity price parameters, the load forecast data, and the adjustable resource parameters.

3. The method of claim 2, wherein, The steps for determining the electricity price parameters include: Obtain the demand-based electricity price benchmark, the single-rate electricity price, the two-part electricity price, and the capacity-based basic electricity price; Multiple load factor tiers are obtained, each load factor tier corresponds to a demand electricity price adjustment coefficient, and the multiple load factor tiers cover a continuous range from low load factor to high load factor; Based on the multiple load factor tiers and the corresponding demand price adjustment coefficients, a demand price adjustment function is generated. The input of the demand price adjustment function is the load factor, and the output is the demand price adjustment coefficient corresponding to the load factor tier where the load factor is located. The demand price adjustment coefficient is used to correct the demand price benchmark price. The demand electricity price benchmark price, the demand electricity price adjustment function, the single-system electricity price, the two-system electricity price, and the capacity basic price are determined as the electricity price parameters.

4. The method of claim 3, wherein, Based on the first parameter set and the goal of minimizing the overall electricity cost, the first optimization model is constructed, and the steps to solve for the billing method, contracted demand value, and pre-scheduling plan include: A comprehensive electricity tariff objective function is constructed, comprising an energy cost item, a transmission and distribution cost item, a basic electricity cost item, and a regulation cost item. The energy cost item is determined based on the spot electricity price forecast sequence and net load power. The transmission and distribution cost item is determined based on the two-part electricity price and net load power. The basic electricity cost item is determined based on the billing method, the contracted demand value, the demand price rule, or the capacity basic price. The regulation cost item is determined based on the energy storage cycle life equivalent per kilowatt-hour and the interruptible load unit compensation cost. The demand pricing rules tiered by load factor are linearized to generate a linearized expression of demand pricing, which includes piecewise linear constraints for continuous load factor intervals. Based on the adjustable resource parameters, constraints are generated for energy storage charging and discharging power, energy storage capacity, interruptible load reduction, and the relationship between maximum demand and contracted demand. Based on the objective function of the total electricity cost, the linearized expression of the demand price, and the constraints, the first optimization model is constructed and solved to obtain the billing method, contract demand value, and pre-schedule plan.

5. The method of claim 4, wherein, Based on the contracted demand value and real-time load monitoring data, the first demand warning process is executed to obtain the steps for determining the risk of demand exceeding limits, including: Acquire real-time load monitoring data, which includes the average power within the current preset time window and the maximum demand that has occurred within the current billing cycle; Based on the average power within the current preset time window and the maximum demand that has occurred within the current billing cycle, and combined with the baseline load forecast sequence for the remaining time period in the load forecast data, the maximum demand forecast value for the whole month is determined. The maximum demand forecast value for the whole month is the maximum demand without calling adjustable resources. The maximum monthly demand forecast is compared with the preset safety threshold of the contracted demand value to obtain the comparison result; If the comparison result indicates that the predicted maximum demand for the whole month exceeds the preset safety threshold, the risk of demand exceeding the limit is obtained.

6. The method of claim 5, wherein, In response to the aforementioned demand exceedance risk, a first power regulation process is executed and a first control command is issued. The first control command is used to control the adjustable resources to suppress the demand exceedance step, including: In response to the risk of demand exceeding the limit, a control target power is determined based on the contracted demand value, wherein the control target power is the upper limit of the average power within the current preset time window; A second optimization model is constructed. The optimization objective of the second optimization model is to minimize the adjustment cost under the constraint that the average power within the current preset time window does not exceed the control target power. The decision variables of the second optimization model include energy storage discharge power and interruptible load reduction. Solving the second optimization model yields the energy storage discharge power value and the interruptible load reduction value; Based on the energy storage discharge power value and the interruptible load reduction value, the first control command is generated and issued. The first control command is used to control the energy storage system and the interruptible load to suppress demand exceeding the limit within the current preset time window.

7. The method of claim 6, wherein, Based on the contracted demand value and real-time load monitoring data, the first demand warning process is executed to obtain the steps for determining the risk of demand exceeding limits, including: The current load rate is determined based on the real-time load monitoring data. The current load rate is the ratio of the average power of the current billing period to the maximum demand of the current billing period. If the demand exceedance risk is not triggered, the load rate crossing trend is determined based on the current load rate and the demand electricity price rule based on the load rate. The load rate crossing trend is used to indicate whether the current load rate will enter the load rate tier range with a lower demand electricity price adjustment coefficient. When the load rate transition trend indicates that the current load rate will enter a load rate tier with a lower demand electricity price adjustment coefficient, the preset safety threshold is reduced to obtain an updated preset safety threshold. Based on the updated preset safety threshold, the first demand warning process is re-executed to obtain the demand exceedance risk.

8. A consumer demand optimization control system applying the method according to any one of claims 1 to 7, characterized in that include: The parameter acquisition module is used to acquire a first parameter set, which includes user equipment capacity parameters, electricity price parameters, load forecast data and adjustable resource parameters. The electricity price parameters include demand-based electricity price rules tiered according to load factor. The optimization decision module is used to construct a first optimization model based on the first parameter set and the goal of minimizing the total electricity cost, and solve for the billing method, contract demand value and pre-schedule plan; The demand warning module is used to perform the first demand warning process based on the contracted demand value and real-time load monitoring data to obtain the risk of demand exceeding the limit; The power control module is used to respond to the risk of demand exceeding the limit by performing a first power regulation process and issuing a first control command, the first control command being used to control adjustable resources to suppress demand exceeding the limit.

9. An electronic device, comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, which, when executed by the processor, implement the steps of the user demand optimization control method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the user demand optimization control method according to any one of claims 1 to 7.