Resident household appliance load power consumption decision method based on adaptive mutation BPSO

By using an adaptive mutated binary particle swarm optimization algorithm to cluster and optimize residential appliance loads and electricity consumption strategies, the problem of grid peak shaving difficulties has been solved, resulting in stable grid operation and improved user satisfaction.

CN117196348BActive Publication Date: 2026-11-24STATE GRID ANHUI ELECTRIC POWER CO LTD ELECTRIC POWER SCI RES INST +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311260745.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-27
Publication Date
2026-11-24
Estimated Expiration
2043-09-27

AI Technical Summary

Technical Problem

In smart grids, the lack of effective electricity consumption strategies for interaction between residential users and the power grid leads to difficulties in peak shaving, widening of the peak-valley difference, and affects the stable operation of the power grid and user satisfaction with electricity consumption.

Method used

Adaptive Mutant Binary Particle Swarm Optimization (BPSO) algorithm is used to perform cluster analysis on residential appliance loads, establish an appliance load priority function model, and optimize the appliance load power consumption strategy through the adaptive DBSCAN algorithm to reduce peak-hour power load.

Benefits of technology

This has enabled the rational scheduling of household appliance loads, reduced the peak-to-valley difference in electricity consumption, improved the peak-hour carrying capacity of the power grid, and ensured user satisfaction with electricity use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117196348B_ABST
    Figure CN117196348B_ABST
Patent Text Reader

Abstract

This invention discloses a residential appliance load electricity consumption decision-making method based on adaptive mutated BPSO, comprising: 1. collecting residential appliance load data and correcting abnormal data to obtain the electricity consumption time of residential appliances; 2. using the adaptive DBSCAN clustering method to cluster the electricity consumption time of residential appliances to obtain the typical electricity consumption time of each cluster; 3. establishing an appliance load priority function model for each cluster based on the typical electricity consumption time of each cluster; 4. solving the appliance load priority function model of each cluster using an improved BPSO with adaptive mutation to obtain the electricity consumption strategy for each cluster. This invention, by considering the electricity consumption habits of residential users and formulating residential appliance load electricity consumption strategies, reduces the peak-valley load difference, thereby improving power grid stability and ensuring stable power grid operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electricity demand-side management technology, specifically to a residential appliance load electricity consumption decision-making method based on the adaptive mutated binary particle swarm optimization (BPSO) algorithm. Background Technology

[0002] In the development of smart grids, domestic smart electricity consumption technology and user electricity consumption analysis technology lag behind, resulting in slow commercialization. While exploring and innovating business models provides solutions for realizing interactive smart electricity consumption operation models, the lack of research on the electricity consumption behavior of market participants and the interaction between users and the grid limits their maximum effectiveness. With the intensification of the power supply-demand imbalance, rapid changes in user structure, and continuously increasing household electricity demand, regional power loads have undergone significant changes. Issues such as the continuous and rapid growth of maximum load, the widening peak-valley difference, the continuous decline in load factor and maximum load utilization hours, and the increasingly acute supply-demand imbalance during peak periods have made peak-shaving increasingly difficult for the power grid. This has led to frequent power outages and staggered power consumption across the country, posing a significant threat to the safe, stable, and economical operation of the power system and creating numerous difficulties for power market analysis, forecasting, planning, and marketing. Simultaneously, the slow progress of power reform in my country has hindered the implementation of increasingly important foundational work for power companies' operation and planning, such as electricity consumption characteristic analysis and research on power load optimization and interactive control. The lack of a positive interaction mechanism between power supply companies and users, coupled with the absence of effective cooperation and communication, and the lack of effective response strategies on the user side, creates difficulties for the operation of the power system and the daily management of power supply companies.

[0003] In conclusion, there is an urgent need to establish effective residential load electricity consumption strategies to reduce peak grid loads, meet the electricity needs of residential users while reducing electricity consumption during peak hours, and provide support for the stable operation of the power grid and energy conservation and emission reduction efforts. Summary of the Invention

