Control method and device of brushless direct current motor, equipment and medium

By optimizing the parameters of the PI controller through the fuzzy controller and genetic algorithm, the problem of insufficient control performance of the brushless DC motor under complex working conditions is solved, more precise motor control is achieved, and the motor life is extended.

CN118611481AInactive Publication Date: 2024-09-06CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410665390.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When brushless DC motors face complex working conditions or system parameter changes, the traditional PI controller has insufficient adaptability to external disturbances, making it difficult to achieve ideal control performance. Especially in electric sliding door systems, there is a lot of human interference, causing the motor to Temperature rises, wear increases, and lifespan decreases.

Method used

The membership function and fuzzy rules of the fuzzy controller are combined with the genetic algorithm to optimize the parameters of the PI controller. By obtaining the speed error and error change rate, the proportional parameter correction value and the integral parameter correction value are determined to achieve more precise motor control.

Benefits of technology

It improves the adaptive adjustment performance of the motor control system, reduces the frequency of wear, reduces overheating problems caused by unexpected operations, and extends the service life of the motor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611481A
    Figure CN118611481A
Patent Text Reader

Abstract

The embodiment of the invention provides a brushless direct current motor control method and device, equipment and a medium, and the method comprises the steps: obtaining a membership function and a fuzzy rule of a fuzzy controller, and determining a first group according to the membership function and the fuzzy rule; performing genetic algorithm optimization processing on the first group to determine an optimal individual; determining a proportional parameter correction value and an integral parameter correction value through a fuzzy controller according to a membership function and a fuzzy rule in the optimal individual, a rotating speed error and an error change rate; therefore, when a motor control system encounters external disturbances such as human intervention, the control parameters of the PI controller can be adjusted more quickly and more effectively according to the optimal membership function and fuzzy rule combination, so that the rotating speed of the motor is always in the optimal state, and the control precision of the brushless direct current motor is improved. The frequency of extra abrasion to the motor is reduced, the problem that the motor is overheated due to unexpected operation is reduced, and the service life of the motor is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of brushless DC motors, and in particular to a control method, device, equipment and medium for a brushless DC motor. Background Art

[0002] In recent years, with the rapid development of automobile intelligence and electrification technology, electric vehicles and hybrid vehicles have gradually become mainstream, which provides a broad development space for the application of motor technology; especially in the field of multi-purpose vehicles (MPV), electric side sliding doors are favored by more and more users due to their convenient operation, high safety, and strong applicability. Electric side sliding doors usually use brushless DC motors as the driving force source to ensure that the door body can be opened or closed smoothly.

[0003] The electronic control of brushless DC motors mainly adopts the proportional-integral (PI) control strategy. Although this control method can achieve the basic speed regulation and control functions of the motor to a certain extent, when faced with complex working conditions or changes in system parameters, the traditional PI controller is not adaptable enough to external disturbances during the feedback control process, and its control performance is often difficult to reach the ideal state.

[0004] For example, in the electric sliding door system of an MPV, the door body is often pulled manually during the opening or closing process. This external interference will affect the operating state of the brushless DC motor, making it difficult for the control system to accurately control the movement of the door body, which in turn causes the brushless DC motor to generate higher temperatures and wear at high speeds, thereby reducing the life of the motor. Summary of the invention

[0005] In view of the above problems, a control method, device, equipment, and medium for a brushless DC motor are proposed to overcome the above problems or at least partially solve the above problems, including:

[0006] A method for controlling a brushless DC motor, the method comprising:

[0007] Obtaining a membership function and a fuzzy rule of a fuzzy controller, and determining a first group according to the membership function and the fuzzy rule; wherein an individual in the first group is a combination of at least one of the membership functions and at least one of the fuzzy rules;

[0008] Performing a genetic algorithm optimization process on the first population to determine the best individual;

[0009] The speed error and the error change rate of the brushless DC motor are obtained by the fuzzy controller, and a proportional parameter correction value and an integral parameter correction value are determined according to the membership function and the fuzzy rule in the optimal individual, the speed error and the error change rate;

[0010] The proportional parameter correction value and the integral parameter correction value are obtained through a proportional-integral controller, and the brushless DC motor is controlled according to the proportional parameter correction value and the integral parameter correction value.

[0011] Optionally, determining the first group according to the membership function and the fuzzy rule includes:

[0012] The membership function and the fuzzy rule are respectively coded to generate coding results, and the first group of the membership function and the fuzzy rule is determined according to the coding results.

[0013] Optionally, performing a genetic algorithm optimization process on the first population to determine the best individual includes:

[0014] Obtaining an actual speed error value corresponding to the individual, and determining an objective function according to the actual speed error value;

[0015] According to the objective function, the fitness function of the individual is determined, and according to the fitness function, a genetic algorithm optimization process is performed on the first population.

[0016] Optionally, performing a genetic algorithm optimization process on the first population according to the fitness function includes:

[0017] Determining an average fitness value of the first group and a fitness value of the individual according to the fitness function;

[0018] performing selection processing, crossover processing and mutation processing on the first population in sequence according to the average fitness value of the first population and the fitness value of the individual to generate a second population;

[0019] determining whether the second group satisfies a preset termination condition, and if the second group satisfies the preset termination condition, determining an individual in the second group as the optimal individual;

[0020] If the second population does not meet the preset end condition, the steps of sequentially performing the selection process, the crossover process and the mutation process are performed again on the second population until the population meeting the preset end condition is generated.

[0021] Optionally, the step of sequentially performing selection processing, crossover processing and mutation processing on the first population according to the average fitness value of the first population and the fitness value of the individual to generate the second population includes:

[0022] Determine the individual whose fitness value is greater than the average fitness value, and determine the individual whose fitness value is greater than the average fitness value as the first parent individual;

[0023] Determine the individual whose fitness value is less than the average fitness value, and generate a second parent individual according to the individual whose fitness value is less than the average fitness value;

[0024] Generate a parent individual sample set according to the first parent individual and the second parent individual;

[0025] performing the crossover process and the mutation process on the parent generation individual sample set in sequence to generate the second population;

