An automatic design system for APDOB with multiple frequency conversion periodic disturbance compensation capability

By introducing the fuzzy logic system and optimization system into APDOB, and using the evolutionary algorithm OPSaDE to optimize the design parameters, the problem of APDOB being difficult to cope with multiple frequency conversion period disturbances in complex scenarios is solved, and effective compensation for multiple frequency conversion disturbances is achieved, which is suitable for Complex scene tasks.

CN118011810BActive Publication Date: 2024-09-10UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410151235.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-02
Publication Date
2024-09-10
Estimated Expiration
2044-02-02

AI Technical Summary

Technical Problem

In complex scenarios, the existing APDOB can only respond to a single disturbance change due to its design parameters, and it is difficult to effectively compensate for multiple frequency conversion cycle disturbances, which limits its wide application in robot control, human-computer interaction, drones, etc.

Method used

The adaptive periodic disturbance observer (APDOB) is used to combine the fuzzy logic system and the optimization system, and the design parameters of the fuzzy logic system are optimized through the evolutionary algorithm OPSaDE to achieve the ability to compensate for multiple frequency conversion periodic disturbances.

Benefits of technology

It realizes an end-to-end design solution, reduces the design difficulty, enhances the degree of design freedom, can effectively compensate for multiple frequency conversions of the fundamental frequency, is suitable for complex scene tasks, and is decoupled and independent between modules, suitable for technology iteration and migration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118011810B
    Figure CN118011810B
Patent Text Reader

Abstract

The present invention discloses an automatic design system of an APDOB with multiple frequency conversion periodic disturbance compensation capability, relates to the field of swarm intelligence algorithm and automatic control, and solves the problem that the parameter design of the existing APDOB can only cope with a single disturbance change, which limits its application in complex scenarios; the present invention includes an adaptive periodic disturbance observer APDOB with compensation capability, which includes 6 design parameters, namely, the low-pass filter cutoff frequency g a , bandpass filter design frequency g b , notch parameter r, multi-ratio k, forgetting factor λ, regularization parameter δ; the fuzzy logic system is used to adjust the 6 design parameters of APDOB online; the optimization system is used to search and optimize the parameters in the fuzzy logic system, and the optimization system adopts the algorithm OPSaDE; the fuzzy logic system optimized based on the OPSaDE algorithm is deployed in the APDOB to obtain the optimized fuzzy APDOB system, which can effectively compensate for the periodic disturbance of multiple frequency changes of the fundamental frequency compared to the traditional APDOB, so it can be widely used in complex scene tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of swarm intelligence algorithms and automatic control, and in particular to an automatic design system of an APDOB with the capability of compensating for multiple frequency-converting periodic disturbances. Background Art

[0002] In industrial manufacturing and production, periodic operation is a very common behavior. However, during periodic operation, due to modeling and measurement errors between internal parts of the machine, friction, external environmental interference, etc., the machine will produce periodic disturbances superimposed by fundamental frequency and multiple harmonic frequencies. The existence of periodic disturbances reduces the accuracy of mechanical operation, and in the long term it will accelerate the aging of the machine and increase the failure rate of the machine, resulting in unnecessary economic and time losses. Therefore, how to eliminate periodic disturbances is an urgent problem to be solved.