[0004] To overcome the shortcomings of existing technologies, this invention proposes a residential appliance load power consumption decision method based on an adaptive mutated binary particle swarm optimization algorithm, aiming to fully schedule interactive resources on the residential user side, reduce peak-hour power load, and improve the peak-hour carrying capacity of the power grid.

[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0006] The characteristic of this invention, a residential appliance load electricity consumption decision method based on adaptive variable BPSO, is that it is carried out according to the following steps:

[0007] Step 1: Data Acquisition and Preprocessing;

[0008] Using smart meters and smart sockets, load data of household appliances from community residents are collected at intervals of Δt, resulting in a load data set P consisting of m household appliance loads and n data points for each load. m×n ={p i,j |i=1,2,…,m;j=1,2,…,n};where p i,j This represents the data from the j-th sampling point of the i-th household appliance load;

[0009] For load data set P m×n The abnormal data is corrected to obtain the updated load data set p′. m×n ;

[0010] Identify the load data set p′ m×n In the data, if the electricity consumption of the i-th household appliance load at the j-th sampling point is not zero, then let x be the denoted x. i,j If the value is 1, then denote it as x; otherwise, denote it as x. i,j The value is 0, thus obtaining the set X of electricity consumption for the i-th household appliance load. i ={x i,1 ,x i,2 ,…,x i,j ,…,x i,n This leads to the set of electricity consumption data for all household appliances, X = {X1, X2, ..., X}. i ,…,X m};

[0011] Step 2: Use the adaptive DBSCAN algorithm to cluster X to classify household appliance loads with similar electricity consumption time into different categories;

[0012] Step 2.1: Calculate the electricity consumption set X for the i-th household appliance load. i The Hamming distance between the ith appliance load and the set of electricity consumption data of all other appliance loads is used to obtain the Hamming distance vector d. i ;

[0013] For d i After sorting the m Hamming distances in ascending order, we obtain the ascending distance vector d′. i Thus, the ascending distance matrix d′=[d′1,d′2,…,d′ is obtained for all household appliance loads. i ,…,d′ m ] T ;

[0014] Step 2.2: Calculate the average value of each column in d′ and use them as the m candidate radius values; use the i-th candidate radius value as the search radius d. Eps Calculate the search radius d for the i-th household appliance load. Eps Number of users N i, will N i average As the search radius d Eps The corresponding minimum household appliance load threshold N MP The i-th candidate threshold is used to obtain the minimum household appliance load threshold N. MP m candidate thresholds;

[0015] Step 2.3: Using the i-th candidate radius value and the i-th candidate threshold as the set parameters of the DBSCAN algorithm, use the DBSCAN algorithm to cluster X and obtain the clustering result of the i-th cluster, thereby obtaining the clustering results of m clusters;

[0016] Step 2.4: In the clustering results of m clusters, if there are multiple consecutive groups of clusters with the same number of clusters obtained by setting parameters, then the same number of clusters is considered to have the best adaptability. The corresponding number of clusters is taken as the optimal number of clusters g, and the household appliance load clusters corresponding to the number of clusters g are taken as the clustering results of the adaptive DBSCAN algorithm.

[0017] Step 2.5: Based on the number of clusters g corresponding to each household appliance load cluster, use the mean center of each cluster as the cluster center of the corresponding cluster; use the set of household appliance load electricity consumption corresponding to the cluster center of each household appliance load cluster as the set of typical household appliance load electricity consumption for the corresponding cluster, denoted as... in, This is a set of typical household appliance load electricity consumption patterns for the w-th household appliance load category.

[0018] Step 3: Establish priority function models for various types of household appliance loads based on different household appliance load groups;

[0019] Step 3.1: Set of typical household appliance load electricity consumption for the w-th household appliance load category. The power set is denoted as in, Let be the power of a typical load of the w-th household appliance load group at the j-th sampling point.

[0020] Step 3.2, according to The load operating time constraint can be expressed using equations (1)-(3):

[0021] t w,s ≤t w,on ≤t w,off ≤t w,f (1)

[0022]

[0023] K w ≤C w (3)