[0026] Determine a crossover probability, and perform the crossover process on the parent generation individual sample set according to the crossover probability to generate an individual sample set after the crossover process;

[0027] The mutation probability is determined, and according to the mutation probability, the mutation process is performed on the individual sample set after the crossover process to generate the second population.

[0028] Optionally, the crossover probability is confirmed based on a preset maximum crossover probability, a preset crossover probability change, and the size of the group, and the mutation probability is confirmed based on a preset maximum mutation probability, a preset mutation probability change, and the size of the group.

[0029] Optionally, obtaining the proportional parameter correction value and the integral parameter correction value through the proportional-integral controller, and controlling the brushless DC motor according to the proportional parameter correction value and the integral parameter correction value, includes:

[0030] Obtaining an initial value of a proportional parameter and an initial value of an integral parameter, and determining a target proportional parameter and a target integral parameter according to the initial value of the proportional parameter, the initial value of the integral parameter, the corrected value of the proportional parameter and the corrected value of the integral parameter;

[0031] The brushless DC motor is controlled according to the target proportional parameter and the target integral parameter.

[0032] A control device for a brushless DC motor, the device comprising:

[0033] A first group determination module is used to obtain a membership function and a fuzzy rule of a fuzzy controller, and determine a first group according to the membership function and the fuzzy rule; wherein an individual in the first group is a combination of at least one membership function and at least one fuzzy rule;

[0034] An optimal individual determination module, used for performing a genetic algorithm optimization process on the first population to determine the optimal individual;

[0035] A correction value determination module, used for obtaining the speed error and the error change rate of the brushless DC motor through the fuzzy controller, and determining a proportional parameter correction value and an integral parameter correction value according to the membership function and the fuzzy rule in the optimal individual, the speed error and the error change rate;

[0036] The brushless DC motor control module is used to obtain the proportional parameter correction value and the integral parameter correction value through a proportional-integral controller, and control the brushless DC motor according to the proportional parameter correction value and the integral parameter correction value.

[0037] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the control method of the brushless DC motor as described above when executed by the processor.

[0038] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the control method of the brushless DC motor as described above is implemented.

[0039] The embodiments of the present invention have the following advantages:

[0040] In an embodiment of the present invention, the membership function and fuzzy rules of the fuzzy controller are obtained, and the first group is determined according to the membership function and the fuzzy rules; wherein the individuals in the first group are a combination of at least one membership function and at least one fuzzy rule; then the first group is subjected to a genetic algorithm optimization process to determine the optimal individual; and then the speed error and the error change rate of the brushless DC motor are obtained through the fuzzy controller, and the proportional parameter correction value and the integral parameter correction value are determined according to the membership function and the fuzzy rules, the speed error and the error change rate in the optimal individual; thus, the brushless DC motor is controlled by the proportional-integral controller according to the proportional parameter correction value and the integral parameter correction value, so that when the motor control system encounters external disturbances such as human intervention, the proportional parameter correction value and the integral parameter correction value can be determined according to the optimal combination of the membership function and the fuzzy rule, so that the control parameters of the PI controller can be adjusted more quickly and more effectively, thereby achieving smoother motor speed control, so that the motor speed is always in an optimal state, which not only reduces the frequency of additional wear on the motor, but also effectively reduces the motor overheating problem caused by unexpected operation, and prolongs the service life of the motor. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0042] Figure 1 is a flowchart of a method for controlling a brushless DC motor provided by some embodiments of the present invention;

[0043] Figure 2 is a schematic diagram of a flow chart of controlling a brushless DC motor provided by some embodiments of the present invention;

[0044] Figure 3 It is a schematic diagram of the division result of unevenly dividing the fuzzy domain of membership function provided by some embodiments of the present invention;

[0045] Figure 4 It is a schematic diagram of the overall process of performing genetic algorithm optimization processing according to some embodiments of the present invention;

[0046] Figure 5 It is a structural schematic diagram of a control device for a brushless DC motor provided in some embodiments of the present invention. DETAILED DESCRIPTION

[0047] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] In recent years, with the rapid development of automobile intelligence and electrification technology, electric vehicles and hybrid vehicles have gradually become mainstream, which provides a broad development space for the application of motor technology; especially in the field of MPV, electric side sliding doors are favored by more and more users due to their convenient operation, high safety, and strong applicability. Electric side sliding doors usually use brushless DC motors as the driving force source to ensure that the door body can be opened or closed smoothly.

[0049] The electronic control of brushless DC motors mainly adopts the PI control strategy. Although this control method can realize the basic speed regulation and control functions of the motor to a certain extent, when faced with complex working conditions or changes in system parameters, the traditional PI controller is not adaptable enough to external disturbances during the feedback control process, and its control performance is often difficult to reach the ideal state.

[0050] For example, in the electric sliding door system of an MPV, the door body is often pulled manually during the opening or closing process. This external interference will affect the operating state of the brushless DC motor, making it difficult for the control system to accurately control the movement of the door body, which in turn causes the brushless DC motor to generate higher temperatures and wear at high speeds, thereby reducing the life of the motor.

[0051] In the embodiment of the present invention, based on the core technical concept of determining the optimal membership function and fuzzy rule in the membership function and fuzzy rule of the fuzzy controller by genetic algorithm, and adjusting the control parameters of the PI controller more quickly and more effectively according to the optimal membership function and fuzzy rule combination, the quantum circuit simulation method based on quantum gate fusion in the related art is improved. The present invention will be described in detail in conjunction with the accompanying drawings below:

[0052] Reference Figure 1 , shows a flow chart of a method for controlling a brushless DC motor provided by some embodiments of the present invention, which may specifically include the following steps:

[0053] Step 101, obtaining a membership function and a fuzzy rule of a fuzzy controller, and determining a first group according to the membership function and the fuzzy rule; wherein an individual in the first group is a combination of at least one membership function and at least one fuzzy rule;