[0003] Disturbance observer is widely used as a control method that can effectively detect the error between the nominal model and the actual modeling. Therefore, Dr. Muramatsu of Keio University in Japan proposed an adaptive periodic disturbance observer (APDOB) with the ability to compensate for periodic disturbances by introducing an adaptive periodic notch filter and a periodic disturbance model based on the architecture of the disturbance observer. By adjusting the six design parameters (low-pass filter cutoff frequency g a , bandpass filter design frequency g b By adjusting the notch parameter r, multi-ratio κ, forgetting factor λ, and regularization parameter δ, APDOB can have the ability to track the fundamental frequency changes of periodic disturbances faster, with smaller steady-state errors and weaker overshoots.

[0004] Although APDOB can effectively compensate for the periodic disturbances generated in periodic motion, the above-mentioned six additional design parameters of the system itself need to be manually designed. In addition, there is a nonlinear relationship between the selection of parameters and the system performance, which greatly increases the design difficulty of APDOB. Moreover, the parameter combination composed of the six design parameters of APDOB can only cope with the change of one disturbance fundamental frequency (for example, the fundamental frequency of periodic disturbance changes from ω1→ω2), which greatly limits the application of APDOB in complex scenarios such as robot control, human-computer interaction, and drone design. Summary of the invention

[0005] In order to solve the problems existing in the above-mentioned prior art, the present invention provides an automatic design system of APDOB with multiple frequency conversion periodic disturbance compensation capability, which solves the problem that the parameter design of the existing APDOB can only cope with a single disturbance change, limiting its application in complex scenarios.

[0006] An automatic design system of APDOB with multiple frequency conversion periodic disturbance compensation capability includes an adaptive periodic disturbance observer APDOB, a fuzzy logic system and an optimization system.

[0007] The adaptive periodic disturbance observer APDOB has compensation capability, and its design parameters include the low-pass filter cutoff frequency g a , bandpass filter design frequency g b , notch parameter r, multi-ratio κ, forgetting factor λ, regularization parameter δ;

[0008] The fuzzy logic system is used for online adjustment of design parameters of APDOB;

[0009] The optimization system is used to find the optimal parameters using an evolutionary algorithm to form an optimized fuzzy logic system, thereby giving the APDOB the ability to compensate for periodic disturbances with multiple frequency changes.

[0010] Preferably, the fuzzy logic system adjusts the design parameters of APDOB online including:

[0011] The fuzzy controller obtained by optimizing the system design will convert the fundamental frequency error calculated by APDOB at the kth moment into Error change rate As the input variable, the output value is obtained according to the fuzzification processing, fuzzy rule base, fuzzy inference engine and defuzzification processing, which is the updated value of the APDOB design parameter after k samplings. After the design parameters are updated, the k+1th sampling calculation is performed.

[0012] Preferably, the fundamental error Error change rate The calculation formula is as follows:

[0013]

[0014] Among them, ω0(k) represents the fundamental frequency of the control system at the kth sampling time, It is expressed as the measured value of the fundamental frequency of the APDOB system obtained by the kth sampling, T k is the sampling interval;

[0015] The fuzzy logic system is l The semantic construction of the fuzzy logic of type 1 is as follows:

[0016]

[0017] in, and are all fuzzy sets, It is represented by the combination of 6 design parameters at the kth sampling moment; N Λ is the number of fuzzy rules, which is determined by the input variables and The corresponding fuzzy rule semantics number The calculation formula is as follows:

[0018]

[0019] The output value calculation formula of the fuzzy logic system is:

[0020]

[0021] in, That It is represented by the corresponding fuzzy logic output of the i-th The maximum value reached on the membership function of is expressed as follows:

[0022]

[0023] in, Defined as the membership function of the output fuzzy set, Fuzzy Set The i-th variable of ;

[0024] For the fuzzy basis function Each element in Θ l (x) can be calculated as follows:

[0025]

[0026] in, and is the membership function of the input.

[0027] Preferably, the maximum search number of the algorithm OPSaDE in the optimization system is N g , then the population of generation g can be expressed as:

[0028]

[0029] in, Represented as the i-th individual of the g-th generation, individual There are three sets of parameter sets in it. For each set, the specific information is as follows:

[0030]

[0031]

[0032]

[0033] Among them, x Δ Represents the upper limit of the value of variable x, ∈ x,i,g Defined as the horizontal coordinate values ​​corresponding to the three endpoints of the triangular membership function, the vertical coordinate defaults to {0,1,0}.

[0034] Preferably, the evolutionary algorithm is an OPSaDE algorithm, which specifically includes a matching operator, a mutation operator, a crossover operator, a selection operator and a parameter update operator, wherein:

[0035] The selection operator adopts a greedy selection algorithm;

[0036] The matching operator can increase or decrease the number of data based on the principle of linear interpolation, and can match different individuals to the same data size as the target object x;

[0037] The crossover operator is used to perform the mutation on the population Perform crossover to obtain a new temporary population Generate parameter set The specific operations are as follows:

[0038]

[0039] in, is the adaptive crossover rate; and The generation and The same, but before executing the cross operator, the matching operator must be performed first to align with the data size of the target object.

[0040] Preferably, the parameter update operator scales the adaptive mutation factor With adaptive crossover rate The update algorithm is as follows:

[0041]

[0042]

[0043] Among them, rand(·) and randc(·) are random functions of normal distribution and Cauchy distribution respectively; and is the mean value of the g-th generation, and its initial value is And the calculation is performed according to the following update strategy:

[0044]

[0045]

[0046] Among them, J c ∈[0,1] is defined as a positive constant, and They are respectively represented by the individuals successfully retained in the selection operation of the g-th generation population. and mean A (·) indicates general mean calculation, mean L (·) is the Lehmer mean, which is calculated by the following formula:

[0047]

[0048] The operator selection probabilities p1 and p2 are updated only when the number of learning times reaches the learning cycle N. L When:

[0049]

[0050] p2=1-p1

[0051] in, and They represent the number of individuals retained and eliminated after adopting mutation strategy 1, and They represent the number of individuals retained and eliminated after adopting mutation strategy 2.

[0052] Preferably, the mutation operator can obtain the mutation individual through the mutation operation Specifically, a hybrid mutation strategy based on the cultural gene architecture is adopted, which includes two strategies:

[0053] Strategy 1-DE / rand / 1: First, the mutant individuals In Parameter set to be calculated:

[0054]

[0055] Among them, {r1, r2, r3} are the numbers of three individuals randomly selected from the current population. Expressed as adaptive mutation scaling factor;

[0056] For variant individuals In The parameter set is calculated as follows:

[0057]

[0058]

[0059] in, It is represented as a rounding function, which is used to convert the calculated floating point result into an integer to correspond to the semantics in the fuzzy rule; Represented as a matching operator, it is used to linearly interpolate the input data matrix size with the target object The size of the corresponding data is converted to the same;

[0060] Strategy 2-DE / current-to-pbest / 1: First, we get

[0061]

[0062] For variant individuals In The parameter set is calculated as follows:

[0063]

[0064]

[0065] in, It is the previous one with the lowest fitness. An individual randomly selected from individuals; is the mixed population of generation g, Represented as an external archive variable, used to record the information of individuals eliminated in the selection operation. The maximum number of individuals that can be recorded is N P If the number exceeds the limit, the individuals in the current file will be randomly discarded.

[0066] Preferably, the fitness function design of the algorithm OPSaDE includes:

[0067] By using the cumulative sampling error and overshoot value as the evaluation factor of the fitness function, the fitness value of the i-th individual in the g-th generation is The calculation method of is as follows:

[0068]

[0069] Among them, α F is the weight factor, Expressed as the frequency conversion times, is the fundamental frequency error of the kth sampling, It is the maximum overshoot produced after the cth frequency conversion.

[0070] Preferably, the updating steps of the algorithm OPSaDE are as follows:

[0071] Step 1: Set basic parameters and initialize the population to obtain the parent population

[0072] Step 2: For the gth iteration, first use The population is mutated to obtain a mutant population

[0073] Step 3: Utilize Population and population Perform a crossover operation to obtain the crossover population τ g ;

[0074] Step 4: For the obtained crossover population τ g Perform fitness evaluation operations to obtain the fitness value set of all individuals in the cross population And through the greedy selection operation to select individuals, finally get the final g+1 generation parent population

[0075] Step 5: Update all adaptive parameters and their related parameters;

[0076] Step 6: Determine whether the g-th generation search meets the termination condition. If not, repeat steps 2 to 6. If it does, the search is complete and the optimal individual is output. and its fitness value F * ,individual This is the optimal design solution for the logical fuzzy system.

[0077] Preferably, the detailed update steps of the algorithm OPSaDE are as follows:

[0078] Step 1.1: Set the control task and basic parameters, including the population number N p , the maximum number of iterations N g , weight parameter α F , learning cycle N L and control tasks;

[0079] Step 1.2: For N p The individuals are initialized by random assignment to obtain the first generation population For external archive variables Operator selection probabilities p1 and p2, mean variable of random function and Do initialization processing;

[0080] Step 1.3: Evaluate the fitness of the first generation population to obtain the fitness value of the initialized population And record the individual information and fitness value with the smallest fitness value as the optimal individual Its fitness value F * ;

[0081] Step 2.1: Convert the contemporary population With external archives Merge to get mixed population

[0082] Step 2.2: and Perform initialization processing;

[0083] Step 2.3: For each variant individual First, we use right Calculate, then judge the mutation strategy based on the relationship between the random value rand(0,1) and the operator selection probability p1, p2, and perform the corresponding mutation operation to obtain the mutant population

[0084] Step 3.1: For each crossover individual τ i,g First, we use right Calculate and then mutate individuals and parent individuals Perform corresponding crossover operations;

[0085] Step 4.1: For the obtained crossover individual τ i,g Perform fitness evaluation and obtain the corresponding fitness value Will With the parent individual The fitness value of For comparison, if the fitness of the crossover individual is less than the individual fitness value corresponding to the parent generation, the crossover individual is selected and the adaptive parameter and Recorded separately in and Otherwise, the corresponding parent individual is retained. Finally, we get the offspring population

[0086] Step 4.2: From the progeny population Find the individual with the smallest fitness value and compare it with the best individual The fitness value F * For comparison, if it is less than F * Then replace the best individual and its fitness value, otherwise keep the current best individual and its fitness value, so as to obtain the final g+1 generation parent population

[0087] Step 5.1: Update The value of

[0088] Step 5.2: Determine the current algebra g mod N L Is the value of 0? If it is 0, it means that the learning cycle has been reached. Update p1 and p2, otherwise do not update;

[0089] Step 5.3: Judgement and Is it an empty set? If not, and Update, otherwise and The value of and Same;

[0090] Step 6.1: Determine whether the current algebra g is greater than N g , if it is not greater than, repeat steps 2.1 to 6.1 until the iteration stop condition is met;

[0091] Step 6.2: Finally output the final most individual and its fitness value F * ,individual This is the optimal design solution for the logical fuzzy system.

[0092] The beneficial effects of the present invention include:

[0093] A. An end-to-end design scheme is implemented. Since the proposed evolutionary algorithm OPSaDE only relies on the fitness function in the process of searching for the optimal fuzzy APDOB design scheme, and the fitness function is constructed through the performance of the control system in the specified control task (such as convergence time, stability error, overshoot), the optimal design of the fuzzy APDOB does not require mathematical reasoning and modeling. Compared with the traditional empirical design method, this greatly reduces the design difficulty and the requirements for the professional knowledge and experience of designers. In addition, the final optimization design scheme can be changed by adjusting the weights corresponding to the evaluation factors in the fitness function, thereby enhancing the design freedom.

[0094] B. The modules in the solution proposed in this patent are decoupled and independent, so they have good adaptability and generalization for subsequent technology iteration and technology migration.

[0095] C. The optimized fuzzy APDOB system obtained by deploying the fuzzy logic system optimized by the OPSaDE algorithm in APDOB can effectively compensate for the periodic disturbance of multiple frequency changes of the fundamental frequency compared to the traditional APDOB, so it can be widely used in complex scene tasks.

[0096] D. The fuzzy logic system itself has good interpretability. Therefore, the study of the optimal fuzzy logic system automatically designed based on the OPSaDE algorithm can provide support for the study of the relationship between APDOB parameters and system performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0097] Figure 1 This is a schematic diagram of the structure of an automatic design system for an APDOB with multiple frequency conversion periodic disturbance compensation capability involved in Example 1.