[0024] In equations (1)-(3), t w,s t w,f These represent the start and end times of a typical appliance load in the w-th appliance load group allowed by the user; t w,on The actual start time of a typical household appliance load in the w-th household appliance load group is, i.e., The sampling time corresponding to the first "1" in a series of consecutive "1" occurrences; t w,off The actual shutdown time of a typical household appliance load in the w-th household appliance load group is, i.e., The sampling point time corresponding to the first "0" after a series of consecutive "1"s; These represent the actual start and shutdown times of a typical household appliance load in the w-th household appliance load group during the b-th run; N w K represents the planned usage time of typical home appliance loads in the w-th home appliance load category; w C represents the actual number of interruptions of typical home appliance loads in the w-th home appliance load group; w The maximum number of interruptions for a typical household appliance load in the w-th household appliance load group;

[0025] Step 3.3: Construct the sub-objective function h(t) for the power constraint of the typical household appliance load in the w-th household appliance load group at time t using equation (4):

[0026]

[0027] In equation (4), α and β represent different power levels; C represents the power threshold. This represents the power of a typical household appliance load in the w-th household appliance load group at time t;

[0028] Using equation (5), construct the urgency sub-objective function L(t) for the interruptible load at time t:

[0029]

[0030] In equation (5), t f Indicates the user-allowed load termination time; τ represents the time the interruptible load has been running; η represents the attenuation factor; t on Indicates the actual start time of a typical household appliance load;

[0031] Using equation (6), construct the sub-objective function L(t) for the urgency of the transferable load at time t:

[0032]

[0033] Construct the user satisfaction sub-objective function f(t) using equation (7):

[0034]

[0035] In equation (7), μ represents the user's expected device startup time; δ represents the user's tolerance level.

[0036] The overall objective function F of the priority function is set using equation (8):

[0037]

[0038] In equation (8), ξ1, ξ2, and ξ3 represent the average values ​​of the power limitation sub-objective, urgency sub-objective, and satisfaction sub-objective, respectively; ξ1, ξ2, and ξ3 are three set weight parameters.

[0039] Step 4: Use the BPSO algorithm improved with adaptive mutation to optimize and solve the model;

[0040] Step 4.1: Set the parameters of the particle swarm optimization algorithm, including: population size a, inertia weight ω, current iteration number k, and maximum iteration number K. max Two learning factors, c1 and c2;

[0041] Step 4.2: Randomly generate a n-dimensional swarm of the current k-th generation w-th particles. The a-th electricity consumption strategy represents the w-th household appliance load group, where, For the current k-th generation w-th particle swarm The power consumption of the household appliances corresponding to the q-th particle at each sampling point, and Represents the q-th particle The electricity consumption of household appliances at the j-th sampling point, if This indicates that the household appliance load is in use at the j-th sampling point. This indicates that the household appliance load was not in use at the j-th sampling point.

[0042] Step 4.3: Based on the current k-th generation w-th particle swarm The load power consumption time corresponding to each particle is calculated, the fitness of each particle is calculated, and the local optimal particle and the global optimal particle in the current k-th generation are updated according to the fitness of each particle.

[0043] Step 4.4: Update the current k-th generation w-th particle swarm. The velocity and position of the intermediate particles are used to obtain the updated (k+1)th generation, w-th particle swarm.

[0044] Step 4.5, using equation (9) to... The position of each particle is mutated:

[0045]

[0046] In equation (9), ~ represents the negation operation. express The power consumption of the q-th particle at the j-th sampling point; rand represents a random number between 0 and 1; R represents the mutation probability, which is determined by equation (11);

[0047]

[0048] Step 4.5: After assigning k+1 to k, check if k > K. max Check if the condition is true. If true, output the updated Kth digit. max The w-th particle group The globally optimal particle is used as the power consumption strategy for the w-th household appliance load group; otherwise, proceed to step 4.3 for sequential execution.

[0049] The present invention provides an electronic device, comprising a memory and a processor, wherein the memory is used to store a program that supports the processor in executing the residential appliance load power consumption decision method, and the processor is configured to execute the program stored in the memory.