[0054] The brushless DC motor control in related technologies mostly adopts PI control, but it often cannot achieve satisfactory control effect when the parameters change. Therefore, the performance of the brushless DC motor controller can be improved by combining genetic algorithm with fuzzy control and optimizing the traditional PI control, so that it has good adaptive adjustment performance when the speed or load fluctuates greatly.

[0055] In a specific implementation, the existing membership functions and fuzzy rules of the fuzzy controller can be obtained first, and the membership functions and fuzzy rules can be encoded respectively, and then an initial group of membership functions and fuzzy rules can be constructed by combining any membership function and any fuzzy rule into one body according to the encoding result, and then the initial group can be optimized by a genetic algorithm to determine the optimal combination of membership functions and fuzzy rules;

[0056] Further, such as Figure 2 As shown in FIG. 1 , the membership function and fuzzy rules of the fuzzy controller can be optimized by genetic algorithm to determine the optimal membership function and fuzzy rule combination, and the fuzzy controller can perform fuzzification, fuzzy reasoning and clarification on the error between the input target speed and the actual speed and the error change rate e and ec according to the optimal membership function and fuzzy rule, so as to output the correction value ΔK for correcting the proportional parameter and integral parameter of the PI controller. P and ΔK i , and can be obtained by changing ΔK P and ΔK i The initial proportional parameter coefficient K of the PI controller is P0 and the initial integration parameter coefficient K i0 The output is the proportional parameter K used to control the speed of the brushless DC motor. P With the integration parameter K i For example, the proportional parameter K used to control the speed of the brushless DC motor can be calculated by the following formula P With the integration parameter K i :

[0057]

[0058] Among them, K P is the proportional parameter, ΔK P is the proportional parameter correction value, K P0 is the initial proportional parameter coefficient, K i is the integration parameter, ΔK i is the correction value of the integral parameter, K i0 is the initial integration parameter coefficient.

[0059] In some embodiments of the present invention, determining the first group according to the membership function and the fuzzy rule includes:

[0060] The membership function and the fuzzy rule are respectively coded to generate coding results, and the first group of the membership function and the fuzzy rule is determined according to the coding results.

[0061] In practical applications, the membership function and the fuzzy rules can be coded separately and the corresponding coding results can be generated;

[0062] In one example, if Figure 3 As shown in FIG. 1 , when encoding the membership function, the fuzzy domain of the membership function can be unevenly divided according to the size of the input data. The input and output can both use symmetrical triangular membership functions, and the optimization parameter is the spacing of the base of the triangle. For example, for a system with two inputs and two outputs, floating point encoding can be used to encode it as in, is the code of the error e between the input target speed and the actual speed, is the encoding of the input error change rate ec; The output proportional parameter correction value ΔK P The encoding of The output integral parameter correction value ΔK i The encoding.

[0063] In one example, when encoding the fuzzy rules, decimal encoding can be used. For example, NB (Negative Big) can be defined as 1, NM (Negative Medium) as 2, NS (Negative Small) as 3, ZO (Zero) as 4, PS (Positive Small) as 5, PM (Positive Medium) as 6, and PB (Positive Big) as 7.

[0064] Step 102, performing a genetic algorithm optimization process on the first population to determine the best individual;

[0065] In a specific implementation, the fuzzy rules and membership functions can be applied to the control system, the response of the system can be observed, and the actual value of the speed can be obtained, and compared with the expected speed to calculate the actual speed error, so as to take the integral of the absolute value of the speed error as the objective function according to the requirements of the brushless DC motor control performance. For example, the objective function can be expressed as:

[0066]

[0067] Among them, S is the objective function and e is the actual speed error value.

[0068] Furthermore, a fitness function for calculating individual fitness can be determined according to the objective function, thereby ensuring that a smaller objective function value can correspond to a larger fitness value. For example, the fitness function can be expressed as:

[0069]

[0070] Among them, f is the fitness function and S is the objective function.

[0071] Furthermore, the fitness of each individual in the first group (ie, the initial group) can be calculated according to the fitness function, and then a subsequent genetic algorithm optimization process is performed according to the fitness of each individual to determine the best individual.

[0072] Specifically, the first group can be selected according to the fitness, and then the crossover and mutation processes are performed in sequence, and iterated multiple times until the optimal individual is obtained after the set number of iterations is reached. In fact, the selection process in the relevant technology is generally based on fitness and is implemented by the rule of survival of the fittest. For example, the higher the fitness of an individual, the greater the probability that the individual will be selected and passed on to the next generation. Generally speaking, the choice of selection operator has a great influence on the result of the genetic algorithm. The most widely used one is the fitness ratio method. The relationship between the probability of an individual being selected and its fitness value is shown in the following formula:

[0073]

[0074] Where: P j is the probability of the jth individual being selected; f j is the fitness of the jth individual; m is the population size.

[0075] Although this method can improve the average fitness of the population when used in selection processing, it is easy to produce super individuals, resulting in very small changes in the individuals selected each time, and falling into a local optimum.

[0076] Therefore, in one example, the fitness ratio method in the related art may not be used, and improvements may be made to the corresponding shortcomings of the method. For example, the fitness value of each individual in the first group and the average fitness value of all individuals in the first group may be calculated. Specifically, ε1 may represent the average fitness value of the initial group, and ε2 may represent the fitness value of each individual. Further, the selection process may be performed according to the following steps:

[0077] Step 1: Calculate the values ​​of ε1 and ε2 and sort ε2 according to the fitness value;

[0078] Step 2: Determine the value of ε1 and ε2. If ε2>ε1, save the corresponding individual corresponding to ε2 and use it as the first parent individual for the subsequent crossover processing step;

[0079] Step 3: If ε2<ε1, randomly generate n individuals according to the corresponding individuals corresponding to ε2, and calculate the Euclidean distance between the fitness value of each newly generated individual and the individual with the largest fitness value in the original initial population. The Euclidean distance formula is:

[0080]

[0081] Among them, x i is the i-th gene of individual x; y i is the i-th gene of individual y, m is the number of genes, and d is the Euclidean distance.