[0098] Figure 2 This is a schematic diagram of the structure of the optimization system involved in Example 1.

[0099] Figure 3 This is a diagram showing the position error variation of the output of the traditional APDOB involved in Example 1 during the control task.

[0100] Figure 4 This is a diagram showing the position error variation of the output of the DELS-optimized APDOB involved in Example 1 in the control task.

[0101] Figure 5 This is a diagram showing the position error variation of the output of the self-organizing fuzzy APDOB constructed by OPSaDE in the control task involved in Example 1.

[0102] Figure 6 This is a graph showing the tracking and measurement changes of the fundamental frequency of multiple frequency conversions by the three APDOB systems involved in Example 1. DETAILED DESCRIPTION

[0103] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0104] Example 1

[0105] The following is combined with Figure 1-6 The specific embodiments of the present invention are described in detail;

[0106] An automatic design system for APDOB with multiple frequency conversion periodic disturbance compensation capability, such as Figure 1-2 As shown in the figure, the system architecture of the traditional APDOB is As input data into the fuzzy logic system, the fuzzy system uses the fundamental frequency error The rate of change of fundamental frequency error As the input of fuzzy logic, the six design parameters of APDOB {g a ,g b ,r,κ,λ,δ} real-time parameter adjustment. For the construction of the fuzzy system, the OPSaDE algorithm is used, where:

[0107] The adaptive periodic disturbance observer (APDOB) with periodic disturbance compensation capability includes six design parameters, namely, the low-pass filter cutoff frequency g a , bandpass filter design frequency g b , notch parameter r, multi-ratio κ, forgetting factor λ, regularization parameter δ;

[0108] The fuzzy logic system is used to adjust the six design parameters of APDOB online, including:

[0109] The fuzzy controller optimized by OPSaDE will convert the fundamental frequency error calculated by APDOB at the kth time into Error change rate As the input variable, the output value is obtained according to the fuzzification processing, fuzzy rule base, fuzzy inference engine and defuzzification processing, which is the updated value of the APDOB design parameter after k samplings. After the design parameters are updated, the k+1th sampling calculation is performed.

[0110] Fundamental error Error change rate Calculated by the following formula:

[0111]

[0112] Among them, ω0(k) represents the fundamental frequency of the control system at the kth sampling time, It is expressed as the measured value of the fundamental frequency of the APDOB system obtained by the kth sampling, T k is the sampling interval.

[0113] For the Λ l The semantic construction of the fuzzy logic of type 1 is as follows:

[0114]

[0115] in, and are all fuzzy sets, It is represented by the combination of 6 design parameters at the kth sampling moment; N Λis the number of fuzzy rules, which is determined by the input variables and The corresponding fuzzy rule semantics number The calculation formula is as follows:

[0116]

[0117] is the output value of the fuzzy logic system, which is calculated according to the following formula:

[0118]

[0119] in, That It is represented by the corresponding fuzzy logic output of the i-th The maximum value reached on the membership function of is expressed as follows:

[0120]

[0121] in, Defined as the membership function of the output fuzzy set, Fuzzy Set The i-th variable of .

[0122] For the fuzzy basis function Each element in Θ l (x) can be calculated as follows:

[0123]

[0124] in, and is the membership function of the input;

[0125] The optimization system is used to search and optimize the parameters in the fuzzy logic system, including:

[0126] For the design of fuzzy systems, it is necessary to To reduce the complexity of the search task, all membership functions are triangular functions, and each membership function has three design parameters; fuzzy rules need to be designed, with a total of N Λ In addition, it is also necessary to search for system architecture parameters (such as the number of input and output membership functions, the search range of membership function design parameters, etc.). Therefore, there are three sets of parameter sets that need to be searched and optimized by the proposed search algorithm.