[0050] The present invention discloses a computer-readable storage medium on which a computer program is stored, wherein the computer program, when executed by a processor, performs the steps of the method for determining the electricity consumption of residential appliances.

[0051] Compared with existing technologies, the beneficial effects of this invention are reflected in:

[0052] 1. This invention performs cluster analysis on residential appliance loads based on the usage time of various household appliances. It uses the adaptive DBSCAN algorithm for clustering, which avoids the manual setting of parameters in the DBSCAN algorithm and avoids the interference of subjective factors in the results, making the clustering results of residential appliance load usage time more consistent with the actual situation.

[0053] 2. This invention comprehensively considers the different usage habits of various household appliance loads. After clustering and classifying users' household appliance loads, priority function models for each type of household appliance load are established, resulting in electricity consumption strategies for each type of load. This can reduce the peak-valley difference in electricity consumption while meeting the needs of residential users, thus ensuring user satisfaction with electricity usage.

[0054] 3. This invention solves the problem of the algorithm getting trapped in local optima too early during the search process by adaptively mutating the particles obtained in each iteration. By adaptively changing the mutation probability, the probability of the particles mutating when they are close to the optimal household appliance load in the later stages of the iteration is reduced, so that the final household appliance load strategy is closer to the optimal strategy. Attached Figure Description

[0055] Figure 1 This is a schematic diagram of the residential appliance load electricity consumption decision method based on the adaptive mutated binary particle swarm algorithm of the present invention;

[0056] Figure 2 This is a flowchart illustrating how the present invention uses a binary particle swarm optimization algorithm with adaptive mutation to solve the model. Detailed Implementation

[0057] In this embodiment, a residential appliance load power consumption decision method based on adaptive mutated BPSO includes: 1. Collecting residential appliance load data using smart meters and smart sockets, identifying abnormal data in the user power consumption data, correcting the abnormal data based on historical load data, and obtaining the residential appliance load usage time; 2. Clustering the residential appliance load usage time using the adaptive DBSCAN clustering method, and using the appliance load usage time of the mean center of each cluster as the typical appliance load usage time; 3. Establishing an appliance load priority function model for the typical appliance loads of different clusters based on the typical appliance load usage time; 4. Solving the appliance load priority function model for each cluster using an improved binary particle swarm optimization algorithm with adaptive mutation to obtain the power consumption strategy for each type of appliance load, thereby shifting peak-hour power consumption, reducing the peak-valley load difference, and ensuring stable grid operation. Specifically, as... Figure 1 As shown, the procedure is as follows:

[0058] Step 1: Data Collection and Preprocessing;

[0059] Smart meters and smart sockets are used to collect household appliance load data from community residents at intervals, resulting in a load data set P consisting of m household appliance loads and n data points for each load. m×n ={p i,j |i=1,2,…,m;j=1,2,…,n};where p i,j This represents the data from the j-th sampling point of the i-th household appliance load;

[0060] Identify missing data points in the load data and mark them as outliers;

[0061] Identify mutation data and calculate the load dataset P. m×n Mean μ of the i-th rowi and standard deviation σ i The upper limit of normal load data is calculated using equations (1) and (2) based on the 3σ criterion. lower limit

[0062]

[0063]

[0064] Will not be satisfied Load data p i,j Data marked as mutant anomalous;

[0065] Based on historical load data, abnormal data are corrected, and the abnormal data p is calculated using equation (3). i,j The correction value n i,j :

[0066] n i,j =ζ1p i,j-1 +ζ2p i,j+1 +ζ3p' i,j +ζ4p” i,j (3)

[0067] In equation (3), ζ1, ζ2, ζ3, and ζ4 represent the weights subjectively set for the corresponding load data; p i,j-1 This represents the electricity consumption data at the (j-1)th sampling point of the i-th household appliance load; p i,j+1 This represents the electricity consumption data at the (j+1)th sampling point of the i-th household appliance load; p' i,j This represents the electricity consumption data at the j-th sampling point on the day preceding the i-th household appliance load; p” i,j This represents the electricity consumption data of the i-th household appliance load at the j-th sampling point in the previous week;