[0082] Furthermore, the individual with the largest sum of fitness value and Euclidean distance can be selected from the newly generated n individuals, and replaced with the original individual in the original initial group. The replaced individual can then be determined as the second parent individual, and together with the first parent individual, a parent individual sample set is generated for subsequent crossover processing steps. It can be seen that compared with the fitness ratio method in the related art, the selection processing method provided by the present invention avoids the emergence of super individuals, thereby avoiding falling into local optimality.

[0083] Furthermore, after obtaining the parent individual sample set through the selection processing step, since the probability of having the optimal solution in the initial population is too small, crossover processing is required to generate new individuals in order to increase the possibility of the subsequent optimal solution and ensure the diversity of the population. Specifically, the two parent samples can be structurally recombined according to the set crossover probability.

[0084] In one example, a convex combination can be selected for crossover to avoid infeasible solutions, where the parent sample can be expressed as:

[0085]

[0086] Among them, Q1 and Q2 are the parent individuals before crossover, and α and β represent the parent samples 1 and 2 that are about to be crossovered.

[0087] The offspring individuals after crossover can be expressed as:

[0088]

[0089] Among them, R1 and R2 are the offspring individuals after crossover, λ∈(0,1).

[0090] Furthermore, the individual set after the crossover can be subjected to mutation processing. Specifically, the individual set after the crossover can include both the original parent individual sample set and the offspring individual set generated after the crossover. Since the mutation is to replace one or more loci in the individual chromosome coding string with other values ​​according to the mutation probability, the mutation processing can be performed in a uniform mutation manner. For example, it can be assumed that α' is α = α1, α2, ..., α n , …α m The individual after mutation, let the mutation point be α n , α n ′ is α n After the mutation, α n ′ can be expressed as:

[0091]

[0092] Here, r is a randomly generated number in [0,1].

[0093] Furthermore, in an example, the crossover probability and mutation probability involved in the crossover step and mutation step of the present invention can be adaptively adjusted. Specifically, although fixed crossover probability and mutation probability can optimize the search space uniformly, in the actual optimization process, the requirements of each stage will be different. For example, assuming P c is the crossover probability, P m is the mutation probability. In the early and late stages of the algorithm, according to the size of individual differences, P c and P m The choices are different. When the individual differences are large, a larger P should be taken. c and a smaller P m value to speed up the convergence of the algorithm; when the individual differences are small, a smaller P should be taken c and a larger P m Enhance the diversity of the group. In addition, according to the quality of individuals, P c and P m The choice of is also different. When the individual quality is good, in order to reduce the probability of destroying excellent individuals, P c , P m should choose a smaller value; when the individual quality is poor, in order to improve the individual quality, P c , P m A larger value should be selected.

[0094] Therefore, the present invention can adopt P with adaptive ability c and P m , for example, P c and P m They can be expressed as:

[0095]

[0096] Among them, P c max is the maximum crossover probability; ΔP c is the change in crossover probability; P m max is the maximum mutation probability; ΔP m is the change in mutation probability; n is the population size.

[0097] Furthermore, after the initial population has been subjected to selection, crossover and mutation processing in sequence, the selection, crossover and mutation processing steps may be repeated in sequence on the obtained new population for iteration. Specifically, after the number of iterations reaches a set number of iterations (for example, 100 times), it may be considered that the iteration end condition has been met, thereby obtaining the optimal individual.

[0098] In some embodiments of the present invention, performing a genetic algorithm optimization process on the first population to determine the best individual includes:

[0099] Obtaining an actual speed error value corresponding to the individual, and determining an objective function according to the actual speed error value;

[0100] According to the objective function, the fitness function of the individual is determined, and according to the fitness function, a genetic algorithm optimization process is performed on the first population.

[0101] In practical applications, fuzzy rules and membership functions can be applied to the control system to observe the response of the system, thereby obtaining the actual value of the speed, and comparing it with the expected speed to calculate the actual speed error. Based on the requirements of the brushless DC motor control performance, the integral of the absolute value of the speed error is used as the objective function. For example, the objective function can be expressed as:

[0102]

[0103] Among them, S is the objective function and e is the actual speed error value.

[0104] Furthermore, a fitness function for calculating individual fitness can be determined according to the objective function, thereby ensuring that a smaller objective function value can correspond to a larger fitness value. For example, the fitness function can be expressed as:

[0105]

[0106] Among them, f is the fitness function and S is the objective function.

[0107] Furthermore, the fitness of each individual in the first group (ie, the initial group) can be calculated according to the fitness function, and then a subsequent genetic algorithm optimization process is performed according to the fitness of each individual to determine the best individual.

[0108] In some embodiments of the present invention, performing a genetic algorithm optimization process on the first population according to the fitness function includes:

[0109] Determining an average fitness value of the first group and a fitness value of the individual according to the fitness function;

[0110] performing selection processing, crossover processing and mutation processing on the first population in sequence according to the average fitness value of the first population and the fitness value of the individual to generate a second population;

[0111] determining whether the second group satisfies a preset termination condition, and if the second group satisfies the preset termination condition, determining an individual in the second group as the optimal individual;

[0112] If the second population does not meet the preset end condition, the steps of sequentially performing the selection process, the crossover process and the mutation process are performed again on the second population until the population meeting the preset end condition is generated.

[0113] In a specific implementation, the first group can be selected based on the fitness, and then crossover and mutation can be performed in sequence, and multiple iterations can be performed until the optimal individual is obtained after the set number of iterations is reached. In fact, the selection process in related technologies is generally based on fitness and is implemented through the rule of survival of the fittest. For example, the higher the fitness of an individual, the greater the probability that the individual will be selected and passed on to the next generation. Generally speaking, the choice of selection operator has a great influence on the results of the genetic algorithm. The most widely used method is the fitness ratio method, and the relationship between the probability of an individual being selected and its fitness value is shown in the following formula:

[0114]

[0115] Where: P j is the probability of the jth individual being selected; f j is the fitness of the jth individual; m is the population size.

[0116] Although this method can improve the average fitness of the population when used in selection processing, it is easy to produce super individuals, resulting in very small changes in the individuals selected each time, and falling into a local optimum.