[0127] Adopt the algorithm OPSaDE and assume that the maximum search number of OPSaDE is N g, then the population of generation g can be expressed as:

[0128]

[0129] in, Represented as the i-th individual of the g-th generation, individual The above three sets of parameter sets are included. For each set, the specific information is as follows:

[0130]

[0131]

[0132]

[0133] Among them, x Δ Represents the upper limit of the value of variable x, ∈ x,i,g Defined as the horizontal coordinate values ​​corresponding to the three endpoints of the triangular membership function (the vertical coordinate defaults to {0,1,0}).

[0134] In summary, the optimization task of OPSaDE is to find the optimal individual The three sets of parameter sets it contains will together constitute the optimized fuzzy logic system deployed in APDOB, thereby giving APDOB the ability to compensate for periodic disturbances with multiple frequency changes.

[0135] The algorithm OPSaDE is designed based on the traditional differential evolution algorithm framework and has matching operators, mutation operators, crossover operators, selection operators and parameter update operators.

[0136] The operators of the algorithm OPSaDE are introduced as follows:

[0137] The selection operator uses a greedy selection algorithm;

[0138] Matching Operator

[0139] Since there is a coupling relationship between the variables to be optimized (for example, the number of design parameters of the membership function of the input or output variable is determined by the number of membership functions), there will be a phenomenon of data size mismatch when different individuals perform mutation, crossover, and selection operations, which will lead to data loss or invalid data generation. In this regard, the matching operator is introduced. (It means that the input data is matched according to the data size of the target object x.) The matching operator technology can increase or decrease the number of data based on the principle of linear interpolation, so that different individuals can be matched to the same data size as the target object x.

[0140] Mutation Operator

[0141] Through the mutation operation, the mutant individual can be obtained In order to improve the algorithm's search capability, the present invention adopts a hybrid mutation strategy based on the cultural gene architecture. The initial selection probabilities of the two strategies are p1=0.5 and p2=1-p1=0.5, and the probabilities will be updated as the search progresses; the two strategies are introduced as follows:

[0142] Strategy 1-DE / rand / 1: First, the mutant individuals In Parameter set to be calculated:

[0143]

[0144] Among them, {r1, r2, r3} are the numbers of three individuals randomly selected from the current population. Denoted as the adaptive mutation scaling factor.

[0145] For variant individuals In The parameter set is calculated as follows:

[0146]

[0147]

[0148] in, It is represented as a rounding function, which is used to convert the calculated floating point result into an integer to correspond to the semantics in the fuzzy rule; Represented as a matching operator, it is used to linearly interpolate the input data matrix size with the target object The corresponding data sizes are converted to the same.

[0149] Strategy 2-DE / current-to-pbest / 1: First, we get

[0150]

[0151] For variant individuals In The parameter set is calculated as follows:

[0152]

[0153]

[0154] in, It is the previous one with the lowest fitness. An individual randomly selected from individuals, J p∈[0.05,0.25] is a candidate ratio, which is taken as 0.25 in the present invention. is the mixed population of generation g, Represented as an external archive variable, used to record the information of individuals eliminated in the selection operation. The maximum number of individuals that can be recorded is N P If the number exceeds the limit, the individuals in the current file will be randomly discarded.

[0155] Crossover operator

[0156] The mutated population is mutated by the crossover operator Perform crossover to obtain a new temporary population Similar to the mutation operation, first generate a parameter set The specific operations are as follows:

[0157]

[0158] in, is the adaptive crossover rate. and The generation and The same, but before executing the cross operator, the matching operator must be performed first to align with the data size of the target object.

[0159] Parameter Update Operator

[0160] For control parameters: Adaptive variation scaling factor With adaptive crossover rate The update algorithm is as follows:

[0161]

[0162]

[0163] Among them, rand(·) and randc(·) are the random functions of the normal distribution and the random functions of the Cauchy distribution, respectively. and is the mean value of the g-th generation, and its initial value is And the calculation is performed according to the following update strategy:

[0164]

[0165]

[0166] Among them, J c ∈[0,1] is defined as a positive constant, which is set as J in this patent. c =0.1, and They are respectively represented by the individuals successfully retained in the selection operation of the g-th generation population. and mean A (·) indicates general mean calculation, mean L (·) is the Lehmer mean, which is calculated by the following formula:

[0167]

[0168] The operator selection probabilities p1 and p2 are updated only when the number of learning times reaches the learning cycle N. L When:

[0169]

[0170] p2=1-p1

[0171] in, and They represent the number of individuals retained and eliminated after adopting mutation strategy 1, and They represent the number of individuals retained and eliminated after adopting mutation strategy 2.

[0172] Fitness function design

[0173] By using the cumulative sampling error and overshoot value as the evaluation factor of the fitness function, the fitness value of the i-th individual in the g-th generation is The calculation method of is as follows:

[0174]