[0068] The corrected data n i,j Replace abnormal data p i,j And obtain the updated load data set p′ m×n ;

[0069] Identify the load data set p′ m×n In the data, if the electricity consumption of the i-th household appliance load at the j-th sampling point is not zero, then let x be the denoted x. i,j If the value is 1, then denote it as x; otherwise, denote it as x. i,j The value is 0, thus obtaining the set X of electricity consumption for the i-th household appliance load. i ={x i,1 ,x i,2 ,…,x i,j ,…,x i,nThis leads to the set of electricity consumption data for all household appliances, X = {X1, X2, ..., X}. i ,…,X m};

[0070] Step 2: Cluster X using the adaptive DBSCAN algorithm to classify household appliance loads with similar electricity consumption times. When using the DBSCAN algorithm to classify the loads, the setting of the neighborhood radius and minimum load threshold of the DBSCAN algorithm will affect the clustering results. The rationality of parameter selection will directly affect the accuracy of the user's clustering results. Using the adaptive DBSCAN algorithm can effectively avoid the errors caused by the settings.

[0071] Step 2.1: Calculate the electricity consumption set X for the i-th household appliance load. i The Hamming distance between the ith appliance load and the set of electricity consumption data of all other appliance loads is used to obtain the Hamming distance vector d. i ;

[0072] For d i After sorting the m Hamming distances in ascending order, we obtain the ascending distance vector d′. i , then d′ i The l-th element represents the Hamming distance between user i and its l-th nearest neighbor load, thus yielding the ascending distance matrix d′=[d′1,d′2,…,d′] for all appliance loads. i ,…,d′ m ] T ;

[0073] Step 2.2: Calculate the average value of each column in d′ and use them as the m candidate radius values; use the i-th candidate radius value as the search radius d. Eps Calculate the search radius d for the i-th household appliance load. Eps Number of users N i , will N i average As the search radius d Eps The corresponding minimum household appliance load threshold N MP The i-th candidate threshold is used to obtain the minimum household appliance load threshold N. MP m candidate thresholds;

[0074] Step 2.3: Using the i-th candidate radius value and the i-th candidate threshold as the set parameters of the DBSCAN algorithm, use the DBSCAN algorithm to cluster X and obtain the clustering result of the i-th cluster, thereby obtaining the clustering results of m clusters;

[0075] Step 2.4, with d EpsAs the number of clusters increases, the number of clusters gradually decreases. If multiple consecutive groups of clusters with the same set parameters have the same number of clusters, then the same number of clusters is considered to have the best adaptability. The corresponding number of clusters is taken as the optimal number of clusters g, and the household appliance load clusters corresponding to the number of clusters g are taken as the clustering results of the adaptive DBSCAN algorithm.

[0076] Step 2.5: Based on the number of clusters g corresponding to each household appliance load cluster, use the mean center of each cluster as the cluster center of the corresponding cluster; use the set of household appliance load electricity consumption corresponding to the cluster center of each household appliance load cluster as the set of typical household appliance load electricity consumption for the corresponding cluster, denoted as... in, This is a set of typical household appliance load electricity consumption patterns for the w-th household appliance load category.

[0077] Step 3: Taking into account the different usage habits and electricity needs of different types of household appliance loads, different electricity consumption strategies need to be formulated for different types of household appliance loads. Therefore, priority function models for various types of household appliance loads need to be established based on the classification of household appliance loads.

[0078] Step 3.0: Let w = 1;

[0079] Step 3.1: Set of typical household appliance load electricity consumption for the w-th household appliance load category. The power set is denoted as in, Let be the power of a typical load of the w-th household appliance load group at the j-th sampling point.

[0080] Step 3.2, according to The load operating time constraint can be expressed using equations (4)-(6):

[0081] t w,s ≤t w,on ≤t w,off ≤t w,f (4)

[0082]

[0083] K w ≤C w (6)