[0117] Therefore, in one example, the fitness ratio method in the related art may not be used, and improvements may be made to the corresponding shortcomings of the method. For example, the fitness value of each individual in the first group and the average fitness value of all individuals in the first group may be calculated. Specifically, ε1 may represent the average fitness value of the initial group, and ε2 may represent the fitness value of each individual. Further, the selection process may be performed according to the following steps:

[0118] Step 1: Calculate the values ​​of ε1 and ε2 and sort ε2 according to the fitness value;

[0119] Step 2: Determine the value of ε1 and ε2. If ε2>ε1, save the corresponding individual corresponding to ε2 and use it as the first parent individual for the subsequent crossover processing step;

[0120] Step 3: If ε2<ε1, randomly generate n individuals according to the corresponding individuals corresponding to ε2, and calculate the Euclidean distance between the fitness value of each newly generated individual and the individual with the largest fitness value in the original initial population. The Euclidean distance formula is:

[0121]

[0122] Among them, x i is the i-th gene of individual x; y i is the i-th gene of individual y, m is the number of genes, and d is the Euclidean distance.

[0123] Furthermore, the individual with the largest sum of fitness value and Euclidean distance can be selected from the newly generated n individuals, and replaced with the original individual in the original initial group. The replaced individual can then be determined as the second parent individual, and together with the first parent individual, a parent individual sample set is generated for subsequent crossover processing steps. It can be seen that compared with the fitness ratio method in the related art, the selection processing method provided by the present invention avoids the emergence of super individuals, thereby avoiding falling into local optimality.

[0124] Furthermore, after obtaining the parent individual sample set through the selection processing step, since the probability of having the optimal solution in the initial population is too small, crossover processing is required to generate new individuals in order to increase the possibility of the subsequent optimal solution and ensure the diversity of the population. Specifically, the two parent samples can be structurally recombined according to the set crossover probability.

[0125] In one example, a convex combination can be selected for crossover to avoid infeasible solutions, where the parent sample can be expressed as:

[0126]

[0127] Among them, Q1 and Q2 are the parent individuals before crossover, and α and β represent the parent samples 1 and 2 that are about to be crossovered.

[0128] The offspring individuals after crossover can be expressed as:

[0129]

[0130] Among them, R1 and R2 are the offspring individuals after crossover, λ∈(0,1).

[0131] Furthermore, the individual set after the crossover can be subjected to mutation processing. Specifically, the individual set after the crossover can include both the original parent individual sample set and the offspring individual set generated after the crossover. Since the mutation is to replace one or more loci in the individual chromosome coding string with other values ​​according to the mutation probability, the mutation processing can be performed in a uniform mutation manner. For example, it can be assumed that α' is α = α1, α2, ..., α n , …α m The individual after mutation, let the mutation point be α n , α n ′ is α n After the mutation, α n ′ can be expressed as:

[0132]

[0133] Here, r is a randomly generated number in [0,1].

[0134] Furthermore, in an example, the crossover probability and mutation probability involved in the crossover step and mutation step of the present invention can be adaptively adjusted. Specifically, although fixed crossover probability and mutation probability can optimize the search space uniformly, in the actual optimization process, the requirements of each stage will be different. For example, assuming P c is the crossover probability, P m is the mutation probability. In the early and late stages of the algorithm, according to the size of individual differences, P c and P m The choices are different. When the individual differences are large, a larger P should be taken. c and a smaller P m value to speed up the convergence of the algorithm; when the individual differences are small, a smaller P should be taken c and a larger P m Enhance the diversity of the group. In addition, according to the quality of individuals, P c and P m The choice of is also different. When the individual quality is good, in order to reduce the probability of destroying excellent individuals, P c , P mshould choose a smaller value; when the individual quality is poor, in order to improve the individual quality, P m A larger value should be selected. c

[0135] Therefore, the present invention can adopt P with adaptive ability c and P m , for example, P c and P m They can be expressed as:

[0136]

[0137] Among them, P c max is the maximum crossover probability; ΔP c is the change in crossover probability; P m max is the maximum mutation probability; ΔP m is the change in mutation probability; n is the population size.

[0138] Furthermore, after the initial population has been subjected to selection, crossover and mutation processing in sequence, the selection, crossover and mutation processing steps may be repeated in sequence on the obtained new population for iteration. Specifically, after the number of iterations reaches a set number of iterations (for example, 100 times), it may be considered that the iteration end condition has been met, thereby obtaining the optimal individual.

[0139] In some embodiments of the present invention, the step of sequentially performing selection processing, crossover processing, and mutation processing on the first population according to the average fitness value of the first population and the fitness value of the individual to generate the second population includes:

[0140] Determine the individual whose fitness value is greater than the average fitness value, and determine the individual whose fitness value is greater than the average fitness value as the first parent individual;

[0141] Determine the individual whose fitness value is less than the average fitness value, and generate a second parent individual according to the individual whose fitness value is less than the average fitness value;

[0142] Generate a parent individual sample set according to the first parent individual and the second parent individual;

[0143] Determine a crossover probability, and perform the crossover process on the parent generation individual sample set according to the crossover probability to generate an individual sample set after the crossover process;

[0144] The mutation probability is determined, and according to the mutation probability, the mutation process is performed on the individual sample set after the crossover process to generate the second population.

[0145] In a specific implementation, the first group can be selected based on the fitness, and then crossover and mutation can be performed in sequence, and multiple iterations can be performed until the optimal individual is obtained after the set number of iterations is reached. In fact, the selection process in related technologies is generally based on fitness and is implemented through the rule of survival of the fittest. For example, the higher the fitness of an individual, the greater the probability that the individual will be selected and passed on to the next generation. Generally speaking, the choice of selection operator has a great influence on the results of the genetic algorithm. The most widely used method is the fitness ratio method, and the relationship between the probability of an individual being selected and its fitness value is shown in the following formula:

[0146]

[0147] Where: P j is the probability of the jth individual being selected; f j is the fitness of the jth individual; m is the population size.

