CN113285440B - Low-voltage transformer area loss reduction optimization method - Google Patents
Low-voltage transformer area loss reduction optimization method Download PDFInfo
- Publication number
- CN113285440B CN113285440B CN202110426826.4A CN202110426826A CN113285440B CN 113285440 B CN113285440 B CN 113285440B CN 202110426826 A CN202110426826 A CN 202110426826A CN 113285440 B CN113285440 B CN 113285440B
- Authority
- CN
- China
- Prior art keywords
- neural network
- station area
- total
- average
- particle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J3/00—Circuit arrangements for AC mains or AC distribution networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/084—Backpropagation, e.g. using gradient descent
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J2203/00—Indexing scheme relating to details of circuit arrangements for AC mains or AC distribution networks
- H02J2203/10—Power transmission or distribution systems management focussing at grid-level, e.g. load flow analysis, node profile computation, meshed network optimisation, active network management or spinning reserve management
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J2203/00—Indexing scheme relating to details of circuit arrangements for AC mains or AC distribution networks
- H02J2203/20—Simulating, e g planning, reliability check, modelling or computer assisted design [CAD]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- Molecular Biology (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Power Engineering (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
Description
技术领域technical field
本发明涉及配电网低压台区线损计算技术领域,具体地指一种低压台区降损优化方法。The invention relates to the technical field of line loss calculation in a low-voltage station area of a distribution network, in particular to a loss reduction optimization method for a low-voltage station area.
技术背景technical background
在配电网中,低压台区为电压0.4kV的供电区域,为广大居民和企业提供用电保障。线损是指电力系统从供电端到用电端的电能损失,是由于电能在输送过程中通过输电线路产生的损耗。而在线损管理中,由于设备众多,管理不足和窃电等问题,影响电网公司对于电网的精准降损。In the distribution network, the low-voltage station area is a power supply area with a voltage of 0.4kV, which provides electricity guarantee for the majority of residents and enterprises. Line loss refers to the loss of electric energy from the power supply end to the power consumption end of the power system, which is caused by the loss of electric energy through the transmission line during the transmission process. In line loss management, due to the large number of equipment, insufficient management and power theft, the power grid company's precise loss reduction of the power grid is affected.
在低压台区研究中,网络拓扑结构多样且复杂。在同一个低压台区中,负荷和功率也有较大的起伏。因此在线损的理论计算时,只能通过算法的优化来尽量接近线损的实际值,但是永远不可能是真实值。In the study of low-voltage station areas, the topology of the network is diverse and complex. In the same low-voltage platform area, the load and power also have large fluctuations. Therefore, in the theoretical calculation of line loss, it can only be as close as possible to the actual value of line loss through algorithm optimization, but it can never be the real value.
电网的线损率是综合反映电网规划、生产运行和运营管理水平的关键技术经济指标,也是衡量电网企业技术水平和管理水平的标志,综合反映了电网输送的能效水平。降低线损率是电网节能减排的重要举措,也是电网公司提升自身竞争力的需要。电网公司为了控制线损始终处在合理的范围内,需要建立线损管理平台监测异常线损并降低线损率。The line loss rate of the power grid is a key technical and economic indicator that comprehensively reflects the level of power grid planning, production operation, and operation management. Reducing the line loss rate is an important measure for power grid energy conservation and emission reduction, and it is also a need for power grid companies to improve their own competitiveness. In order to control the line loss within a reasonable range, the power grid company needs to establish a line loss management platform to monitor abnormal line loss and reduce the line loss rate.
在传统线损计算使用的是电力系统的多种电气数据。包括电网的原始结构图和各类电气的运行参数(比如电流,电压和规律因素等等)。在低压台区的管理过程中,由于台区用户数量庞大,数据采集不完善,线路分布差距过大等原因,很难实现精确的理论线损计算。在线损管理时,需要动员大量人力物力,且效果不佳,如人工抄表可能出现错误和遗漏。由于工作量巨大,电网公司难以收集到准确的计算线损的必要数据和资料,更难以找到异常线损,完成线损的降损处理。In the traditional line loss calculation, various electrical data of the power system are used. Including the original structure diagram of the power grid and various electrical operating parameters (such as current, voltage and regular factors, etc.). In the management process of low-voltage station areas, due to the large number of users in the station area, imperfect data collection, and large gaps in line distribution, it is difficult to achieve accurate calculation of theoretical line loss. In line loss management, a lot of manpower and material resources need to be mobilized, and the effect is not good. For example, errors and omissions may occur in manual meter reading. Due to the huge workload, it is difficult for the power grid company to collect the necessary data and information for accurate calculation of line loss, and it is even more difficult to find abnormal line loss and complete line loss reduction processing.
基于上述现状,需要找到适合的智能算法用于快速、准确地计算出台区线损,并将结果应用于线损管理等提高电网管理水平的措施中。Based on the above status quo, it is necessary to find a suitable intelligent algorithm to quickly and accurately calculate the line loss in the station area, and apply the results to the measures to improve the management level of the power grid such as line loss management.
发明内容Contents of the invention
本发明的目的在于克服现有技术的不足,提出一种低压台区降损优化方法,根据低压台区线损计算的特点将粒子群算法应用于优化BP神经网络的初始阈值和权值,提高网络训练的精度和速度。The purpose of the present invention is to overcome the deficiencies in the prior art, propose a kind of low-voltage station area loss reduction optimization method, apply the particle swarm algorithm to optimize the initial threshold and weight of BP neural network according to the characteristics of low-voltage station area line loss calculation, improve Accuracy and speed of network training.
为实现上述目的,本发明所设计的一种低压台区降损优化方法,其特殊之处在于,包括如下步骤:In order to achieve the above-mentioned purpose, a method for optimizing the loss reduction of the low-pressure platform area designed by the present invention is special in that it includes the following steps:
1)建立BP神经网络模型,所述BP神经网络包括一个输入层,一个输出层和一个及以上的隐含层;1) set up BP neural network model, described BP neural network comprises an input layer, an output layer and one and above hidden layers;
2)利用粒子群优化算法训练样本数据,将输出作为所述BP神经网络的初始权值与阈值;2) Utilize the particle swarm optimization algorithm to train the sample data, and use the output as the initial weight and threshold of the BP neural network;
3)随机选择若干个台区数据输入训练好的所述BP神经网络,将所述BP神经网络的计算值导出。3) Randomly select the data of several stations to input the trained BP neural network, and derive the calculated value of the BP neural network.
优选地,所述粒子群优化算法的步骤包括:Preferably, the steps of the particle swarm optimization algorithm include:
(1)初始化粒子参数,确定适应度函数;(1) Initialize the particle parameters and determine the fitness function;
(2)对群体中的每一个个体进行适应度评价;(2) Evaluate the fitness of each individual in the group;
(3)根据个体的适应度,确定每一个粒子的个体极值和粒子群整体极值;(3) Determine the individual extremum of each particle and the overall extremum of the particle swarm according to the fitness of the individual;
(4)根据公式更新粒子的位置和速度;(4) Update the position and velocity of the particle according to the formula;
(5)达到最大迭代次数时停止更新,保存最优解;(5) Stop updating when the maximum number of iterations is reached, and save the optimal solution;
(6)以最优解为初始网络权值和阈值,用以神经网络求解;(6) Take the optimal solution as the initial network weight and threshold, and use the neural network to solve it;
(7)比较m个由BP神经网络求得的最优解,从而获得整体的最优解。(7) Compare the m optimal solutions obtained by the BP neural network, so as to obtain the overall optimal solution.
优选地,所述粒子群算法中粒子速度和位置的更新公式为:Preferably, the update formula of particle velocity and position in the particle swarm optimization algorithm is:
Xi是第i个粒子位置的变量,k是更新次数,pbest代表最佳的当前每个粒子本身的位置,gbest代表历史上整个群体所有粒子的最佳位置,r1是从0到1的随机数,c1是学习因子,w是惯性因子,Vi k代表当前速度。X i is the variable of the i-th particle position, k is the number of updates, pbest represents the best current position of each particle itself, gbest represents the best position of all particles in the entire group in history, r 1 is from 0 to 1 Random number, c 1 is the learning factor, w is the inertia factor, V i k represents the current speed.
优选地,所述BP神经网络的隐层结点为5层,共25个权值和6个阈值。Preferably, the hidden layer nodes of the BP neural network are 5 layers, with 25 weights and 6 thresholds in total.
优选地,所述台区数据包括台区用户性质、线路类型、配变容量、台区用户容量比、单相用户总占比、台区平均负载率、台区平均功率因数、台区平均母线电压、台区总形状系数、台区平均三相不平衡系数、单相用户总用电占比、供电距离、平均用户供电长度。Preferably, the station area data includes station area user properties, line type, distribution transformer capacity, station area user capacity ratio, single-phase user total proportion, station area average load rate, station area average power factor, station area average busbar Voltage, total shape factor of the station area, average three-phase unbalance coefficient of the station area, proportion of total power consumption of single-phase users, power supply distance, and average user power supply length.
优选地,所述BP神经网络的最小均方差的计算公式为:Preferably, the calculation formula of the minimum mean square error of the BP neural network is:
SN为样本总数,N为输出向量维度,aij为第一次的输出值aij,tij为目标值tij。SN is the total number of samples, N is the dimension of the output vector, a ij is the first output value a ij , and t ij is the target value t ij .
优选地,所述台区平均负载率的计算方法为:(日总供电量/24)/配变容量*100%。Preferably, the calculation method of the average load rate of the station area is: (total daily power supply/24)/distribution transformer capacity*100%.
优选地,所述台区平均三相不平衡系数εat的计算方法为:Preferably, the calculation method of the average three-phase unbalance coefficient ε at of the station area is:
其中:IAt为A相电流,单位为:A,一天共n个采集点;IBt为B相电流,单位为:A,一天共n个采集点;ICt为C相电流,单位为:A,一天共n个采集点。Among them: I At is the A-phase current, the unit is: A, a total of n collection points a day; I Bt is the B-phase current, the unit is: A, a total of n collection points a day; I Ct is the C-phase current, the unit is: A, There are n collection points in one day.
优选地,所述供电距离指配变和负荷中心的距离,所述平均用户供电长度指所有用户距负荷中心距离平均值。Preferably, the power supply distance refers to the distance between the distribution transformer and the load center, and the average user power supply length refers to the average distance between all users and the load center.
优选地,所述台区数据中用户性质、线路类型为离散的类别变量,配变容量、台区用户容量比和台区线损率等为连续型变量。Preferably, the user properties and line types in the station area data are discrete categorical variables, and the distribution transformer capacity, station area user capacity ratio, and station area line loss rate are continuous variables.
为了满足神经网络算法对样本数据的质量要求,本发明提出的一种低压台区降损优化方法的有益效果为:In order to meet the quality requirements of the neural network algorithm on the sample data, the beneficial effects of a loss reduction optimization method for low-voltage platform areas proposed by the present invention are as follows:
1、通过样本数据分布特点分析和特征指标相关性分析挑选出可以进行下一步机器学习的变量和原始数据。1. Through the analysis of the distribution characteristics of the sample data and the correlation analysis of the characteristic indicators, the variables and original data that can be used for the next step of machine learning are selected.
2、粒子群优化算法计算复杂度低,以较大的概率保证最优解,克服BP算法局部最优的缺陷。在MATLAB中建立的改进粒子群算法优化BF神经网络模型,验证了模型具有高精度的特点。2. The particle swarm optimization algorithm has low computational complexity, guarantees the optimal solution with a high probability, and overcomes the local optimal defect of the BP algorithm. The improved particle swarm optimization algorithm established in MATLAB optimizes the BF neural network model, which verifies that the model has the characteristics of high precision.
附图说明Description of drawings
图1为低压台区拓扑等效模型示意图。Fig. 1 is a schematic diagram of a topological equivalent model of a low-pressure station area.
图2为原始数据在Excel表格中示意图。Figure 2 is a schematic diagram of the original data in an Excel table.
图3为样本数据进行分布特点分析示意图。Figure 3 is a schematic diagram of the analysis of the distribution characteristics of the sample data.
图4为BP神经网络模型结构示意图。Fig. 4 is a schematic diagram of the structure of the BP neural network model.
具体实施方式detailed description
以下结合附图和具体实施例对本发明作进一步的详细描述。The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
本发明所提出的一种低压台区降损优化方法的具体步骤如下:The specific steps of a loss reduction optimization method for a low-pressure platform area proposed by the present invention are as follows:
1)建立BP神经网络模型,所述BP神经网络包括一个输入层,一个输出层和一个及以上的隐含层;1) set up BP neural network model, described BP neural network comprises an input layer, an output layer and one and above hidden layers;
2)利用粒子群优化算法训练样本数据,将输出作为所述BP神经网络的初始权值与阈值;2) Utilize the particle swarm optimization algorithm to train the sample data, and use the output as the initial weight and threshold of the BP neural network;
3)随机选择若干个台区数据输入训练好的所述BP神经网络,将所述BP神经网络的计算值导出。3) Randomly select the data of several stations to input the trained BP neural network, and derive the calculated value of the BP neural network.
低压台区拓扑等效模型如图1所示,当网络拓扑结构未知和所需数据不足时,可以建立一个虚拟的配电网络,假设配变和每个用户都与这个网络连接,形成一个虚拟的网络拓扑结构,该结构中所有负荷的连接点即为虚拟的负荷中心点。低压台区原始数据包括配变侧数据和用户侧数据,通过收集到的数据初步选定的聚类指标如下表1。The equivalent topological model of the low-voltage station area is shown in Figure 1. When the network topology is unknown and the required data is insufficient, a virtual power distribution network can be established. It is assumed that the distribution transformer and each user are connected to this network to form a virtual power distribution network. The network topology structure, the connection point of all loads in this structure is the virtual load center point. The original data of the low-voltage station area includes distribution transformer side data and user side data. The clustering indicators initially selected through the collected data are shown in Table 1.
表1配变侧数据和用户侧数据Table 1 Distribution transformer side data and user side data
表中数据具体含义按照前后顺序如下所示:The specific meaning of the data in the table is as follows in order of precedence:
用户性质取值:1城网,2农网,0其他;计算方法:依据台区下低压用户城农网属性统计出来:如果城网用户数量多,则结果为1,如果农网用户数量多,则结果为2,如果城农网一样多或者为空的比较多,则结果为0。User property values: 1 urban network, 2 rural network, 0 others; calculation method: according to the statistics of urban and rural network attributes of low-voltage users in the station area: if the number of urban network users is large, the result is 1; if the number of rural network users is large , the result is 2, and if there are as many urban-rural networks or more empty ones, the result is 0.
线路类型取值:1架空线,2电缆,3混合,0其他;计算法方法:根据用户电源对应的线路进线方式:架空线多,则为1,电缆(包括电缆直埋,电缆架空、电缆桥架、电缆隧道、电缆管井)多结果为2,如果结果混合多,则为3,其他为0。Line type value: 1 overhead line, 2 cable, 3 mixed, 0 others; calculation method: according to the line input method corresponding to the user's power supply: if there are many overhead lines, it is 1, and cables (including direct buried cables, overhead cables, Cable tray, cable tunnel, cable pipe well) is 2 if the result is mixed, 3 if the result is mixed, and 0 for others.
配变类型取值:1公变、2专变;暂时系统只有公变数据,本指标暂时不计入。Values of distribution variable type: 1 public variable, 2 special variable; temporarily the system only has public variable data, and this index is temporarily not included.
台区用户容量比计算方法:(单相用户总容量+三相用户总容量)/配变容量。Calculation method of user capacity ratio in station area: (total capacity of single-phase users + total capacity of three-phase users)/capacity of distribution transformer.
单相用户总占比计算方法:单相用户总容量/(单相用户总容量+三相用户总容量)。Calculation method for the total proportion of single-phase users: total capacity of single-phase users / (total capacity of single-phase users + total capacity of three-phase users).
三相用户总占比计算方法:三相用户总容量/(单相用户总容量+三相用户总容量)。Calculation method for the total proportion of three-phase users: total capacity of three-phase users/(total capacity of single-phase users + total capacity of three-phase users).
台区平均负载率计算方法:(日总供电量/24)/配变容量*100%。可以用平均功率校核(平均功率/配变容量*100%)。The calculation method of the average load rate in the station area: (total daily power supply/24)/distribution transformer capacity*100%. It can be checked with average power (average power/distribution transformer capacity*100%).
台区最大负载率计算方法:最大功率/配变容量*100%。The calculation method of the maximum load rate in the station area: maximum power/distribution transformer capacity*100%.
台区总形状系数计算方法:采用日负荷形状系数来表征台区日负荷的变化曲线,其定义为均方根电流与平均值电流的比值K,计算公式为:The calculation method of the total shape coefficient of the station area: the daily load shape coefficient is used to characterize the change curve of the daily load of the station area, which is defined as the ratio K of the root mean square current to the average current, and the calculation formula is:
当采集的数据为一天n个数据点时,考虑到负荷三相不平衡时,计算公式为:When the collected data is n data points a day, considering the load three-phase unbalance, the calculation formula is:
其中:IAt为A相电流,单位为:A,一天共n个点;IBt为B相电流,单位为:A,一天共n个点;ICt为C相电流,单位为:A,一天共n个点;Among them: I At is the A-phase current, the unit is: A, a total of n points a day; I Bt is the B-phase current, the unit is: A, a total of n points a day; I Ct is the C-phase current, the unit is: A, A total of n points a day;
台区平均三相不平衡系数计算公式Calculation formula of average three-phase unbalance coefficient in station area
考虑到进行台区日线损计算,采用日平均三相不平衡系数来表征台区配变单日内的负荷不平衡情况。Considering the calculation of the daily line loss in the station area, the daily average three-phase unbalance coefficient is used to characterize the unbalanced load of the distribution transformer in the station area in a single day.
计算公式为:The calculation formula is:
其中:IAt为A相电流,单位为:A,一天共n个采集点;IBt为B相电流,单位为:A,一天共n个采集点;ICt为C相电流,单位为:A,一天共n个采集点;Among them: I At is the A-phase current, the unit is: A, a total of n collection points a day; I Bt is the B-phase current, the unit is: A, a total of n collection points a day; I Ct is the C-phase current, the unit is: A, a total of n collection points a day;
单相用户总用电占比:单相用户日总用电量/(单相用户日总用电量+三相用户日总用电量)。Proportion of total electricity consumption of single-phase users: total daily electricity consumption of single-phase users/(total daily electricity consumption of single-phase users + total daily electricity consumption of three-phase users).
负荷中心:用户地理坐标中心点。Load center: the center point of the user's geographic coordinates.
供电距离:配变和负荷中心的距离。Power supply distance: the distance between the distribution transformer and the load center.
平均用户供电长度:所有用户距负荷中心距离平均值。Average user power supply length: the average distance between all users and the load center.
原始的低压台区的配变侧数据和用户侧数据并不能直接进行机器学习,需要预处理去除的空缺值和无意义数据。对预处理后的数据进行分布特点分析进一步了解低压台区数据,并通过所有变量之间的相关性分析和重要性分析去除少数相关性高且重要性低的变量,初步选出进入神经网络训练的变量。The original distribution transformer side data and user side data of the low-voltage station area cannot be directly used for machine learning, and blank values and meaningless data need to be removed by preprocessing. Analyze the distribution characteristics of the preprocessed data to further understand the data of the low-pressure station area, and remove a few variables with high correlation and low importance through the correlation analysis and importance analysis among all variables, and initially select them for neural network training Variables.
本实施例中的原始数据包括16个变量,其基本信息如表1所示,其中,用户性质、线路类型为离散的类别变量,配变容量、台区用户容量比和台区线损率等为连续型变量。图2为数据在Excel表格中的截图。原始数据包括19324个台区的相关指标,该数据中台区线损率的分布为-100%到100%,由于小于0的台区线损率没有现实意义,所以剔除了小于0和大于20%的台区线损率的相关数据,得到18720个台区一天的数据。The original data in this embodiment includes 16 variables, the basic information of which is shown in Table 1, wherein, user properties, line types are discrete category variables, distribution transformer capacity, station area user capacity ratio and station area line loss rate, etc. is a continuous variable. Figure 2 is a screenshot of the data in an Excel table. The original data includes relevant indicators of 19324 station areas. The line loss rate of the station area in the data is distributed from -100% to 100%. Since the line loss rate of the station area less than 0 has no practical significance, the less than 0 and greater than 20 are excluded. The relevant data of the line loss rate of % station area is obtained, and the data of 18720 station areas are obtained for one day.
将样本数据导入到数据挖掘软件Weka中进行分布特点分析,基本分布如图3所示。Import the sample data into the data mining software Weka to analyze the distribution characteristics. The basic distribution is shown in Figure 3.
BP(back propagation)神经网络是一种具有三层及以上的前馈神经网络,是一种应用最为广泛的机器学习算法。其基本原理是通过将网络输出值和目标值的误差逆向传播,不断修正网络的权值和阈值得到最接近于目标值的输出。最基本的BP神经网络包括一个输入层,一个输出层和一个及以上的隐含层,如图4所示。图4中,x1,x2……xm为输入变量,y1,y2……yp为隐含层神经元,O1,O2……Om为输出变量。wij为第i个输入变量到第j个神经元的权值,代表输入变量的重要性,权值越高越重要。wjk为第j个神经元到第k个输出变量的权值。bij和bjk为阈值,只有输入之和超过阈值时才会引起输出的变化。BP (back propagation) neural network is a feed-forward neural network with three or more layers, and it is the most widely used machine learning algorithm. The basic principle is to continuously modify the weights and thresholds of the network to obtain the output closest to the target value by backpropagating the error between the network output value and the target value. The most basic BP neural network includes an input layer, an output layer and one or more hidden layers, as shown in Figure 4. In Fig. 4, x 1 , x 2 ... x m are input variables, y 1 , y 2 ... y p are hidden layer neurons, O 1 , O 2 ... O m are output variables. w ij is the weight from the i-th input variable to the j-th neuron, which represents the importance of the input variable, and the higher the weight, the more important it is. w jk is the weight from the jth neuron to the kth output variable. b ij and b jk are thresholds, and only when the sum of the inputs exceeds the threshold will the output change.
BP神经网络需要设置初始权值和阈值后才能进行训练。第一次的输出值aij与目标值tij的差距没有达到足够小时,神经网络会将两者最小均方差MSE作为误差信号由输出层反向传播,连接权值和阈值会被逐个修正。The BP neural network needs to set the initial weight and threshold before training. If the gap between the first output value a ij and the target value t ij is not small enough, the neural network will use the minimum mean square error MSE of the two as the error signal to be backpropagated by the output layer, and the connection weights and thresholds will be corrected one by one.
最小均方差(MSE)的计算公式如下所示:The formula for calculating the minimum mean square error (MSE) is as follows:
由公式可以看出MSE是关于权值和阈值的函数。式中,SN为样本总数,N为输出向量维度。接下来BP神经网络会根据新的权值和阈值进行下一次训练,直到输出值aij和目标值tij的差距足够小为止。尽管在实际的研究与应用中,BP神经网络被广泛的使用,但是网络的隐含层神经元节点个数,激活函数类型和初始权值与阈值的选择并没有指导标准,缺乏理论支持。It can be seen from the formula that MSE is a function of weight and threshold. In the formula, SN is the total number of samples, and N is the output vector dimension. Next, the BP neural network will perform the next training according to the new weight and threshold until the gap between the output value a ij and the target value t ij is small enough. Although BP neural networks are widely used in practical research and applications, there are no guiding standards for the number of neuron nodes in the hidden layer of the network, the type of activation function, and the selection of initial weights and thresholds, which lacks theoretical support.
BP神经网络的训练结果如下表2所示。The training results of BP neural network are shown in Table 2 below.
表2 BP神经网络训练结果Table 2 BP neural network training results
表中Ec为样本相对误差百分数;迭代次数为各类迭代次数之和。通过表2可以看出随着训练误差的增大,迭代次数越来越少,越来越多的台区落入到相对误差小于1%的区域,越来越少的目标落入到相对误差大于5%的区域。In the table, E c is the percentage of sample relative error; the number of iterations is the sum of the number of iterations of various types. It can be seen from Table 2 that as the training error increases, the number of iterations decreases, more and more stations fall into the area where the relative error is less than 1%, and fewer and fewer targets fall into the relative error Greater than 5% of the area.
随机选择10个台区数据投入训练好的BP神经网络,将BP模型的计算值导出后与真实线损率对比,其结果见表3所示。The data of 10 station areas were randomly selected and put into the trained BP neural network, and the calculated value of the BP model was exported and compared with the real line loss rate. The results are shown in Table 3.
表3 BP神经网络模型测试结果误差Table 3 Errors of test results of BP neural network model
BP神经网络模型绝对误差最大值为0.63%,相对误差最大值为0.135%。The maximum absolute error of BP neural network model is 0.63%, and the maximum relative error is 0.135%.
本实施例采用BP模型神经网络,有4个输入端和1个输出端,分别与4个特征参数和线损率相对应。网络中权重总数应等于或小于样本容量,所得数学模型才比较稳定。由此,本实施例中隐层结点为5层比较合适,网络结构为4个输入变量—5个隐藏层—1个输出变量,共25个权值和6个阈值。算例共选取10381个样本,每个样本数据包含1自变量和因变量。分别为台区平均功率因素,负荷形状系数,台区单相容量占比和台区用户容量比,输出为线损率。This embodiment adopts the BP model neural network, which has 4 input terminals and 1 output terminal, corresponding to 4 characteristic parameters and line loss rate respectively. The total number of weights in the network should be equal to or less than the sample size, so that the resulting mathematical model is relatively stable. Therefore, in this embodiment, it is more appropriate to have 5 hidden layer nodes, and the network structure is 4 input variables-5 hidden layers-1 output variable, with a total of 25 weights and 6 thresholds. A total of 10381 samples are selected for the calculation example, and each sample data contains one independent variable and one dependent variable. They are the average power factor of the station area, the load shape factor, the proportion of single-phase capacity in the station area and the ratio of user capacity in the station area, and the output is the line loss rate.
粒子群算法PSO对设计变量的缩放不敏感,而且仅拥有很少的算法参数,是一种高效的全局搜索算法。在PSO中有两个重要特征:速度和位置。它通过一些确定的规则公式更新,并在不断地更新后到达最佳点。下面两个公式是关于速度和位置的更新公式。Particle swarm optimization algorithm (PSO) is not sensitive to the scaling of design variables, and only has few algorithm parameters, so it is an efficient global search algorithm. In PSO there are two important features: velocity and position. It is updated by some definite rule formula, and reaches the optimal point after continuous updating. The following two formulas are update formulas for speed and position.
Xi是第i个粒子位置的变量,k是更新次数,pbest代表最佳的当前每个粒子本身的位置,gbest代表历史上整个群体所有粒子的最佳位置,r1是从0到1的随机数,c1是学习因子,w是惯性因子,Vi k代表当前速度。X i is the variable of the i-th particle position, k is the number of updates, pbest represents the best current position of each particle itself, gbest represents the best position of all particles in the entire group in history, r 1 is from 0 to 1 Random number, c 1 is the learning factor, w is the inertia factor, V i k represents the current speed.
PSO-BP神经网络的权值和阈值的流程是将网络的最小均方差MSE设为适应度函数,将PSO的优化结果作为神经网络的初始权值与阈值。The process of the weight and threshold of the PSO-BP neural network is to set the minimum mean square error MSE of the network as the fitness function, and use the optimization result of PSO as the initial weight and threshold of the neural network.
PSO-BP神经网络的主要步骤如下所示:The main steps of the PSO-BP neural network are as follows:
(1)初始化粒子参数,确定适应度函数;(1) Initialize the particle parameters and determine the fitness function;
(2)对群体中的每一个个体进行适应度评价;(2) Evaluate the fitness of each individual in the group;
(3)根据个体的适应度,确定每一个粒子的个体极值和粒子群整体极值;(3) Determine the individual extremum of each particle and the overall extremum of the particle swarm according to the fitness of the individual;
(4)根据公式更新粒子的位置和速度;(4) Update the position and velocity of the particle according to the formula;
(5)达到最大迭代次数时停止更新,保存最优解;(5) Stop updating when the maximum number of iterations is reached, and save the optimal solution;
(6)以这些最优解为初始网络权值和阈值,用以神经网络求解;(6) Use these optimal solutions as initial network weights and thresholds for neural network solution;
(7)比较m个由BP神经网络求得的最优解,从而获得整体的最优解。(7) Compare the m optimal solutions obtained by the BP neural network, so as to obtain the overall optimal solution.
结合粒子群的神经网络算法(PSO-BP)实验:首先给出算法的参数设置。基于粒子群优化的训练算法种群规模s=30,惯性权重W取随机值,加速因子c1=c2=2,权值为[-1,1]区间变量,由经验公式确定神经网络隐含层节点数为5,算法停止条件为最大迭代次数(4000)或误差精度为0.0001。The experiment of neural network algorithm combined with particle swarm optimization (PSO-BP): Firstly, the parameter setting of the algorithm is given. The population size of the training algorithm based on particle swarm optimization is s=30, the inertia weight W takes a random value, the acceleration factor c1=c2=2, the weight is a variable in the [-1,1] interval, and the hidden layer nodes of the neural network are determined by the empirical formula The number is 5, and the algorithm stop condition is the maximum number of iterations (4000) or the error precision is 0.0001.
表4所示为分别用PSO-BP神经网络模型和GA-BP神经网络模型训练后的计算结果的误差。Table 4 shows the errors of the calculation results after training with the PSO-BP neural network model and the GA-BP neural network model respectively.
表4 PSO-BP神经网络和GA-BP神经网络对比Table 4 Comparison of PSO-BP neural network and GA-BP neural network
GA-BP模型绝对误差最大值为0.3%,PSO-BP模型绝对误差最大值为0.39%,相较于BP模型绝对误差最大值为0.63%,分别减少了52%和38%。GA-BP模型相对误差最大值为0.093%,PSO-BP模型绝对误差最大值为0.107%,相较于在BP模型相对误差最大值为0.135%,分别减少了31%和20.7%。将BP模型与GA-BP模型和PSO-GA模型进行对比,可以发现,无论是GA还是PSO优化后的神经网络计算精度都大大提高。粒子群算法优化的BP神经网络在相同量级精度的情况下迭代次数明显优于遗传算法。其结果较遗传算法优化的BP神经网络精度提高。The maximum absolute error of the GA-BP model is 0.3%, and the maximum absolute error of the PSO-BP model is 0.39%, which is 52% and 38% lower than that of the BP model, which is 0.63%. The maximum relative error of the GA-BP model is 0.093%, and the maximum absolute error of the PSO-BP model is 0.107%, which are respectively reduced by 31% and 20.7% compared with the maximum relative error of the BP model which is 0.135%. Comparing the BP model with the GA-BP model and the PSO-GA model, it can be found that the calculation accuracy of the neural network optimized by both GA and PSO is greatly improved. The number of iterations of the BP neural network optimized by the particle swarm optimization algorithm is obviously better than that of the genetic algorithm in the case of the same magnitude of precision. The result is higher than the precision of BP neural network optimized by genetic algorithm.
最后需要说明的是,以上具体实施方式仅用以说明本专利技术方案而非限制,尽管参照较佳实施例对本专利进行了详细说明,本领域的普通技术人员应当理解,可以对本专利的技术方案进行修改或者等同替换,而不脱离本专利技术方案的精神和范围,其均应涵盖在本专利的权利要求范围当中。Finally, it should be noted that the above specific embodiments are only used to illustrate the technical solution of the patent and not to limit it. Although the patent has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the patent can be Modifications or equivalent replacements without departing from the spirit and scope of the technical solution of this patent shall be covered by the claims of this patent.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110426826.4A CN113285440B (en) | 2021-04-20 | 2021-04-20 | Low-voltage transformer area loss reduction optimization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110426826.4A CN113285440B (en) | 2021-04-20 | 2021-04-20 | Low-voltage transformer area loss reduction optimization method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113285440A CN113285440A (en) | 2021-08-20 |
CN113285440B true CN113285440B (en) | 2023-01-17 |
Family
ID=77277048
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110426826.4A Expired - Fee Related CN113285440B (en) | 2021-04-20 | 2021-04-20 | Low-voltage transformer area loss reduction optimization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113285440B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113887785A (en) * | 2021-09-13 | 2022-01-04 | 江苏智臻能源科技有限公司 | Transformer area theoretical line loss prediction method based on discretization sampling and neural network |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108694467A (en) * | 2018-05-22 | 2018-10-23 | 中国电力科学研究院有限公司 | A kind of method and system that Line Loss of Distribution Network System rate is predicted |
-
2021
- 2021-04-20 CN CN202110426826.4A patent/CN113285440B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108694467A (en) * | 2018-05-22 | 2018-10-23 | 中国电力科学研究院有限公司 | A kind of method and system that Line Loss of Distribution Network System rate is predicted |
Non-Patent Citations (1)
Title |
---|
计及三相负荷不平衡的农村低压配电网理论线损计算;王彪等;《电力科学与技术学报》;20130331;第81-85页 * |
Also Published As
Publication number | Publication date |
---|---|
CN113285440A (en) | 2021-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110311376A (en) | A comprehensive model and spatial-temporal visualization method for power system dynamic security assessment | |
CN100438251C (en) | A large electric system vulnerable line identifying method | |
CN102521652A (en) | Evaluation and decision method for operation efficiency of power grid | |
CN107800140A (en) | A kind of large user for considering load characteristic, which powers, accesses decision-making technique | |
CN103049799A (en) | Multi-objective-optimization-based power grid planning and designing method | |
CN113949079B (en) | Three-phase unbalance prediction and optimization method for users in distribution station area based on deep learning | |
CN115037054A (en) | Intelligent terminal of commutation switch based on three-phase self-balancing and low-voltage fault location isolation | |
CN113139596A (en) | Optimization algorithm of low-voltage transformer area line loss neural network | |
CN116799780A (en) | A distribution network distributed photovoltaic carrying capacity assessment method, system and assessment terminal | |
CN111900713A (en) | Multi-scene power transmission network planning method considering load and wind power randomness under network source coordination | |
CN115860547A (en) | Rural electrification digital formation effect evaluation method based on combined empowerment-TOPSIS | |
CN113285440B (en) | Low-voltage transformer area loss reduction optimization method | |
CN102999876B (en) | Method for constructing full-network load model library of power system | |
CN111242420A (en) | Comprehensive performance multi-dimensional evaluation method | |
CN112446175B (en) | Optimization method of distributed power generation site selection based on probabilistic power flow calculation of distribution network | |
CN112508254A (en) | Method for determining investment prediction data of transformer substation engineering project | |
CN118157154A (en) | A constraint construction method considering transient voltage stability mechanism | |
CN116683518A (en) | Comprehensive evaluation method of distribution network considering low-carbon benefits | |
CN115796711A (en) | Auxiliary decision-making method and device for loss reduction of distribution line | |
CN116245386A (en) | Distribution network investment benefit portrait method considering multidimensional driving factors | |
Lingang et al. | Research on integrated calculation method of theoretical line loss of MV and LV distribution Network based on Adaboost integrated learning | |
Guo et al. | An optimized back propagation neural network based on genetic algorithm for line loss calculation in low-voltage distribution grid | |
CN119029964B (en) | Energy storage equipment planning method and system for medium-low voltage alternating-current and direct-current storage hybrid power distribution network | |
Ge et al. | Evaluation method of distribution network state based on IT-II-Fuzzy K-means Clustering Algorithm for Imbalanced Data under PIOT | |
Liu et al. | Research and application of grid-based integrated evaluation and management of distribution grid |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20230117 |