[0084] In equations (4)-(6), t w,s t w,f These represent the start and end times of a typical appliance load in the w-th appliance load group allowed by the user; t w,on The actual start time of a typical household appliance load in the w-th household appliance load group is, i.e., The sampling time corresponding to the first "1" in a series of consecutive "1" occurrences; t w,off The actual shutdown time of a typical household appliance load in the w-th household appliance load group is, i.e., The sampling point time corresponding to the first "0" after a series of consecutive "1"s; These represent the actual start and shutdown times of a typical household appliance load in the w-th household appliance load group during the b-th run; N w K represents the planned usage time of typical home appliance loads in the w-th home appliance load category; w C represents the actual number of interruptions of typical home appliance loads in the w-th home appliance load group; w The maximum number of interruptions for a typical household appliance load in the w-th household appliance load group;

[0085] Step 3.3: Construct the sub-objective function h(t) for the power constraint of the typical household appliance load in the w-th household appliance load group at time t using equation (7):

[0086]

[0087] In equation (7), α and β represent different power levels; C represents the power threshold. This represents the power of a typical household appliance load in the w-th household appliance load group at time t;

[0088] Using equation (8), construct the urgency sub-objective function L(t) for the interruptible load at time t:

[0089]

[0090] In equation (8), t f Indicates the user-allowed load termination time; τ represents the time the interruptible load has been running; η represents the attenuation factor; t on Indicates the actual start time of a typical household appliance load;

[0091] Using equation (9), construct the sub-objective function L(t) for the urgency of the transferable load at time t:

[0092]

[0093] Construct the user satisfaction sub-objective function f(t) using equation (10):

[0094]

[0095] In equation (10), μ represents the user's expected device startup time; δ represents the user's tolerance; that is, the higher the user satisfaction, the closer the load is to the user's expected startup time.

[0096] The overall objective function F of the priority function is set using equation (11):

[0097]

[0098] In equation (8), ξ1, ξ2, and ξ3 represent the average values ​​of the power limitation sub-objective, urgency sub-objective, and satisfaction sub-objective, respectively; ξ1, ξ2, and ξ3 are three set weight parameters.

[0099] Step 4: Optimize the model using the improved BPSO algorithm with adaptive mutation. In the binary particle swarm optimization (BSO) algorithm, due to variations in Hamming space, it is prone to premature convergence. However, the adaptive mutation improvement enhances the algorithm's global search capability. The specific process is as follows: Figure 2 As shown;

[0100] Step 4.1: Set the parameters of the particle swarm optimization algorithm, including: population size a, inertia weight ω, current iteration number k, and maximum iteration number K. max Two learning factors, c1 and c2;

[0101] Step 4.2: Randomly generate a n-dimensional swarm of the current k-th generation w-th particles. The a-th electricity consumption strategy represents the w-th household appliance load group, where, For the current k-th generation w-th particle swarm The power consumption of the household appliances corresponding to the q-th particle at each sampling point, and Represents the q-th particle The electricity consumption of household appliances at the j-th sampling point, if This indicates that the household appliance load is in use at the j-th sampling point. This indicates that the household appliance load was not in use at the j-th sampling point.

[0102] Step 4.3: Based on the current k-th generation w-th particle swarm The load power consumption time corresponding to each particle is calculated, the fitness of each particle is calculated, and the local optimal particle and the global optimal particle in the current k-th generation are updated according to the fitness of each particle.

[0103] Step 4.4: Update the particle velocity using equation (12):

[0104]

[0105] In equation (12), id and gd represent coordinate variables; Indicates the (k+1)th iteration The particle velocity of the q-th particle at the j-th sampling point; Indicates the k-th iteration The particle velocity of the q-th particle at the j-th sampling point; p id p represents the optimal particle position for an individual. gd Indicates the optimal particle position in the swarm; express The power consumption of the q-th particle at the j-th sampling point; rand represents a random number between 0 and 1;

[0106] Update the particle's position using equation (13):

[0107]

[0108] The particle position is varied using equation (14):

[0109]

[0110] In equation (14), ~ represents the negation operation; R represents the mutation probability, which is determined by equation (15);

[0111]