[0148] Although this method can improve the average fitness of the population when used in selection processing, it is easy to produce super individuals, resulting in very small changes in the individuals selected each time, and falling into a local optimum.

[0149] Therefore, in one example, the fitness ratio method in the related art may not be used, and improvements may be made to the corresponding shortcomings of the method. For example, the fitness value of each individual in the first group and the average fitness value of all individuals in the first group may be calculated. Specifically, ε1 may represent the average fitness value of the initial group, and ε2 may represent the fitness value of each individual. Further, the selection process may be performed according to the following steps:

[0150] Step 1: Calculate the values ​​of ε1 and ε2 and sort ε2 according to the fitness value;

[0151] Step 2: Determine the value of ε1 and ε2. If ε2>ε1, save the corresponding individual corresponding to ε2 and use it as the first parent individual for the subsequent crossover processing step;

[0152] Step 3: If ε2<ε1, randomly generate n individuals according to the corresponding individuals corresponding to ε2, and calculate the Euclidean distance between the fitness value of each newly generated individual and the individual with the largest fitness value in the original initial population. The Euclidean distance formula is:

[0153]

[0154] Among them, x i is the i-th gene of individual x; y i is the i-th gene of individual y, m is the number of genes, and d is the Euclidean distance.

[0155] Furthermore, the individual with the largest sum of fitness value and Euclidean distance can be selected from the newly generated n individuals, and replaced with the original individual in the original initial group. The replaced individual can then be determined as the second parent individual, and together with the first parent individual, a parent individual sample set is generated for subsequent crossover processing steps. It can be seen that compared with the fitness ratio method in the related art, the selection processing method provided by the present invention avoids the emergence of super individuals, thereby avoiding falling into local optimality.

[0156] Furthermore, after obtaining the parent individual sample set through the selection processing step, since the probability of having the optimal solution in the initial population is too small, crossover processing is required to generate new individuals in order to increase the possibility of the subsequent optimal solution and ensure the diversity of the population. Specifically, the two parent samples can be structurally recombined according to the set crossover probability.

[0157] In one example, a convex combination can be selected for crossover to avoid infeasible solutions, where the parent sample can be expressed as:

[0158]

[0159] Among them, Q1 and Q2 are the parent individuals before crossover, and α and β represent the parent samples 1 and 2 that are about to be crossovered.

[0160] The offspring individuals after crossover can be expressed as:

[0161]

[0162] Among them, R1 and R2 are the offspring individuals after crossover, λ∈(0,1).

[0163] Furthermore, the individual set after the crossover can be subjected to mutation processing. Specifically, the individual set after the crossover can include both the original parent individual sample set and the offspring individual set generated after the crossover. Since the mutation is to replace one or more loci in the individual chromosome coding string with other values ​​according to the mutation probability, the mutation processing can be performed in a uniform mutation manner. For example, it can be assumed that α' is α = α1, α2, ..., α n , …α m The individual after mutation, let the mutation point be α n , α n ′ is α n After the mutation, α n ′ can be expressed as:

[0164]

[0165] Here, r is a randomly generated number in [0,1].

[0166] In some embodiments of the present invention, the crossover probability is confirmed based on a preset maximum crossover probability, a preset crossover probability change, and the size of the group, and the mutation probability is confirmed based on a preset maximum mutation probability, a preset mutation probability change, and the size of the group.

[0167] In a specific implementation, the crossover probability and mutation probability involved in the crossover step and mutation step of the present invention can be adaptively adjusted. Specifically, although fixed crossover probability and mutation probability can optimize the search space uniformly, in the actual optimization process, the requirements of each stage will be different. For example, assuming P c is the crossover probability, P m is the mutation probability. In the early and late stages of the algorithm, according to the size of individual differences, P c and P m The choices are different. When the individual differences are large, a larger P should be taken. c and a smaller P m value to speed up the convergence of the algorithm; when the individual differences are small, a smaller P should be taken c and a larger P m Enhance the diversity of the group. In addition, according to the quality of individuals, P c and P m The choice of is also different. When the individual quality is good, in order to reduce the probability of destroying excellent individuals, P c , P m should choose a smaller value; when the individual quality is poor, in order to improve the individual quality, P c , P m A larger value should be selected.

[0168] Therefore, the present invention can adopt P with adaptive ability c and P m , for example, P c and P m They can be expressed as:

[0169]

[0170] Among them, P c max is the maximum crossover probability; ΔP c is the change in crossover probability; P m max is the maximum mutation probability; ΔP m is the change in mutation probability; n is the population size.

[0171] Furthermore, after the initial population has been subjected to selection, crossover and mutation processing in sequence, the selection, crossover and mutation processing steps may be repeated in sequence on the obtained new population for iteration. Specifically, after the number of iterations reaches a set number of iterations (for example, 100 times), it may be considered that the iteration end condition has been met, thereby obtaining the optimal individual.

[0172] Step 103, obtaining the speed error and error change rate of the brushless DC motor through the fuzzy controller, and determining a proportional parameter correction value and an integral parameter correction value according to the membership function and fuzzy rule in the optimal individual, the speed error and the error change rate;

[0173] In practical applications, the membership function and fuzzy rules of the fuzzy controller can be optimized through genetic algorithms to determine the optimal membership function and fuzzy rule combination, and the fuzzy controller can perform fuzzification, fuzzy reasoning and clarification on the error between the input target speed and the actual speed and the error change rate e and ec according to the optimal membership function and fuzzy rules, so as to output the correction value ΔK for correcting the proportional parameter and integral parameter of the PI controller. P and ΔK i .

[0174] Step 104: obtaining the proportional parameter correction value and the integral parameter correction value through a proportional-integral controller, and controlling the brushless DC motor according to the proportional parameter correction value and the integral parameter correction value.

[0175] In a specific implementation, ΔK P and ΔK i The initial proportional parameter coefficient K of the PI controller is P0 and the initial integration parameter coefficient K i0 The proportional parameter K used to control the speed of the brushless DC motor is output by the proportional integral controller in an accumulated manner. P With the integration parameter K i , thereby controlling the brushless DC motor.