[0175] Among them, α F is the weight factor, Expressed as the frequency conversion times, is the fundamental frequency error of the kth sampling, which is the measured fundamental frequency tracked by the fuzzy APDOB system designed by the evolutionary algorithm Subtracting the actual fundamental frequency ω0(k) from the original frequency, is the maximum overshoot after the cth frequency conversion, T k is the sampling interval, T max is the simulation time.

[0176] The specific update steps of the algorithm OPSaDE are as follows:

[0177] Step 1: Set basic parameters: population size N p =30, maximum number of iterations N g =400, weight parameter α F=0.05, learning cycle N L =25, the control task is set as follows in this patent:

[0178]

[0179]

[0180]

[0181] Among them, D(z -1 ) is represented as a pseudo-integrator, I ref is the output value, x res is the input value, J is defined as mass / inertia, and is set to 0.3 kg·m 2 , K t is the thrust / torque constant, which is set to 0.24Nm / A in this simulation.

[0182] From the above formula we can see that x res (z -1 ) has a periodic perturbation d p (z -1 ), To blur the measured fundamental frequency obtained by APDOB by tracking the fundamental frequency After calculation, the performance of the designed fuzzy APDOB can be determined by its measured (or tracked) fundamental frequency. The error from the actual fundamental frequency ω0 To quantify, the first term of the fitness function calculation formula mentioned above is constructed based on this, and the second term in the fitness function calculation formula is to introduce the overshoot generated by the fundamental frequency during the control process, so that the designed fuzzy APDOB can be evaluated more comprehensively according to the fitness function.

[0183] Step 2: N p The individuals are initialized by random assignment to obtain the first generation population For external archive variables Operator selection probabilities p1 and p2, mean variable of random function and Do initialization processing;

[0184] Step 3: Evaluate the fitness of the first generation population to obtain the fitness value of the initialized population And record the individual information and fitness value with the smallest fitness value as the optimal individual Its fitness value F * ;

[0185] Step 4: Convert the contemporary population With external archives Merge to get mixed population

[0186] Step 5: Right and Perform initialization processing;

[0187] Step 6: For each variant individual First, we use right Calculate, then determine which mutation strategy to choose based on the random value rand(0,1), and perform the corresponding mutation operation; the specific judgment and selection process is: after the operator selection probability is updated, P1=0.3, then P2=0.7. At this time, if the rand(0,1) value is 0.27893, in the interval [0,0.3], then mutation strategy 1 is selected; if the rand(0,1) value is 0.9999, in the interval (0.3,1], then mutation strategy 2 is selected.

[0188] Step 7: For each crossover individual τ i,g First, we use right Calculate and then mutate individuals and parent individuals Perform corresponding crossover operations;

[0189] Step 8: For the obtained crossover individual τ i,g Perform fitness evaluation and obtain the corresponding fitness value Will With the parent individual The fitness value of For comparison, if the fitness of the crossover individual is less than the individual fitness value corresponding to the parent generation, the crossover individual is selected and the adaptive parameter and Recorded separately in and Otherwise, the corresponding parent individual is retained. Finally, we get the offspring population

[0190] Step 9: From the offspring population Find the individual with the smallest fitness value and compare it with the best individual The fitness value F * For comparison, if it is less than F * If the optimal individual and its fitness value are replaced, otherwise the current optimal individual and its fitness value are retained;

[0191] Step 10: Update The value of

[0192] Step 11: Determine the current algebra gmodN L Is the value of 0? If it is 0, it means that the learning cycle has been reached. Update p1 and p2, otherwise do not update;

[0193] Step 12: Judgement and Is it an empty set? If not, and Update, otherwise and The value of and Same;

[0194] Step 13: Determine whether the current algebra g is greater than N g , if it is not greater than, repeat steps 4 to 13 until the iteration stop condition is met;

[0195] Step 14: Finally output the final optimal individual ζ * and its fitness value F * ,individual This is the design scheme of the optimal fuzzy APDOB.

[0196] Specifically, the experimental results of the control comparison between the APDOB system involved in this patent and the APDOB system in the prior art are as follows: Figure 3-6 As shown:

[0197] pass Figure 3 It can be seen that the traditional APDOB cannot compensate for the error within 10 to 15 seconds. Figure 6 It can be seen that the fundamental wave changes at the 10th second, but since the six design parameters of the traditional APDOB are fixed parameters, it is unable to cope with the parameter change requirements caused by the fundamental wave change, thus losing the ability to compensate for errors.

[0198] Figure 4 It can be seen that although the DELS-based APDOB has better compensation ability than the traditional APDOB (faster error convergence speed) in 5-10s, it cannot compensate the error in 10-20s. Figure 6 It can be seen that the DELS-optimized APDOB tracks the fundamental frequency faster than the traditional APDOB adjusted by empirical method in the fundamental frequency change stage from 0 to 10s (100rad / s→110rad / s), but it cannot effectively track the fundamental frequency that changes again in subsequent changes.

