[go: up one dir, main page]

CN110673017B - Analog circuit fault element parameter identification method based on genetic algorithm - Google Patents

Analog circuit fault element parameter identification method based on genetic algorithm Download PDF

Info

Publication number
CN110673017B
CN110673017B CN201910978616.9A CN201910978616A CN110673017B CN 110673017 B CN110673017 B CN 110673017B CN 201910978616 A CN201910978616 A CN 201910978616A CN 110673017 B CN110673017 B CN 110673017B
Authority
CN
China
Prior art keywords
fault
population
analog circuit
individual
representative
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
Application number
CN201910978616.9A
Other languages
Chinese (zh)
Other versions
CN110673017A (en
Inventor
杨成林
陈钇任
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201910978616.9A priority Critical patent/CN110673017B/en
Publication of CN110673017A publication Critical patent/CN110673017A/en
Application granted granted Critical
Publication of CN110673017B publication Critical patent/CN110673017B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2832Specific tests of electronic circuits not provided for elsewhere
    • G01R31/2836Fault-finding or characterising
    • G01R31/2846Fault-finding or characterising using hard- or software simulation or using knowledge-based systems, e.g. expert systems, artificial intelligence or interactive algorithms
    • G01R31/2848Fault-finding or characterising using hard- or software simulation or using knowledge-based systems, e.g. expert systems, artificial intelligence or interactive algorithms using simulation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/12Computing arrangements based on biological models using genetic models
    • G06N3/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biophysics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Genetics & Genomics (AREA)
  • Biomedical Technology (AREA)
  • Physiology (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Medical Informatics (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Locating Faults (AREA)

Abstract

本发明公开了一种基于遗传算法的模拟电路故障元件参数辨识方法,首先分析得到模拟电路在不同测点处的传输函数,测量得到模拟电路在预设激励信号下这些测点处的输出电压,将元件参数值向量作为遗传算法中的个体,在对交叉、变异后的个体进行优选时,先按照故障类型对种群个体进行分组,选择每个故障类型的最优个体加入下一代种群,再从剩余个体中优选个体加入下一代种群,将最后一代种群中最优个体的参数值作为元件参数辨识结果。本发明通过遗传算法实现对模拟电路单故障和双故障的故障元件参数辨识。

Figure 201910978616

The invention discloses a method for identifying fault components of an analog circuit based on a genetic algorithm. First, the transfer functions of the analog circuit at different measuring points are obtained by analysis, and the output voltages of the analog circuit at the measuring points under a preset excitation signal are obtained by measuring, The element parameter value vector is used as the individual in the genetic algorithm. When the individual after crossover and mutation is optimized, the population individuals are firstly grouped according to the failure type, and the optimal individual of each failure type is selected to join the next generation population, and then from The optimal individual among the remaining individuals is added to the next generation population, and the parameter value of the optimal individual in the last generation population is used as the element parameter identification result. The invention realizes the identification of the fault element parameters of the single fault and double fault of the analog circuit through the genetic algorithm.

Figure 201910978616

Description

基于遗传算法的模拟电路故障元件参数辨识方法A Genetic Algorithm-Based Method for Parameter Identification of Fault Component in Analog Circuits

技术领域technical field

本发明属于模拟电路故障诊断技术领域,更为具体地讲,涉及一种基于遗传算法的模拟电路故障元件参数辨识。The invention belongs to the technical field of fault diagnosis of analog circuits, and more particularly relates to a genetic algorithm-based identification of fault components of analog circuits.

背景技术Background technique

随着电路的高集成化,芯片的面积在不断的减小,而芯片上集成的模拟元件数量不断增多,芯片中模拟部分的诊断费用居高不下。其原因在于集成电路的飞速发展,而其相应的模拟电路故障诊断技术却停滞不前。随着机器学习、人工智能的发展,基于机器学习和人工智能的模拟电路故障诊断理论方法如雨后春笋般涌现。例如:基于神经网络、SVM等结合小波变换的模拟电路故障诊断方法、测点优选等,需要提取大量的故障特征对神经网络、支持向量机等进行训练。如何在容差情况下提取有效的故障特征是这类方法要解决的问题。With the high integration of circuits, the area of the chip is constantly decreasing, and the number of analog components integrated on the chip is increasing, and the diagnostic cost of the analog part in the chip remains high. The reason lies in the rapid development of integrated circuits, while the corresponding analog circuit fault diagnosis technology is stagnant. With the development of machine learning and artificial intelligence, theoretical methods for fault diagnosis of analog circuits based on machine learning and artificial intelligence have sprung up. For example, analog circuit fault diagnosis methods based on neural network, SVM, etc. combined with wavelet transform, measurement point selection, etc., need to extract a large number of fault features to train neural networks, support vector machines, etc. How to extract effective fault features in the case of tolerance is the problem to be solved by this kind of method.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于克服现有技术的不足,提供一种基于遗传算法的模拟电路故障元件参数辨识方法,通过遗传算法实现对模拟电路单故障和双故障的故障元件参数辨识。The purpose of the present invention is to overcome the deficiencies of the prior art, and to provide a genetic algorithm-based method for identifying the parameters of faulty components of an analog circuit.

为实现上述发明目的,本发明基于遗传算法的模拟电路故障元件参数辨识方法包括以下步骤:In order to achieve the above-mentioned purpose of the invention, the method for identifying the parameters of faulty components of an analog circuit based on a genetic algorithm of the present invention comprises the following steps:

S1:获取模拟电路在D个测点td处的传输函数,d=1,2,…,D;S1: Obtain the transfer function of the analog circuit at D measuring points t d , d=1,2,...,D;

S2:对模拟电路中进行经测点t进行故障诊断的模糊组分析,为每个模糊组选择一个代表性故障元件,记代表性故障元件的数量为N,记其他非代表性故障元件的数量为M;S2: Carry out the fuzzy group analysis of fault diagnosis through the measurement point t in the analog circuit, select a representative fault element for each fuzzy group, record the number of representative fault elements as N, and record the number of other non-representative fault elements is M;

S3:设置无故障表示模拟电路中所有故障元件均不发生故障,单故障表示模拟电路发生故障时仅有一个代表性故障元件发生故障,双故障表示模拟电路发生故障时有两个代表性故障元件同时发生故障,记故障类型数量

Figure GDA0002572773420000011
S3: Setting no fault means that all faulty components in the analog circuit are not faulty, single fault means that only one representative faulty component fails when the analog circuit fails, and double faults means that there are two representative faulty components when the analog circuit fails If faults occur at the same time, record the number of fault types
Figure GDA0002572773420000011

S4:当需要进行模拟电路故障参数辨识时,在预设的激励信号下测量得到D个测点td处的输出电压

Figure GDA0002572773420000021
Figure GDA0002572773420000022
分别表示输出电压
Figure GDA0002572773420000023
的实部和虚部,j为虚数单位;S4: When it is necessary to identify the fault parameters of the analog circuit, measure the output voltages at D measuring points t d under the preset excitation signal
Figure GDA0002572773420000021
Figure GDA0002572773420000022
Respectively represent the output voltage
Figure GDA0002572773420000023
The real and imaginary parts of , j is the imaginary unit;

S5:以X={x1,…,xN,x′1,…,x′M}作为遗传算法中的个体,其中xn表示第n个代表性故障元件的参数值,n=1,2,…,N,x′m表示第m个非代表性故障元件的参数值,m=1,2,…,M;对每个故障类型分别生成1个初始分种群pk,k=1,2,…,K,在分种群pk中的每个个体中,将第k个故障类型对应的代表性故障元件的参数值xn在该代表性故障元件的故障范围内取值,其他故障元件的参数值在容差范围内取值;然后将K个分种群pk合并,构成种群P,记种群P中个体数量为G;S5: Take X={x 1 ,...,x N ,x' 1 ,...,x' M } as the individuals in the genetic algorithm, where x n represents the parameter value of the nth representative fault element, n=1, 2 , . ,2,...,K, in each individual in the classification group p k , take the parameter value x n of the representative fault element corresponding to the kth fault type within the fault range of the representative fault element, and other The parameter value of the fault element is within the tolerance range; then the K subgroups p k are merged to form a population P, and the number of individuals in the population P is recorded as G;

S6:判断是否达到遗传算法的迭代结束条件,如果是,进入步骤S11,否则进入步骤S7;S6: judge whether the iteration end condition of the genetic algorithm is reached, if yes, go to step S11, otherwise go to step S7;

S7:对种群P进行交叉和变异操作,得到子种群Q;在进行交叉和变异操作时,需要保证子种群Q中每个个体中至多两个代表性故障元件的参数值位于该代表性故障元件的故障范围,其他故障元件的参数值位于其容差范围;S7: Perform crossover and mutation operations on population P to obtain subpopulation Q; when performing crossover and mutation operations, it is necessary to ensure that the parameter values of at most two representative fault elements in each individual in subpopulation Q are located in the representative fault element The fault range of the other faulty components is within its tolerance range;

S8:将种群P和种群Q进行合并,构成种群S,即S=P∪Q;S8: Combine population P and population Q to form population S, that is, S=P∪Q;

S9:将种群S中的每个个体分别代入传输函数,得到预设激励信号下在D个测点td处的输出电压Ug,d=αg,d+jβg,d,αg,d、βg,d分别表示输出电压Ug,d的实部和虚部,g=1,2,…,2G,然后采用以下公式计算第g个个体输出电压与当前模拟电路的输出电压之间的欧式距离DgS9: Substitute each individual in the population S into the transfer function to obtain the output voltages U g,dg,d +jβ g,dg, at D measuring points t d under the preset excitation signal d and β g,d represent the real part and imaginary part of the output voltage U g, d respectively, g=1,2,...,2G, and then use the following formula to calculate the difference between the output voltage of the gth individual and the output voltage of the current analog circuit. The Euclidean distance D g between :

Figure GDA0002572773420000024
Figure GDA0002572773420000024

S10:将种群S中的个体按照其对应的故障类型划分为K个分种群sk,从每个分种群sk中筛选出欧式距离最小的个体,将其加入下一代种群P′,并从种群S中删除,得到种群S′;然后从种群S′中优选出G-K个个体,加入下一代种群P′;然后令种群P=P′,返回步骤S6;S10: Divide the individuals in the population S into K subgroups sk according to their corresponding fault types, screen out the individual with the smallest Euclidean distance from each subgroup sk , add it to the next generation population P', and add it from Delete from the population S to obtain the population S'; then select GK individuals from the population S' and add the next generation population P'; then set the population P=P', and return to step S6;

S11:从当前种群中选择欧式距离最小的个体,该个体中参数值位于故障范围内的代表性故障元件即为故障诊断结果,对应参数值即为故障元件参数辨识结果。S11: Select the individual with the smallest Euclidean distance from the current population. The representative fault element whose parameter value is within the fault range in the individual is the fault diagnosis result, and the corresponding parameter value is the parameter identification result of the fault element.

本发明基于遗传算法的模拟电路故障元件参数辨识方法,首先分析得到模拟电路在不同测点处的传输函数,测量得到模拟电路在预设激励信号下这些测点处的输出电压,将元件参数值向量作为遗传算法中的个体,在对交叉、变异后的个体进行优选时,先按照故障类型对种群个体进行分组,选择每个故障类型的最优个体加入下一代种群,再从剩余个体中优选个体加入下一代种群,将最后一代种群中最优个体的参数值作为元件参数辨识结果。The invention is based on the genetic algorithm-based method for identifying the parameters of faulty components of an analog circuit. First, the transfer functions of the analog circuit at different measuring points are obtained by analysis, and the output voltages of the analog circuit at these measuring points under the preset excitation signal are measured and obtained, and the parameter values of the components are calculated. The vector is used as the individual in the genetic algorithm. When the individuals after crossover and mutation are optimized, the population individuals are firstly grouped according to the failure type, and the optimal individual of each failure type is selected to join the next generation population, and then the remaining individuals are selected. Individuals are added to the next generation of populations, and the parameter values of the optimal individuals in the last generation of populations are used as the result of element parameter identification.

本发明通过采用遗传算法,可以有效规避故障特征提取,避免了大量的仿真工作,在遗传算法运行过程中,分种群保留得到每种故障类型的最优个体,提供元件故障可能性,从而实现对模拟电路单故障和双故障的故障元件参数辨识。By using the genetic algorithm, the present invention can effectively avoid the extraction of fault features and avoid a lot of simulation work. Parameter identification of faulty components in single-fault and double-fault analog circuits.

附图说明Description of drawings

图1是本发明基于遗传算法的模拟电路故障元件参数辨识方法的具体实施方式流程图;Fig. 1 is the specific implementation flow chart of the method for identifying the parameters of analog circuit fault components based on genetic algorithm of the present invention;

图2是本实施例二阶托马斯模拟滤波电路的拓扑图。FIG. 2 is a topology diagram of the second-order Thomas analog filter circuit of this embodiment.

具体实施方式Detailed ways

下面结合附图对本发明的具体实施方式进行描述,以便本领域的技术人员更好地理解本发明。需要特别提醒注意的是,在以下的描述中,当已知功能和设计的详细描述也许会淡化本发明的主要内容时,这些描述在这里将被忽略。The specific embodiments of the present invention are described below with reference to the accompanying drawings, so that those skilled in the art can better understand the present invention. It should be noted that, in the following description, when the detailed description of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.

图1是本发明基于遗传算法的模拟电路故障元件参数辨识方法的具体实施方式流程图。如图1所示,本发明基于遗传算法的模拟电路故障元件参数辨识方法的具体步骤包括:FIG. 1 is a flow chart of a specific embodiment of a method for identifying parameters of faulty components in an analog circuit based on a genetic algorithm of the present invention. As shown in Figure 1, the specific steps of the genetic algorithm-based analog circuit fault component parameter identification method include:

S101:获取传输函数:S101: Get the transfer function:

获取模拟电路在D个测点td处的传输函数,d=1,2,…,D。Obtain the transfer function of the analog circuit at D measuring points t d , d=1,2,...,D.

由于本发明针对的是单故障和双故障,而两个不同元件同时发生故障的双故障模型在二维平面上很大部分存在混叠,无法隔离,因此测点数量最好2个以上,以便进行故障区分。Since the present invention is aimed at single fault and double fault, and the double fault model in which two different components fail at the same time has aliasing on the two-dimensional plane and cannot be isolated, the number of measuring points is preferably more than 2, so that Troubleshooting.

S102:模糊组分析:S102: Fuzzy group analysis:

对模拟电路中进行经测点t进行故障诊断的模糊组分析,为每个模糊组选择一个代表性故障元件,记代表性故障元件的数量为N,显然N也表示模糊组数量,记其他非代表性故障元件的数量为M。For the fuzzy group analysis of fault diagnosis through the measurement point t in the analog circuit, select a representative fault element for each fuzzy group, and record the number of representative fault elements as N. Obviously, N also represents the number of fuzzy groups. The number of representative faulty elements is M.

S103:确定故障类型:S103: Determine the fault type:

本发明中考虑单故障和双故障,即设置无故障表示模拟电路中所有故障元件均不发生故障,单故障表示模拟电路发生故障时仅有一个代表性故障元件发生故障,双故障表示模拟电路发生故障时有两个代表性故障元件同时发生故障,因此可以记故障类型数量

Figure GDA0002572773420000041
In the present invention, single fault and double fault are considered, that is, setting no fault means that all faulty components in the analog circuit are not faulty, single fault means that only one representative faulty component fails when the analog circuit fails, and double faults means that the analog circuit occurs. At the time of failure, there are two representative failure components that fail at the same time, so the number of failure types can be recorded
Figure GDA0002572773420000041

S104:确定模拟电路当前输出:S104: Determine the current output of the analog circuit:

当需要进行模拟电路故障参数辨识时,在预设的激励信号下测量得到D个测点td处的输出电压

Figure GDA0002572773420000042
Figure GDA0002572773420000043
分别表示输出电压
Figure GDA0002572773420000044
的实部和虚部,j为虚数单位。为了使故障状态下的输出电压更加准确,可以多次测量各个测点处的输出电压后进行平均,将平均值作为输出电压
Figure GDA0002572773420000045
When it is necessary to identify the fault parameters of the analog circuit, the output voltages at the D measuring points t d are measured under the preset excitation signal
Figure GDA0002572773420000042
Figure GDA0002572773420000043
Respectively represent the output voltage
Figure GDA0002572773420000044
The real and imaginary parts of , and j is the imaginary unit. In order to make the output voltage in the fault state more accurate, the output voltage at each measuring point can be measured multiple times and averaged, and the average value is taken as the output voltage
Figure GDA0002572773420000045

S105:初始化遗传算法种群:S105: Initialize the genetic algorithm population:

以X={x1,…,xN,x′1,…,x′M}作为遗传算法中的个体,其中xn表示第n个代表性故障元件的参数值,n=1,2,…,N,x′m表示第m个非代表性故障元件的参数值,m=1,2,…,M。对每个故障类型分别生成1个初始分种群pk,k=1,2,…,K,在分种群pk中的每个个体中,将第k个故障类型对应的代表性故障元件的参数值xn在该代表性故障元件的故障范围内取值,其他故障元件(即其他代表性故障元件和M个非代表性故障元件)的参数值在容差范围内取值。然后将K个分种群pk合并,构成种群P,记种群P中个体数量为G。一般来说,为了使各个故障类型在开始时的诊断概率相等,在初始化种群时各分种群pk中的个体数量相同。Take X={x 1 ,...,x N ,x' 1 ,...,x' M } as the individuals in the genetic algorithm, where x n represents the parameter value of the nth representative fault element, n=1, 2, ...,N,x' m denotes the parameter value of the mth non-representative fault element, m=1,2,...,M. For each fault type, an initial classification group p k is generated, k=1,2,...,K, in each individual in the classification group p k , the representative fault element corresponding to the kth fault type is The parameter value x n takes values within the fault range of the representative faulty element, and the parameter values of other faulty elements (ie, other representative faulty elements and M non-representative faulty elements) take values within the tolerance range. Then the K subgroups p k are merged to form a population P, and the number of individuals in the population P is recorded as G. In general, in order to make the diagnosis probability of each fault type equal at the beginning, the number of individuals in each subgroup pk is the same when the population is initialized.

S106:判断是否达到遗传算法的迭代结束条件,如果是,进入步骤S110,否则进入步骤S107。遗传算法的迭代结束条件一般有两种,一是达到最大迭代次数,一是目标函数值达到预设阈值,可以根据实际需要进行设置。S106: Determine whether the iteration end condition of the genetic algorithm is reached, if yes, go to step S110, otherwise go to step S107. There are generally two conditions for the end of iteration of the genetic algorithm, one is to reach the maximum number of iterations, and the other is that the value of the objective function reaches a preset threshold, which can be set according to actual needs.

S107:生成子种群:S107: Generate subpopulations:

对种群P进行交叉和变异操作,得到子种群Q。在进行交叉和变异操作时,需要保证子种群Q中每个个体中至多两个代表性故障元件的参数值位于该代表性故障元件的故障范围,其他故障元件的参数值位于其容差范围。本实施例中交叉操作采用模拟二进制交叉(SBX),变异操作为多项式变异(POL),同时在交叉和变异中限定个体基因取值在0到正无穷范围内变化,防止个体基因值为负数。在交叉和变异完成后,如果个体中参数值位于故障范围内的代表性故障元件数量超过两个,则随机将其中超过的代表性故障元件的参数值限定回容差范围内。Crossover and mutation operations are performed on population P to obtain subpopulation Q. When performing crossover and mutation operations, it is necessary to ensure that the parameter values of at most two representative faulty elements in each individual in the subgroup Q are within the fault range of the representative faulty element, and the parameter values of other faulty elements are within its tolerance range. In this embodiment, the crossover operation adopts simulated binary crossover (SBX), and the mutation operation is polynomial mutation (POL). At the same time, the individual gene value is limited to vary from 0 to positive infinity in the crossover and mutation, so as to prevent the individual gene value from being negative. After the crossover and mutation are completed, if the number of representative faulty elements in the individual whose parameter values are within the fault range exceeds two, the parameter values of the exceeded representative faulty elements are randomly limited back to the tolerance range.

S108:合并种群:S108: Combined population:

将种群P和种群Q进行合并,构成种群S,即S=P∪Q,显然合并种群中个体数量为2G。The population P and the population Q are combined to form the population S, that is, S=P∪Q. Obviously, the number of individuals in the combined population is 2G.

S109:计算个体目标函数值:S109: Calculate the individual objective function value:

接下来需要对种群S中的每个个体分别计算目标函数值,对于本发明而言,是采用每个个体在不同频率激励信号下得到的输出电压与当前模拟电路的输出电压之间的欧式距离作为目标函数的,因此具体计算方法如下:Next, the objective function value needs to be calculated for each individual in the population S. For the present invention, the Euclidean distance between the output voltage obtained by each individual under different frequency excitation signals and the output voltage of the current analog circuit is used. As the objective function, the specific calculation method is as follows:

将种群S中的每个个体分别代入传输函数,得到预设激励信号下在D个测点td处的输出电压Ug,d=αg,d+jβg,d,αg,d、βg,d分别表示输出电压Ug,d的实部和虚部,g=1,2,…,2G,然后采用以下公式计算第g个个体输出电压与当前模拟电路的输出电压之间的欧式距离DgSubstitute each individual in the population S into the transfer function to obtain the output voltage U g,d = α g,d +jβ g,d , α g,d , β g,d represent the real part and imaginary part of the output voltage U g, d respectively, g=1,2,…,2G, and then use the following formula to calculate the difference between the gth individual output voltage and the output voltage of the current analog circuit: Euclidean distance D g :

Figure GDA0002572773420000051
Figure GDA0002572773420000051

显然就故障诊断而言,应当是欧式距离越小,表示输出电压与当前模拟电路和输出电压越接近,个体越优。Obviously, in terms of fault diagnosis, the smaller the Euclidean distance, the closer the output voltage is to the current analog circuit and output voltage, and the better the individual is.

S110:生成下一代种群:S110: Generate the next generation population:

将种群S中的个体按照其对应的故障类型划分为将K个分种群sk。根据种群初始化和交叉、变异操作的具体方法可知,每个个体中至多会有两个代表性故障元件的参数值位于故障范围内,其他代表性故障元件和非代表性故障元件的参数值均位于容差范围内,据此可划分得到分种群。从每个分种群sk中筛选出欧式距离最小的个体,将其加入下一代种群P′,并从种群S中删除,得到种群S′。然后从种群S′中优选出G-K个个体,加入下一代种群P′,从而使下一代种群P′中个体数量为G。然后令种群P=P′,返回步骤S106。The individuals in the population S are divided into K subgroups sk according to their corresponding fault types. According to the specific methods of population initialization and crossover and mutation operations, there will be at most two representative fault elements in each individual whose parameter values are located in the fault range, and the parameter values of other representative fault elements and non-representative fault elements are located in the fault range. Within the tolerance range, subgroups can be divided according to this. Select the individual with the smallest Euclidean distance from each subgroup sk , add it to the next generation population P', and delete it from the population S to obtain the population S'. Then, GK individuals are selected from the population S' and added to the next-generation population P', so that the number of individuals in the next-generation population P' is G. Then set the population P=P', and return to step S106.

本实施例中,在对种群S′进行个体优选时,采用锦标赛优选方法对于当前的种群S进行个体优选,得到

Figure GDA0002572773420000052
个优选个体,
Figure GDA0002572773420000053
表示向下取整,然后将这些优选个体按照欧式距离进行升序排序,选择前G-K个个体加入下一代种群P′。In this embodiment, when performing individual optimization on the population S', the tournament optimization method is used to perform individual optimization on the current population S, and obtain
Figure GDA0002572773420000052
a preferred individual,
Figure GDA0002572773420000053
Represents rounded down, and then sorts these preferred individuals in ascending order according to Euclidean distance, and selects the first GK individuals to join the next generation population P'.

根据以上过程可知,本发明中下一代种群中的个体由两种方式获得,首先对种群进行分组优选,确保迭代结束后每种故障类型中至少有一个个体存在,然后再对剩余种群进行优选补足种群数量。According to the above process, the individuals in the next generation population in the present invention are obtained in two ways. First, the population is grouped and optimized to ensure that at least one individual exists in each fault type after the iteration, and then the remaining population is optimized and supplemented total group number.

S111:确定故障参数辨识结果:S111: Determine the fault parameter identification result:

从当前种群中选择欧式距离最小的个体,该个体中参数值位于故障范围内的代表性故障元件即为故障诊断结果,对应参数值即为故障参数辨识结果。显然,如果模拟电路没有发生故障,即所有代表性故障元件的参数均位于容差范围内。The individual with the smallest Euclidean distance is selected from the current population, and the representative fault element whose parameter value is within the fault range is the fault diagnosis result, and the corresponding parameter value is the fault parameter identification result. Obviously, if the analog circuit does not fail, the parameters of all representative failed components are within tolerance.

实施例Example

为了更好地说明本发明的技术方案,以二阶托马斯模拟滤波电路为例对本发明进行详细说明。图2是本实施例二阶托马斯模拟滤波电路的拓扑图。如图2所示,本实施例的二阶托马斯模拟滤波电路中包含3个放大器,6个电阻以及2个电容,以第1个电阻R1的输入作为整个电路的输入,以第1个放大器的输出作为测点t1、第3个放大器的输出作为测点t2。图2所示电路中测点t1的传输函数如下式所示:In order to better illustrate the technical solution of the present invention, the present invention is described in detail by taking the second-order Thomas analog filter circuit as an example. FIG. 2 is a topology diagram of the second-order Thomas analog filter circuit of this embodiment. As shown in Figure 2, the second-order Thomas analog filter circuit of this embodiment includes 3 amplifiers, 6 resistors and 2 capacitors. The input of the first resistor R1 is used as the input of the entire circuit, and the first amplifier The output of t 1 is the measuring point t 1 , and the output of the third amplifier is the measuring point t 2 . The transfer function of measuring point t 1 in the circuit shown in Figure 2 is shown in the following formula:

Figure GDA0002572773420000061
Figure GDA0002572773420000061

其中,ω表示角频率。where ω represents the angular frequency.

测点t2的传输函数如下式所示:The transfer function of the measuring point t 2 is as follows:

Figure GDA0002572773420000062
Figure GDA0002572773420000062

本实施例中采用专利名称为“一种模拟电路模糊组识别方法”、专利号为“201410336727.7”的专利中所公开的方法,基于圆模型进行模糊组分析,得到该电路的模糊组情况为:{R1},{R2},{R3,C1},{R4,R5,R6,C2}。模糊组内部元件的故障不可区分,模糊组之间的故障理论上都能被区分。本实施例中4个模糊组的代表性故障元件分别为R1,R2,R3,R4,那么单故障类型包括{R1}、{R2}、{R3}、{R4},双故障类型包括{R1,R2},{R1,R3},{R1,R4},{R2,R3},{R2,R4},{R3,R4},加上无故障状态,共计11种故障类型。表1是本实施例中各个元件的标称参数值。In this embodiment, the method disclosed in the patent titled "A method for identifying fuzzy groups of analog circuits" and the patent number "201410336727.7" is adopted, and the fuzzy group analysis is performed based on the circle model, and the fuzzy group conditions of the circuit are obtained as follows: {R 1 }, {R 2 }, {R 3 , C 1 }, {R 4 , R 5 , R 6 , C 2 }. The faults of the internal elements of the fuzzy group are indistinguishable, and the faults between the fuzzy groups can theoretically be distinguished. In this embodiment, the representative fault elements of the four fuzzy groups are R 1 , R 2 , R 3 , and R 4 respectively, then the single fault types include {R 1 }, {R 2 }, {R 3 }, {R 4 }, double fault types include {R 1 ,R 2 }, {R 1 ,R 3 },{R 1 ,R 4 },{R 2 ,R 3 },{R 2 ,R 4 },{R 3 ,{R 3 , R 4 }, plus the no-fault state, there are 11 fault types in total. Table 1 is the nominal parameter value of each element in this embodiment.

元件element R<sub>1</sub>R<sub>1</sub> R<sub>2</sub>R<sub>2</sub> R<sub>3</sub>R<sub>3</sub> R<sub>4</sub>R<sub>4</sub> R<sub>5</sub>R<sub>5</sub> R<sub>6</sub>R<sub>6</sub> C<sub>1</sub>C<sub>1</sub> C<sub>2</sub>C<sub>2</sub> 参数值parameter value 10kΩ10kΩ 10kΩ10kΩ 10kΩ10kΩ 10kΩ10kΩ 10kΩ10kΩ 10kΩ10kΩ 0.01μF0.01μF 0.01μF0.01μF

表1Table 1

本实施例中容差参数设置为0.05,以元件R1为例,其容差范围为[9500Ω,10500Ω],故障范围为[0,9500Ω)∪(10500Ω,+∞)。In this embodiment, the tolerance parameter is set to 0.05. Taking the element R 1 as an example, its tolerance range is [9500Ω, 10500Ω], and the fault range is [0,9500Ω)∪(10500Ω,+∞).

假设取{R2,R2}故障,模拟电路各元件参数为[R1,R2,R3,R4,R5,R6,C1,C2]=[20kΩ,20kΩ,9.6kΩ,1.014kΩ,9.85kΩ,1.04kΩ,9.796nF,9.965nF],得到测点t1和t2的响应分别为[-0.0245,-0.1545j]、[-0.5143,0.0801j]。Assuming that {R 2 , R 2 } is faulty, the parameters of each component of the analog circuit are [R 1 , R 2 , R 3 , R 4 , R 5 , R 6 , C 1 , C 2 ]=[20kΩ, 20kΩ, 9.6kΩ , 1.014kΩ, 9.85kΩ, 1.04kΩ, 9.796nF, 9.965nF], the responses of measuring points t 1 and t 2 are [-0.0245,-0.1545j], [-0.5143,0.0801j] respectively.

本实施例中有11个故障类型,因此在对遗传算法种群进行初始化时,初始化11个分种群,每个分种群包含一种故障类型,每个分种群中个体数量为10。设置遗传算法最大迭代次数为100,交叉概率为1,变异概率为0.5。表2是本实施例中遗传算法的运行结果。There are 11 fault types in this embodiment, so when initializing the genetic algorithm population, 11 subgroups are initialized, each subgroup contains one fault type, and the number of individuals in each subgroup is 10. The maximum number of iterations of the genetic algorithm is set to 100, the crossover probability is 1, and the mutation probability is 0.5. Table 2 is the running result of the genetic algorithm in this embodiment.

Figure GDA0002572773420000071
Figure GDA0002572773420000071

表2Table 2

通过运行结果可知,最优个体对应的故障类型为{R1,R2},对应的元件参数向量为[19864.47,19853.68,9509.14,9655.31,10409.9449,10151.26,9.818e-09,1.005e-08]。可见诊断结果与实例所设的故障类型一致,并且各元件参数也十分相近,因此本发明能够准确诊断出单双故障类型,辨识单双故障元件参数。According to the running results, the fault type corresponding to the optimal individual is {R 1 , R 2 }, and the corresponding component parameter vector is [19864.47, 19853.68, 9509.14, 9655.31, 10409.9449, 10151.26, 9.818e-09, 1.005e-08] . It can be seen that the diagnosis result is consistent with the fault type set in the example, and the parameters of each element are also very similar, so the present invention can accurately diagnose single and double fault types and identify single and double fault element parameters.

尽管上面对本发明说明性的具体实施方式进行了描述,以便于本技术领域的技术人员理解本发明,但应该清楚,本发明不限于具体实施方式的范围,对本技术领域的普通技术人员来讲,只要各种变化在所附的权利要求限定和确定的本发明的精神和范围内,这些变化是显而易见的,一切利用本发明构思的发明创造均在保护之列。Although illustrative specific embodiments of the present invention have been described above to facilitate the understanding of the present invention by those skilled in the art, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those skilled in the art, As long as various changes are within the spirit and scope of the present invention as defined and determined by the appended claims, these changes are obvious, and all inventions and creations utilizing the inventive concept are included in the protection list.

Claims (2)

1.一种基于遗传算法的模拟电路故障元件参数辨识方法,其特征在于,包括以下步骤:1. a kind of analog circuit fault element parameter identification method based on genetic algorithm, is characterized in that, comprises the following steps: S1:获取模拟电路在D个测点td处的传输函数,d=1,2,…,D;S1: Obtain the transfer function of the analog circuit at D measuring points t d , d=1,2,...,D; S2:对模拟电路中进行经测点t进行故障诊断的模糊组分析,为每个模糊组选择一个代表性故障元件,记代表性故障元件的数量为N,记其他非代表性故障元件的数量为M;S2: Carry out the fuzzy group analysis of fault diagnosis through the measurement point t in the analog circuit, select a representative fault element for each fuzzy group, record the number of representative fault elements as N, and record the number of other non-representative fault elements is M; S3:设置无故障表示模拟电路中所有故障元件均不发生故障,单故障表示模拟电路发生故障时仅有一个代表性故障元件发生故障,双故障表示模拟电路发生故障时有两个代表性故障元件同时发生故障,记故障类型数量
Figure FDA0002572773410000011
S3: Setting no fault means that all faulty components in the analog circuit are not faulty, single fault means that only one representative faulty component fails when the analog circuit fails, and double faults means that there are two representative faulty components when the analog circuit fails If faults occur at the same time, record the number of fault types
Figure FDA0002572773410000011
S4:当需要进行模拟电路故障参数辨识时,在预设的激励信号下测量得到D个测点td处的输出电压
Figure FDA0002572773410000012
Figure FDA0002572773410000013
分别表示输出电压
Figure FDA0002572773410000014
的实部和虚部,j为虚数单位;
S4: When it is necessary to identify the fault parameters of the analog circuit, measure the output voltages at D measuring points t d under the preset excitation signal
Figure FDA0002572773410000012
Figure FDA0002572773410000013
Respectively represent the output voltage
Figure FDA0002572773410000014
The real and imaginary parts of , j is the imaginary unit;
S5:以X={x1,…,xN,x′1,…,x′M}作为遗传算法中的个体,其中xn表示第n个代表性故障元件的参数值,n=1,2,…,N,x′m表示第m个非代表性故障元件的参数值,m=1,2,…,M;对每个故障类型分别生成1个初始分种群pk,k=1,2,…,K,在分种群pk中的每个个体中,将第k个故障类型对应的代表性故障元件的参数值xn在该代表性故障元件的故障范围内取值,其他故障元件的参数值在容差范围内取值;然后将K个分种群pk合并,构成种群P,记种群P中个体数量为G;S5: Take X={x 1 ,...,x N ,x' 1 ,...,x' M } as the individuals in the genetic algorithm, where x n represents the parameter value of the nth representative fault element, n=1, 2 , . ,2,...,K, in each individual in the classification group p k , take the parameter value x n of the representative fault element corresponding to the kth fault type within the fault range of the representative fault element, and other The parameter value of the fault element is within the tolerance range; then the K subgroups p k are merged to form a population P, and the number of individuals in the population P is recorded as G; S6:判断是否达到遗传算法的迭代结束条件,如果是,进入步骤S11,否则进入步骤S7;S6: judge whether the iteration end condition of the genetic algorithm is reached, if yes, go to step S11, otherwise go to step S7; S7:对种群P进行交叉和变异操作,得到子种群Q;在进行交叉和变异操作时,需要保证子种群Q中每个个体中至多两个代表性故障元件的参数值位于该代表性故障元件的故障范围,其他故障元件的参数值位于其容差范围;S7: Perform crossover and mutation operations on population P to obtain subpopulation Q; when performing crossover and mutation operations, it is necessary to ensure that the parameter values of at most two representative fault elements in each individual in subpopulation Q are located in the representative fault element The fault range of the other faulty components is within its tolerance range; S8:将种群P和种群Q进行合并,构成种群S,即S=P∪Q;S8: Combine population P and population Q to form population S, that is, S=P∪Q; S9:将种群S中的每个个体分别代入传输函数,得到预设激励信号下在D个测点td处的输出电压Ug,d=αg,d+jβg,d,αg,d、βg,d分别表示输出电压Ug,d的实部和虚部,g=1,2,…,2G,然后采用以下公式计算第g个个体输出电压与当前模拟电路的输出电压之间的欧式距离DgS9: Substitute each individual in the population S into the transfer function to obtain the output voltages U g,dg,d +jβ g,dg, at D measuring points t d under the preset excitation signal d and β g,d represent the real part and imaginary part of the output voltage U g, d respectively, g=1,2,...,2G, and then use the following formula to calculate the difference between the output voltage of the gth individual and the output voltage of the current analog circuit. The Euclidean distance D g between :
Figure FDA0002572773410000021
Figure FDA0002572773410000021
S10:将种群S中的个体按照其对应的故障类型划分为K个分种群sk,从每个分种群sk中筛选出欧式距离最小的个体,将其加入下一代种群P′,并从种群S中删除,得到种群S′;然后从种群S′中优选出G-K个个体,加入下一代种群P′;然后令种群P=P′,返回步骤S6;S10: Divide the individuals in the population S into K subgroups sk according to their corresponding fault types, screen out the individual with the smallest Euclidean distance from each subgroup sk , add it to the next generation population P', and add it from Delete from the population S to obtain the population S'; then select GK individuals from the population S' and add the next generation population P'; then set the population P=P', and return to step S6; S11:从当前种群中选择欧式距离最小的个体,该个体中参数值位于故障范围内的代表性故障元件即为故障诊断结果,对应参数值即为故障元件参数辨识结果。S11: Select the individual with the smallest Euclidean distance from the current population. The representative fault element whose parameter value is within the fault range in the individual is the fault diagnosis result, and the corresponding parameter value is the parameter identification result of the fault element.
2.根据权利要求1所述的模拟电路故障元件参数辨识方法,其特征在于,所述步骤S10中对种群S′进行个体优选的具体方法为:采用锦标赛优选方法对于当前的种群S进行个体优选,得到
Figure FDA0002572773410000022
个优选个体,然后将这些优选个体按照欧式距离进行升序排序,选择前G-K个个体加入下一代种群P′。
2 . The method for identifying parameters of faulty components of an analog circuit according to claim 1 , wherein the specific method for performing individual optimization on the population S′ in the step S10 is: using the tournament optimization method to perform individual optimization on the current population S 2 . ,get
Figure FDA0002572773410000022
These preferred individuals are then sorted in ascending order according to the Euclidean distance, and the first GK individuals are selected to join the next generation population P'.
CN201910978616.9A 2019-10-15 2019-10-15 Analog circuit fault element parameter identification method based on genetic algorithm Expired - Fee Related CN110673017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910978616.9A CN110673017B (en) 2019-10-15 2019-10-15 Analog circuit fault element parameter identification method based on genetic algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910978616.9A CN110673017B (en) 2019-10-15 2019-10-15 Analog circuit fault element parameter identification method based on genetic algorithm

Publications (2)

Publication Number Publication Date
CN110673017A CN110673017A (en) 2020-01-10
CN110673017B true CN110673017B (en) 2020-10-16

Family

ID=69082343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910978616.9A Expired - Fee Related CN110673017B (en) 2019-10-15 2019-10-15 Analog circuit fault element parameter identification method based on genetic algorithm

Country Status (1)

Country Link
CN (1) CN110673017B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464022B (en) * 2020-03-25 2023-06-06 哈尔滨工业大学 A Multi-Feature Based Identification Method for Key Device Parameters of DC-DC Converters
CN111950221B (en) * 2020-07-16 2022-07-26 电子科技大学 Method for determining fault parameter range of analog circuit based on genetic algorithm
CN112444737B (en) * 2020-09-21 2021-10-22 电子科技大学 Method for Determining the Range of Fault Parameters in Analog Circuits

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6782515B2 (en) * 2002-01-02 2004-08-24 Cadence Design Systems, Inc. Method for identifying test points to optimize the testing of integrated circuits using a genetic algorithm
JP5267398B2 (en) * 2009-09-25 2013-08-21 富士通株式会社 Pareto data generation program, method and apparatus for automatic circuit design, and automatic circuit design program, method and apparatus
CN102087337B (en) * 2009-12-04 2013-12-11 哈尔滨理工大学 Annealing genetic optimization method for diagnosing excitation of nonlinear analog circuit
CN103926526A (en) * 2014-05-05 2014-07-16 重庆大学 Analog circuit fault diagnosis method based on improved RBF neural network
CN104090228B (en) * 2014-07-16 2017-05-17 电子科技大学 Analog circuit fuzzy group identification method
CN104502834A (en) * 2014-12-30 2015-04-08 南京农业大学 OFRF (output frequency response function) modeling based nonlinear analog circuit fault parameter identification method
CN104698365B (en) * 2015-03-23 2017-10-31 电子科技大学 Unreliable test method for optimizing based on block encoding genetic algorithm
CN105187051B (en) * 2015-07-14 2017-12-05 北京航空航天大学 One kind is used to not exclusively determine Reed Muller circuit power consumptions and area-optimized method based on NSGA II
GB2546324B (en) * 2016-01-18 2021-08-11 Nat Chung Shan Inst Science & Tech Method and device for correcting antenna phase
CN108233716A (en) * 2016-12-21 2018-06-29 电子科技大学 A kind of method for optimally designing parameters modeled based on genetic algorithm and DC-DC converter
CN107169514A (en) * 2017-05-05 2017-09-15 清华大学 The method for building up of diagnosing fault of power transformer model

Also Published As

Publication number Publication date
CN110673017A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN109581203B (en) A Post-test Simulation Fault Diagnosis Method Based on Genetic Algorithm
CN111260063B (en) Fault Location and Parameter Identification Method of Analog Circuit Based on Genetic Algorithm
CN110673017B (en) Analog circuit fault element parameter identification method based on genetic algorithm
CN107884706B (en) Analog circuit fault diagnosis method based on vector value regular kernel function approximation
CN109873610B (en) Photovoltaic array fault diagnosis method based on IV characteristic and depth residual error network
CN110472667B (en) Small target classification method based on deconvolution neural network
CN108062571B (en) A fault diagnosis method for photovoltaic array based on differential evolution random forest classifier
CN110596492A (en) A Transformer Fault Diagnosis Method Based on Particle Swarm Optimization Random Forest Model
CN107192939A (en) A kind of detection method and detecting system of the working condition of circuit
CN106646103B (en) A voltage sag source location method based on optimal matching of positive sequence voltages at multiple measuring points
CN113176505A (en) On-line estimation method and device for state of charge and state of health of vehicle-mounted power battery and storage medium
CN110907810A (en) A Single-Fault Diagnosis Method for Analog Circuits Based on Particle Swarm Optimization
CN105093095B (en) Simulate the Modified particle swarm optimization diagnostic method and system of non-linear DC circuit
CN101894296B (en) Method for realizing analogue circuit fault diagnosis based on standard deviation and skewness by neural network
CN111856299A (en) Method, device and device for determining power status
CN115659258B (en) Power distribution network fault detection method based on multi-scale graph roll-up twin network
CN105866664A (en) Intelligent fault diagnosis method for analog circuit based on amplitude frequency features
CN113674106A (en) Combined positioning method for ground fault of medium-low voltage distribution network
CN110470979B (en) Fault Diagnosis Method of Analog Circuit Based on Fault Characteristic Area
CN110470980B (en) Analog circuit fault characteristic range determining method based on genetic algorithm
CN102445650B (en) Circuit Fault Diagnosis Method Based on Blind Signal Separation Algorithm
CN116027212B (en) Battery cell anomaly identification method, device and electronic equipment based on multi-method fusion
CN118194731A (en) Interpretable digital-analog fusion lithium battery state estimation method
CN111308327B (en) A method for fault location and parameter identification of faulty components in analog circuits
CN117607693A (en) An online estimation method of power battery pack SOC considering inconsistency

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: 20201016

CF01 Termination of patent right due to non-payment of annual fee