[0112] The mutation probability R value is adaptively changed. In the early stage of the iteration, the mutation probability is close to 1, and in the later stage of the iteration, the mutation probability is close to 0. This adaptive change of the mutation probability can improve the global search ability in the early stage of the algorithm and ensure the local search ability in the later stage of the algorithm, so that the result is closer to the population optimal solution.

[0113] Step 4.5: After assigning k+1 to k, check if k > K. max Check if the condition is true. If true, output the updated Kth digit. max The w-th particle group The globally optimal particle is used as the power consumption strategy for the w-th household appliance load group; otherwise, proceed to step 4.3 for sequential execution.

[0114] Step 4.6: After assigning w+1 to w, determine whether w>g is true. If true, output the power consumption strategies for the household appliance loads of the g categories; otherwise, proceed to step 3.1 for sequential execution.

[0115] In this embodiment, an electronic device includes a memory and a processor. The memory stores a program that supports the processor in executing the above-described method, and the processor is configured to execute the program stored in the memory.

[0116] In this embodiment, a computer-readable storage medium stores a computer program, which is executed by a processor to perform the steps of the above method.

Claims

1. A residential appliance load decision-making method based on adaptive variable BPSO, characterized in that, The procedure is as follows: Step 1: Data Acquisition and Preprocessing; Using smart meters and smart sockets to To collect household appliance load data from community residents at intervals, a load data set is obtained consisting of m household appliance loads and n data points for each household appliance load. ;in, This represents the data from the j-th sampling point of the i-th household appliance load; For load data sets The abnormal data is corrected to obtain the updated load data set. ; Identify load data sets In the data, if the power consumption of the i-th household appliance load at the j-th sampling point is not zero, then record it as... Set to 1; otherwise, record as 1. The value is 0, thus obtaining the set of electricity consumption information for the i-th household appliance load. This leads to a set of electricity consumption data for all household appliances. ; Step 2: Use the adaptive DBSCAN algorithm to... Clustering is performed to classify household appliance loads with similar electricity consumption times into different categories; Step 2.1: Calculate the set of electricity consumption data for the i-th household appliance load. The Hamming distance between the ith appliance load and the set of electricity consumption data of all other appliance loads is used to obtain the Hamming distance vector of the ith appliance load. ; right After sorting the m Hamming distances in ascending order, we obtain the ascending distance vector. This yields the ascending distance matrix of all household appliance loads. ; Step 2.2, Calculation The average value of each column is used as one of the m candidate radius values; the i-th candidate radius value is used as the search radius. Calculate the search radius for the i-th appliance load. Number of users within ,Will average As the search radius Corresponding minimum appliance load threshold The i-th candidate threshold is used to obtain the minimum appliance load threshold. m candidate thresholds; Step 2.3: Using the i-th candidate radius value and the i-th candidate threshold as the setting parameters for the DBSCAN algorithm, use the DBSCAN algorithm to... Perform clustering and obtain the clustering result of the i-th cluster, thereby obtaining the clustering results of the m clusters; Step 2.4: In the clustering results of m clusters, if there are multiple consecutive groups of clusters with the same number of clusters obtained by setting parameters, then the same number of clusters is considered to have the best adaptability. The corresponding number of clusters is taken as the optimal number of clusters g, and the household appliance load clusters corresponding to the number of clusters g are taken as the clustering results of the adaptive DBSCAN algorithm. Step 2.5: Based on the number of clusters g corresponding to each household appliance load cluster, use the mean center of each cluster as the cluster center of the corresponding cluster; use the set of household appliance load electricity consumption corresponding to the cluster center of each household appliance load cluster as the set of typical household appliance load electricity consumption for the corresponding cluster, denoted as... ,in, For the first A collection of typical household appliance load electricity consumption data for each household appliance load category; Step 3: Establish priority function models for various types of household appliance loads based on different household appliance load groups; Step 3.1: Set of typical household appliance load electricity consumption for the w-th household appliance load category. The power set is denoted as ,in, Let be the power of a typical load of the w-th household appliance load group at the j-th sampling point. Step 3.2, according to The load operating time constraint can be expressed using equations (1)-(3): (1) (2) (3) In equations (1)-(3), , These are the start and end times of a typical home appliance load in the w-th home appliance load group allowed by the user, respectively. The actual start time of a typical household appliance load in the w-th household appliance load group is, i.e., The sampling point time corresponding to the first "1" when consecutive "1"s appear in the sequence; The actual shutdown time of a typical household appliance load in the w-th household appliance load group is, i.e., The sampling point time corresponding to the first "0" after a series of consecutive "1"s; , These are the actual start and shutdown times of a typical household appliance load in the w-th household appliance load group during the b-th run, respectively. The typical planned usage time of household appliances in the w-th household appliance load category; This represents the actual number of interruptions of a typical household appliance load in the w-th household appliance load group; The maximum number of interruptions for a typical household appliance load in the w-th household appliance load group; Step 3.3: Construct a sub-objective function for the power constraint of typical household appliance loads in the w-th household appliance load group at time t using equation (4). : (4) In equation (4), , These represent different power levels; Indicates the power threshold; This represents the power of a typical household appliance load in the w-th household appliance load group at time t; Using equation (5), construct the urgency sub-objective function of the interruptible load at time t. : (5) In equation (5), Indicates the user-allowed end time of the load; Indicates the time that the interruptible load has been running; Indicates the attenuation factor; Indicates the actual start time of a typical household appliance load; Using equation (6), construct a sub-objective function for the urgency of the transferable load at time t. : (6) Construct a user satisfaction sub-objective function using equation (7) : (7) In equation (7), Indicates the user's expected device startup time; Indicates user tolerance; The overall objective function F of the priority function is set using equation (8): (8) In equation (8), , , These represent the average values ​​of the power constraint sub-objective, the urgency sub-objective, and the satisfaction sub-objective, respectively. , , The three weight parameters are set; Step 4: Use the BPSO algorithm improved with adaptive mutation to optimize and solve the model; Step 4.1: Set the parameters of the particle swarm optimization algorithm, including: population size a, inertia weight. Current iteration count k, maximum iteration count 2 learning factors and ; Step 4.2: Randomly generate a n-dimensional swarm of the current k-th generation w-th particles. The a-th electricity consumption strategy represents the w-th household appliance load group, where, For the current k-th generation w-th particle swarm The power consumption of the household appliances corresponding to the q-th particle at each sampling point, and , Represents the q-th particle The electricity consumption of household appliances at the j-th sampling point, if =1 indicates that the household appliance load is in use at the j-th sampling point. =0 indicates that the household appliance load at the j-th sampling point is not in use; Step 4.3: Based on the current k-th generation w-th particle swarm The load power consumption time corresponding to each particle is calculated, the fitness of each particle is calculated, and the local optimal particle and the global optimal particle in the current k-th generation are updated according to the fitness of each particle. Step 4.4: Update the current k-th generation w-th particle swarm. The velocity and position of the intermediate particles are used to obtain the updated (k+1)th generation, w-th particle swarm. ; Step 4.5, using equation (9) to... The position of each particle is mutated: (9) In equation (9), This represents the negation operation. express The power consumption of the q-th particle at the j-th sampling point; rand represents a random number between 0 and 1; R represents the mutation probability, which is determined by equation (10); (10) Step 4.5: After assigning k+1 to k, check if k > 0. Check if the condition is true. If true, output the updated value of the first element. The w-th particle group The globally optimal particle is used as the power consumption strategy for the w-th household appliance load group; otherwise, proceed to step 4.3 for sequential execution.

2. An electronic device, comprising a memory and a processor, characterized in that, The memory is used to store a program that supports the processor in executing the residential appliance load power consumption decision method of claim 1, and the processor is configured to execute the program stored in the memory.

3. A computer-readable storage medium storing a computer program, characterized in that, The computer program, when run by the processor, executes the steps of the residential appliance load power consumption decision method of claim 1.

Citation Information

Patent Citations

  • Family load optimized dispatching method based on demand response

    CN106779365A

  • Method for evaluating participation potential of intelligent household electrical appliances of residential users in power demand response

    CN115809824A