[0199] Figure 5It can be seen that since the fuzzy logic system is deployed for the six design parameters based on APDOB, the self-organizing fuzzy APDOB can ensure the system's ability to track the fundamental frequency and eliminate periodic disturbances after multiple fundamental frequency changes.

[0200] It can be seen that among the three APDOB systems, the self-organizing fuzzy APDOB designed based on OPSaDE can still ensure the normal operation of the system when the fundamental frequency changes multiple times, while the two existing APDOB systems will fail within a certain period of time.

[0201] The above-mentioned embodiments only express the specific implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the protection scope of the present application. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the technical solution concept of the present application, and these all belong to the protection scope of the present application.

Claims

1. An automatic design system for APDOB with multiple frequency conversion periodic disturbance compensation capability, It is characterized in that Including adaptive periodic disturbance observer APDOB, fuzzy logic system and optimization system, The adaptive periodic disturbance observer APDOB is a control method with compensation capability, which can effectively detect the error between the nominal model and the actual modeling. Its design parameters include the low-pass filter cutoff frequency g a , bandpass filter design frequency g b , notch parameter r, multi-rate κ, forgetting factor λ, regularization parameter δ; The fuzzy logic system is used to adjust the design parameters of APD0B online; The optimization system is used to find the optimal parameters using an evolutionary algorithm to form an optimized fuzzy logic system, thereby giving the APDOB the ability to compensate for periodic disturbances with multiple frequency changes; The evolutionary algorithm is an OPSaDE algorithm, which specifically includes a matching operator, a mutation operator, a crossover operator, a selection operator and a parameter update operator, wherein: The selection operator adopts a greedy selection algorithm; The matching operator increases or decreases the number of data based on the principle of linear interpolation, matching different individuals to the same data size as the target object x; The crossover operator is used to transform the mutated population ι g Perform crossover to obtain a new temporary population Generate parameter set The specific operations are as follows: in, is the adaptive crossover rate; and The generation and The same, but before executing the cross operator, the matching operator must be performed to align with the data size of the target object; Parameter update operator for adaptive mutation scaling factor With adaptive crossover rate The update algorithm is as follows: Among them, rand(·) and randc(·) are random functions of normal distribution and Cauchy distribution respectively; and is the mean value of the g-th generation, and its initial value is And the calculation is performed according to the following update strategy: Among them, J c ∈[0, 1] is defined as a positive constant, and They are respectively represented by the individuals successfully retained in the selection operation of the g-th generation population. and mean A (·) indicates general mean calculation, mean L (·) is the Lehmer mean, which is calculated by the following formula: Operator selection probability p 1 and p 2 The update is only when the number of learning times reaches learning cycle N L When: p 2 =1-p 1 in, and They represent the number of individuals retained and eliminated after adopting mutation strategy 1, and They represent the number of individuals retained and eliminated after adopting mutation strategy 2; The mutation operator can obtain the mutation individual through mutation operation Specifically, a hybrid mutation strategy based on the cultural gene architecture is adopted, which includes two strategies: Strategy 1-DE / rand / 1: First, the mutant individual ι i,g In Parameter set to be calculated: Among them, {r 1 , r 2 , r 3 } are the numbers of three individuals randomly selected from the current population, Expressed as adaptive mutation scaling factor; For variant individuals i,g In The parameter set is calculated as follows: in, It is represented as a rounding function, which is used to convert the calculated floating point result into an integer to correspond to the semantics in the fuzzy rule; It is represented as a matching operator, which is used to convert the size of the input data matrix to be the same as the size of the corresponding data of the target object l through linear interpolation; Strategy 2-DE / current-to-pbest / 1: First, we get For variant individuals i,g In The parameter set is calculated as follows: in, It is the previous one with the lowest fitness. An individual randomly selected from individuals; is the mixed population of generation g, Represented as an external archive variable, used to record the information of individuals eliminated in the selection operation. The maximum number of individuals that can be recorded is N P If the number exceeds the limit, the individuals in the current file will be randomly discarded; The fitness function design of the OPSaDE algorithm includes: By using the cumulative sampling error and overshoot value as the evaluation factor of the fitness function, the fitness value of the i-th individual in the g-th generation is The calculation method of is as follows: Among them, α F is the weight factor, Expressed as the frequency conversion times, is the fundamental frequency error of the kth sampling, It is the maximum overshoot produced after the cth frequency conversion.

2. The automatic design system of the APDOB with multiple frequency conversion period disturbance compensation capability according to claim 1, It is characterized in that The fuzzy logic system adjusts the design parameters of APDOB online including: The fuzzy controller obtained by optimizing the system design will convert the fundamental frequency error calculated by APDOB at the kth moment into and error rate of change As the input variable, the output value is obtained according to the fuzzification processing, fuzzy rule base, fuzzy inference engine and defuzzification processing, which is the updated value of the APDOB design parameter after k samplings. After the design parameters are updated, the k+1th sampling calculation is performed.