[0176] In some embodiments of the present invention, obtaining the proportional parameter correction value and the integral parameter correction value through the proportional-integral controller, and controlling the brushless DC motor according to the proportional parameter correction value and the integral parameter correction value, includes:

[0177] Obtaining an initial value of a proportional parameter and an initial value of an integral parameter, and determining a target proportional parameter and a target integral parameter according to the initial value of the proportional parameter, the initial value of the integral parameter, the corrected value of the proportional parameter and the corrected value of the integral parameter;

[0178] The brushless DC motor is controlled according to the target proportional parameter and the target integral parameter.

[0179] In the specific implementation, the membership function and fuzzy rules of the fuzzy controller can be optimized through genetic algorithm to determine the optimal membership function and fuzzy rule combination, and the fuzzy controller can perform fuzzification, fuzzy reasoning and clarification on the error between the input target speed and the actual speed and the error change rate e and ec according to the optimal membership function and fuzzy rule, so as to output the correction value ΔK for correcting the proportional parameter and integral parameter of the PI controller. P and ΔK i , and can be obtained by changing ΔK P and ΔK i The initial proportional parameter coefficient K of the PI controller is P0 and the initial integration parameter coefficient K i0 The output is the proportional parameter K used to control the speed of the brushless DC motor. P With the integration parameter K i ;

[0180] For example, the proportional parameter K used to control the speed of the brushless DC motor can be calculated by the following formula P With the integration parameter K i :

[0181]

[0182] Among them, K P is the proportional parameter, ΔK P is the proportional parameter correction value, K P0 is the initial proportional parameter coefficient, K i is the integration parameter, ΔK i is the correction value of the integral parameter, K i0 is the initial integration parameter coefficient.

[0183] The following combination Figure 4 The embodiments of the present invention are exemplarily described as follows:

[0184] Depend on Figure 4 It can be seen from the content that the overall process of the genetic algorithm optimization process of the present invention can be summarized as follows:

[0185] Step 1, encode the membership function and fuzzy rules and generate the initial group;

[0186] Step 2, calculate the fitness of each individual in the initial population;

[0187] Step 3, perform selection operation on the initial population to generate a sample set of parent individuals;

[0188] Step 4, performing a crossover operation on the parent generation individual sample set to generate a child generation individual sample set;

[0189] Step 5, performing mutation processing on the parent generation individual sample set and the offspring generation individual sample set to generate a second population;

[0190] Step 6, determine whether the second population meets the termination condition. If the termination condition is met, the genetic algorithm optimization process is terminated and the optimal individual is determined. If the termination condition is not met, steps 2 to 5 are re-executed on the second population until a population that meets the termination condition is generated.

[0191] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0192] Reference Figure 5 , shows a schematic structural diagram of a brushless DC motor control device provided by some embodiments of the present invention, which may specifically include the following modules:

[0193] The first group determination module 501 is used to obtain the membership function and fuzzy rules of the fuzzy controller, and determine the first group according to the membership function and the fuzzy rules; wherein the individuals in the first group are a combination of at least one of the membership functions and at least one of the fuzzy rules;

[0194] The optimal individual determination module 502 is used to perform a genetic algorithm optimization process on the first population to determine the optimal individual;

[0195] A correction value determination module 503 is used to obtain the speed error and the error change rate of the brushless DC motor through the fuzzy controller, and determine the proportional parameter correction value and the integral parameter correction value according to the membership function and the fuzzy rule in the optimal individual, the speed error and the error change rate;

[0196] The brushless DC motor control module 504 is used to obtain the proportional parameter correction value and the integral parameter correction value through a proportional-integral controller, and control the brushless DC motor according to the proportional parameter correction value and the integral parameter correction value.

[0197] In some embodiments of the present invention, the first group determination module 501 includes:

[0198] The encoding processing submodule is used to perform encoding processing on the membership function and the fuzzy rule respectively to generate encoding results, and determine the first group of the membership function and the fuzzy rule according to the encoding results.

[0199] In some embodiments of the present invention, the optimal individual determination module 502 includes:

[0200] An actual speed error value acquisition submodule is used to acquire an actual speed error value corresponding to the individual, and determine an objective function according to the actual speed error value;

[0201] The fitness function determination submodule is used to determine the fitness function of the individual according to the objective function, and perform genetic algorithm optimization processing on the first population according to the fitness function.

[0202] In some embodiments of the present invention, the fitness function determination submodule includes:

[0203] A fitness value acquisition unit, used to determine the average fitness value of the first group and the fitness value of the individual according to the fitness function;

[0204] A second population generating unit, configured to perform selection processing, crossover processing and mutation processing on the first population in sequence according to the average fitness value of the first population and the fitness value of the individual, to generate a second population;

[0205] a preset end condition judgment unit, configured to judge whether the second group satisfies a preset end condition, and if the second group satisfies the preset end condition, determine an individual in the second group as the optimal individual;

[0206] The step re-execution unit is used for, if the second population does not meet the preset end condition, re-execute the steps of sequentially performing the selection process, the crossover process and the mutation process on the second population until the population meeting the preset end condition is generated.

[0207] In some embodiments of the present invention, the second population generating unit includes:

[0208] A first parent individual determining subunit, configured to determine the individual whose fitness value is greater than the average fitness value, and determine the individual whose fitness value is greater than the average fitness value as a first parent individual;

[0209] A second parent individual determining subunit, configured to determine the individual whose fitness value is less than the average fitness value, and generate a second parent individual according to the individual whose fitness value is less than the average fitness value;

[0210] A parent individual sample set generating subunit, configured to generate a parent individual sample set according to the first parent individual and the second parent individual;

[0211] The offspring individual sample set generation subunit is used to determine the crossover probability, and perform the crossover process on the parent individual sample set according to the crossover probability to generate the individual sample set after the crossover process;

[0212] The second population generating subunit is used to determine the mutation probability, and perform the mutation processing on the individual sample set after the crossover processing according to the mutation probability to generate the second population.