3. The automatic design system of the APDOB with multiple frequency conversion period disturbance compensation capability according to claim 2, It is characterized in that The fundamental frequency error and error rate of change The calculation formula is as follows: Among them, ω 0 (k) represents the fundamental frequency of the control system at the kth sampling time, It is expressed as the measured value of the fundamental frequency of the APDOB system obtained by the kth sampling, T k is the sampling interval; The fuzzy logic system is l The semantic construction of the fuzzy logic of type 1 is as follows: in, and are all fuzzy sets, It is represented by the combination of 6 design parameters at the kth sampling moment; N ∧ is the number of fuzzy rules, which is determined by the input variables and The corresponding fuzzy rule semantics number The calculation formula is as follows: The output value calculation formula of the fuzzy logic system is: in, That It is represented by the corresponding fuzzy logic output of i The maximum value reached on the membership function of is expressed as follows: in, Defined as the membership function of the output fuzzy set, Fuzzy Set The i-th variable of ; For the fuzzy basis function Each element in Θ l (x) can be calculated as follows: in, and is the membership function of the input.

4. The automatic design system of the APDOB with multiple frequency conversion period disturbance compensation capability according to claim 1, It is characterized in that The maximum number of searches for the algorithm OPSaDE in the optimization system is N g , then the population of generation g can be expressed as: in, Represented as the i-th individual of the g-th generation, individual There are three sets of parameter sets in it. For each set, the specific information is as follows: Among them, x Δ Represents the upper limit of the value of variable x, ∈ x,i,g Defined as the horizontal coordinate values ​​corresponding to the three endpoints of the triangular membership function, the vertical coordinate defaults to {0, 1, 0}.

5. The automatic design system of the APDOB with multiple frequency conversion period disturbance compensation capability according to claim 1, It is characterized in that The update steps of the algorithm OPSaDE are as follows: Step 1: Set basic parameters and initialize the population to obtain the parent population Step 2: For the gth iteration, first use The population is mutated to obtain a mutant population Step 3: Utilize Population and population Perform a crossover operation to obtain the crossover population τ g ; Step 4: For the obtained crossover population τ g Perform fitness evaluation operations to obtain the fitness value set of all individuals in the cross population And through the greedy selection operation to select individuals, finally get the final g+1 generation parent population Step 5: Update all adaptive parameters and their related parameters; Step 6: Determine whether the g-th generation search meets the termination condition. If not, repeat steps 2 to 6. If it does, the search is complete and the optimal individual is output. and its fitness value F * ,individual This is the optimal design solution for the logical fuzzy system.

6. The automatic design system of the APDOB with multiple frequency conversion period disturbance compensation capability according to claim 5, It is characterized in that The detailed update steps of the algorithm OPSaDE are as follows: Step 1.1: Set the control task and basic parameters, including the population number N p , the maximum number of iterations N g , weight parameter α F , learning cycle NL and control task; Step 1.2: Initialize Np individuals by random assignment to obtain the first generation population For external archive variables Operator selection probability p 1 With p 2 , mean variable of random function and Do initialization processing; Step 1.3: Evaluate the fitness of the first generation population to obtain the fitness value of the initialized population And record the individual information and fitness value with the smallest fitness value as the optimal individual With its fitness value F*; Step 2.1: Convert the contemporary population With external archives Merge to get mixed population Step 2.2: and Perform initialization processing: Step 2.3: For each variant individual First, we use right Calculate and then select probability p based on random value rand(0,1) and operator 1 、p 2 The relationship between the two is used to determine the mutation strategy and perform the corresponding mutation operation to obtain the mutant population. Step 3.1: For each crossover individual τ i,g First, we use right Calculate and then mutate individuals and parent individuals Perform corresponding crossover operations; Step 4.1: For the obtained crossover individual τ i,g Perform fitness evaluation and obtain the corresponding fitness value Will With the parent individual The fitness value of For comparison, if the fitness of the crossover individual is less than the individual fitness value corresponding to the parent generation, the crossover individual is selected and the adaptive parameter and Recorded separately in and Otherwise, the corresponding parent individual is retained. Finally, we get the offspring population Step 4.2: From the progeny population Find the individual with the smallest fitness value and compare it with the best individual The fitness value F * For comparison, if it is less than F * Then replace the best individual and its fitness value, otherwise keep the current best individual and its fitness value, so as to obtain the final g+1 generation parent population Step 5.1: Update The value of Step 5.2: Determine whether the current value of gmodNL is 0. If it is 0, it indicates that the learning cycle has been reached. Update p 1 , p 2 Otherwise, no update will be performed; Step 5.3: Judgement and Is it an empty set? If not, and Update, otherwise and The value of and Same; Step 6.1: Determine whether the current algebra g is greater than N g , if it is not greater than, repeat steps 2.1 to 6.1 until the iteration stop condition is met; Step 6.2: Finally output the final most individual and its fitness value F * ,individual This is the optimal design solution for the logical fuzzy system.