[0213] In some embodiments of the present invention, the brushless DC motor control module 504 includes:

[0214] A target proportional parameter and target integral parameter determination submodule, used to obtain a proportional parameter initial value and an integral parameter initial value, and determine a target proportional parameter and a target integral parameter according to the proportional parameter initial value, the integral parameter initial value, the proportional parameter correction value and the integral parameter correction value;

[0215] The brushless DC motor control submodule is used to control the brushless DC motor according to the target proportional parameter and the target integral parameter.

[0216] Some embodiments of the present invention further provide an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the control method of the brushless DC motor as described above is implemented.

[0217] Some embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the control method of the brushless DC motor as described above is implemented.

[0218] Some embodiments of the present invention further provide a computer program product, including a computer program, which implements the above brushless DC motor control method when executed by a processor.

[0219] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0220] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0221] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0222] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0223] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0224] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0225] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0226] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.

[0227] The control method, device, equipment and medium of a brushless DC motor provided are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for controlling a brushless DC motor, characterized in that: The method comprises: Obtaining a membership function and a fuzzy rule of a fuzzy controller, and determining a first group according to the membership function and the fuzzy rule; wherein an individual in the first group is a combination of at least one of the membership functions and at least one of the fuzzy rules; Performing a genetic algorithm optimization process on the first population to determine the best individual; The speed error and the error change rate of the brushless DC motor are obtained by the fuzzy controller, and a proportional parameter correction value and an integral parameter correction value are determined according to the membership function and the fuzzy rule in the optimal individual, the speed error and the error change rate; The proportional parameter correction value and the integral parameter correction value are obtained through a proportional-integral controller, and the brushless DC motor is controlled according to the proportional parameter correction value and the integral parameter correction value.

2. The method according to claim 1, characterized in that The step of determining the first group according to the membership function and the fuzzy rule includes: The membership function and the fuzzy rule are respectively coded to generate coding results, and the first group of the membership function and the fuzzy rule is determined according to the coding results.

3. The method according to claim 1 or 2, characterized in that: The performing of a genetic algorithm optimization process on the first population to determine the best individual includes: Obtaining an actual speed error value corresponding to the individual, and determining an objective function according to the actual speed error value; According to the objective function, the fitness function of the individual is determined, and according to the fitness function, a genetic algorithm optimization process is performed on the first population.

4. The method according to claim 3, characterized in that: The performing a genetic algorithm optimization process on the first population according to the fitness function includes: Determining an average fitness value of the first group and a fitness value of the individual according to the fitness function; performing selection processing, crossover processing and mutation processing on the first population in sequence according to the average fitness value of the first population and the fitness value of the individual to generate a second population; determining whether the second group satisfies a preset termination condition, and if the second group satisfies the preset termination condition, determining an individual in the second group as the optimal individual; If the second population does not meet the preset end condition, the steps of sequentially performing the selection process, the crossover process and the mutation process are performed again on the second population until the population meeting the preset end condition is generated.

5. The method according to claim 4, characterized in that The step of sequentially performing selection processing, crossover processing and mutation processing on the first population according to the average fitness value of the first population and the fitness value of the individual to generate a second population includes: Determine the individual whose fitness value is greater than the average fitness value, and determine the individual whose fitness value is greater than the average fitness value as the first parent individual; Determine the individual whose fitness value is less than the average fitness value, and generate a second parent individual according to the individual whose fitness value is less than the average fitness value; Generate a parent individual sample set according to the first parent individual and the second parent individual; Determine a crossover probability, and perform the crossover process on the parent generation individual sample set according to the crossover probability to generate an individual sample set after the crossover process; The mutation probability is determined, and according to the mutation probability, the mutation process is performed on the individual sample set after the crossover process to generate the second population.

6. The method according to claim 5, characterized in that The crossover probability is confirmed according to a preset maximum crossover probability, a preset crossover probability change, and the size of the group, and the mutation probability is confirmed according to a preset maximum mutation probability, a preset mutation probability change, and the size of the group.

7. The method according to claim 1 or 2, characterized in that: The method of obtaining the proportional parameter correction value and the integral parameter correction value through the proportional-integral controller, and controlling the brushless DC motor according to the proportional parameter correction value and the integral parameter correction value, comprises: Obtaining an initial value of a proportional parameter and an initial value of an integral parameter, and determining a target proportional parameter and a target integral parameter according to the initial value of the proportional parameter, the initial value of the integral parameter, the corrected value of the proportional parameter and the corrected value of the integral parameter; The brushless DC motor is controlled according to the target proportional parameter and the target integral parameter.

8. A control device for a brushless DC motor, characterized in that: The device comprises: A first group determination module is used to obtain a membership function and a fuzzy rule of a fuzzy controller, and determine a first group according to the membership function and the fuzzy rule; wherein an individual in the first group is a combination of at least one membership function and at least one fuzzy rule; An optimal individual determination module, used for performing a genetic algorithm optimization process on the first population to determine the optimal individual; A correction value determination module, used for obtaining the speed error and the error change rate of the brushless DC motor through the fuzzy controller, and determining a proportional parameter correction value and an integral parameter correction value according to the membership function and the fuzzy rule in the optimal individual, the speed error and the error change rate; The brushless DC motor control module is used to obtain the proportional parameter correction value and the integral parameter correction value through a proportional-integral controller, and control the brushless DC motor according to the proportional parameter correction value and the integral parameter correction value.

9. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the control method of the brushless DC motor according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the control method of the brushless DC motor according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and system for fuzzy control over genetic algorithm optimization of shielded gate portal crane controller

    CN103760766A

  • Brushless DC motor fuzzy control system based on genetic algorithm and control method thereof

    CN104155877A

  • Hybrid electric vehicle energy management method based on self-adaptive fuzzy control

    CN112373458A

  • Optimization method for fuzzy control system of reaction kettle based on genetic algorithm

    CN115755589A

  • Rotating speed control method for brushless direct current motor of electric automobile

    CN116232132A