CN104155877A - Brushless DC motor fuzzy control system based on genetic algorithm and control method thereof - Google Patents

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

Info

Publication number
CN104155877A
CN104155877A CN201410410227.3A CN201410410227A CN104155877A CN 104155877 A CN104155877 A CN 104155877A CN 201410410227 A CN201410410227 A CN 201410410227A CN 104155877 A CN104155877 A CN 104155877A
Authority
CN
China
Prior art keywords
fuzzy
motor
error
genetic algorithm
avg
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410410227.3A
Other languages
Chinese (zh)
Inventor
冯友兵
王黎明
窦金生
赵强
马建荣
杨官校
陈瑞
秦海亭
刘国固
张之亮
宋杰
王学楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu University of Science and Technology
Original Assignee
Jiangsu University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu University of Science and Technology filed Critical Jiangsu University of Science and Technology
Priority to CN201410410227.3A priority Critical patent/CN104155877A/en
Publication of CN104155877A publication Critical patent/CN104155877A/en
Pending legal-status Critical Current

Links

Landscapes

  • Feedback Control In General (AREA)

Abstract

The present invention discloses a brushless DC motor fuzzy control system based on a genetic algorithm and a control method thereof. The control system comprises a drive system used for driving a brushless DC motor, a speed observer used for collecting the rotation speed of the brushless DC motor, a rotation speed reference model which provides the reference data of a motor rotation speed and compares the reference data of a motor rotation speed with the collected motor rotation speed so as to obtain a rotation speed error and an error change rate, a parameter fuzzification module which receives the rotation speed error and the error change rate, carries out quantification on the rotation speed error and the error change rate, and maps the rotation speed error and the error change rate to a fuzzy set discourse domain, a genetic algorithm optimization module which uses the genetic algorithm to carry out online optimization on a module control rule, adjusts related parameters in the fuzzy set discourse domain and makes a fuzzy decision, and a defuzzification module which maps the output amount of the fuzzy decision to a basic discourse domain. According to the system and the method, the genetic algorithm is used to carry out online adjustment of the parameter of the fuzzy controller, and the controller can have good static and dynamic performance in different operation environments.

Description

Fuzzy Control System of Brushless DC Motor based on genetic algorithm and control method
Technical field
The invention belongs to control or the adjusting field of motor, especially a kind of Fuzzy Control System of Brushless DC Motor and control method based on genetic algorithm.
Background technology
Brshless DC motor (brushless DC motor) has obtained increasingly extensive application in industrial circle, and its control system is typical non-linear, Multivariable Coupling system.Traditional pid control algorithm is difficult for meeting the control requirement of high-precision servo control system, is difficult to realize the high precision operation of motor.
Nonlinear control method based on modern control theory and Intelligent Control Theory for realize controlled system high-quality dynamically and steady-state behaviour lay a good foundation, in brshless DC motor control, be fully utilized.The multiple Advanced Control Strategies such as fuzzy control, ANN (Artificial Neural Network) Control, change structure control, robust control, parameter adaptive control have been used to the control of brshless DC motor.
Although many adaptive control algorithms are widely used in the control of brshless DC motor, based on linear model, there is certain deficiency to the control of this nonlinear model of brshless DC motor for the estimation of motor status in these algorithms.Nerual network technique has obtained good effect to the control of this nonlinear system of brshless DC motor, but control algolithm relative complex.Fuzzy control technology is widely used in Electric Machine Control, is a kind of intelligent control technology that imitates human thinking.But in actual applications, for the nonlinear system of time-varying parameter, the control law of its Fuzzy control system is difficult to determine, even if obtained fuzzy control rule under certain condition, along with the variation of system, fuzzy control rule is originally probably not ideal enough.
There is certain deficiency for the Control of Nonlinear Systems of this time-varying parameter of brshless DC motor in the existing method that combines to control brshless DC motor that fuzzy control and PID are controlled: fuzzy is controlled the control law relying on and existed certain deficiency, control system parameter lacks self-adjusting ability, and the aspects such as the optimization of Fuzzy PID Control Rules and Fuzzy control system parameter on-line control are Shortcomings also.
Summary of the invention
Goal of the invention a: object is to provide a kind of Fuzzy Control System of Brushless DC Motor based on genetic algorithm, to solve the problems referred to above of prior art, realize the on-line control of Fuzzy control system parameter, overcome the weakness of traditional fuzzy control system on-line control poor effect, improve the performance of control system.Further object is to provide a kind of control method.
Technical scheme: a kind of Fuzzy Control System of Brushless DC Motor based on genetic algorithm, it comprises limiting the electric current loop of maximum current and in order to the speed closed loop of brshless DC motor rotating speed.
In a further embodiment, be further:
Drive system, for driving brshless DC motor;
Speed observer, for gathering brshless DC motor rotating speed;
Rotating speed reference model, provides the reference data of motor speed, and compares with the motor speed collecting
Obtain speed error and error rate;
Parameter fuzzy module, receives described speed error and error rate, and quantizes, and is mapped to fuzzy set domain,
Genetic algorithm optimization module, adopts genetic algorithm to be optimized module controls rule, and regulates fuzzy theory
Correlation parameter in territory, makes fuzzy decision;
Reverse gelatinization module, is mapped to basic domain by the output quantity of fuzzy decision;
And gather the electric current of brshless DC motor and regulate the electric current loop of power of motor.
Described genetic algorithm optimization module is further used for:
Determine decision variable and constraint condition thereof and coding, coding/decoding method:
In parameter optimization, with reference value K e0, K ec0, K u0and fine setting parameter K 1, K 2, K 3for decision variable, the requirement of the constraint condition of decision variable and system stability performance index is reference, if require systematic steady state error to be less than δ, generally has:
k e ≥ 1 2 δ
Set up Optimized model and definite individual evaluation method:
With system maximum overshoot M padjustment time t swith steady-state error e srfor basis, adopt weight coefficient combined method, structure fitness function is:
f=αexp[-(M p/M p0) 2]+βexp[-(t s/t s0) 2]+γexp[-(e sr/e sr0) 2]
In formula, M p0, t s0with, e sr0be respectively the response index expectation value of system; α, beta, gamma is weight coefficient, M p0expectation value for system maximum overshoot; e sr0expectation value for systematic steady state error; t s0for the system expectation value of adjustment time; Alpha+beta+γ=1;
Carry out genetic manipulation: design 3 genetic operators, determine the operational factor in genetic algorithm:
P si = f i / Σ i = 1 n f i
In formula, f ibe i individual fitness, P sibe i individual selecteed probability, n is Population Size;
Determining of operational factor, the definite parameter of genetic algorithm kind needs mainly contains group size M, stops algebraically T, crossover probability P cwith variation probability P m, computing formula is respectively:
p c = p c 1 - ( p c 1 - p c 2 ) ( f &prime; - f avg ) f max - f avg f &prime; &GreaterEqual; f avg p c 1 f &prime; < f avg
p m = p m 1 - ( p m 1 - p m 2 ) ( f max - f ) f max - f avg f &prime; &GreaterEqual; f avg p m 1 f &prime; < f avg
In formula, f maxfor fitness maximum in colony, f avgthe average fitness of Er Weimeidai colony, f' is larger fitness in 2 individualities, f is the individual fitness of variation, p m1for the variation probability of minimum fitness individuality, p m2the variation probability of maximum adaptation degree individuality, p c1for being the crossover probability of minimum fitness individuality, p c2crossover probability for maximum adaptation degree individuality.
A brshless DC motor fuzzy control method based on genetic algorithm, is characterized in that, comprises the steps:
Step 1: the input of calculating fuzzy controller: comprise that speed error e and speed error change ec;
Step 2: use respectively quantizing factor k eand k ecvalue to speed error e and speed error variation ec quantizes, and is mapped to fuzzy set domain;
Step 3: select Triangle-Profile function as the member function of fuzzy controller;
Step 4: formulate fuzzy control decision table;
Step 5: utilize genetic algorithm to be optimized the fuzzy control rule in fuzzy control decision table, draw the fuzzy decision table of optimizing;
Step 6: the optimizing of the Fuzzy Controller Parameters based on genetic algorithm and online adjustment;
Step 7: the output quantity scale factor K of fuzzy decision ufrom fuzzy domain, be mapped to basic domain, act on control system system and control motor speed.
In a further embodiment, comprise the steps:
Step 1: gather the rotating speed of motor, and with speed reference model in data comparison, obtain velocity deviation and error rate;
Step 2: judgement velocity deviation is in the first state or the second state; If in the first state, execution step 3, if in the second state, execution step 4;
Step 3: definition Dynamic Signal: the velocity deviation of Fuzzy control system and error change are respectively speed error e and error change ec in the speed of brshless DC motor is controlled;
e ( k ) = n * ( k ) - n ( k ) ec ( k ) = e ( k ) - e ( k - 1 )
In formula, e (k) is relatively obtained by the tach signal of reference model and actual measurement; Ec (k) is the poor of continuous two sampling period e values; n *(k) be the k time sampling period reference model response; N (k) is the rotating speed response of the k time sampling period motor;
Use quantizing factor k eand k ecthe actual value that quantizes velocity deviation and error rate thereof, is mapped to fuzzy set domain X={-m ,-m+1 ..., 0 ..., m-1, m}, need to be scale factor k uthe basic domain that carrys out the fuzzy domain of variable clump of output to be transformed into actual output, enters step 5;
Step 4: determine decision variable and constraint condition thereof and coding, coding/decoding method:
In parameter optimization, with reference value K e0, K ec0, K u0and fine setting parameter K 1, K 2, K 3for decision variable, the requirement of the constraint condition of decision variable and system stability performance index is reference, if require systematic steady state error to be less than δ, generally has:
k e &GreaterEqual; 1 2 &delta;
Set up Optimized model and definite individual evaluation method:
With system maximum overshoot M padjustment time t swith steady-state error e srfor basis, adopt weight coefficient combined method, structure fitness function is:
f=αexp[-(M p/M p0) 2]+βexp[-(t s/t s0) 2]+γexp[-(e sr/e sr0) 2]
In formula, M p0, t s0with, e sr0be respectively the response index expectation value of system; α, beta, gamma is weight coefficient, M p0expectation value for system maximum overshoot; e sr0expectation value for systematic steady state error; t s0for the system expectation value of adjustment time; Alpha+beta+γ=1;
Carry out genetic manipulation: design 3 genetic operators, determine the operational factor in genetic algorithm:
P si = f i / &Sigma; i = 1 n f i
In formula, f ibe i individual fitness, P sibe i individual selecteed probability, n is Population Size;
Determining of operational factor, the definite parameter of genetic algorithm kind needs mainly contains group size M, stops algebraically T, crossover probability P cwith variation probability P m, computing formula is respectively:
p c = p c 1 - ( p c 1 - p c 2 ) ( f &prime; - f avg ) f max - f avg f &prime; &GreaterEqual; f avg p c 1 f &prime; < f avg
p m = p m 1 - ( p m 1 - p m 2 ) ( f max - f ) f max - f avg f &prime; &GreaterEqual; f avg p m 1 f &prime; < f avg
In formula, f maxfor fitness maximum in colony, f avgthe average fitness of Er Weimeidai colony, f' is larger fitness in 2 individualities, f is the individual fitness of variation, p m1for the variation probability of minimum fitness individuality, p m2the variation probability of maximum adaptation degree individuality, p c1for being the crossover probability of minimum fitness individuality, p c2crossover probability for maximum adaptation degree individuality.
Step 5: output control signals to drive system, adjust the state of motor.
Beneficial effect: the present invention can make motor speed response accelerate, overshoot diminishes and the fluctuation of speed reduces, and makes motor have good static properties; Control method of the present invention can make controller in the situation that of load changing, the genetic algorithm adopting can be carried out online adaptive adjusting to the parameter of fuzzy controller, the antijamming capability of raising system, make motor can both have good dynamic property under different running environment, there is stronger robustness.
Accompanying drawing explanation
Fig. 1 is systematic schematic diagram of the present invention.
Fig. 2 is the membership function table of obfuscation of the present invention and reverse gelatinization.
Fig. 3 is fuzzy algorithm process flow diagram of the present invention.
Embodiment
As shown in Figure 1, control system adopts two closed-loop controls.Interior ring is electric current loop, and its Main Function is restriction maximum current, makes system have enough large acceleration torque, and can guarantee the stable operation of system, outer shroud is speed closed loop, 101 are connected to drive direct current generator with brshless DC motor 107, brshless DC motor 107 is connected with speed observer 103, speed observer is surveyed 103 and is obtained brshless DC motor rotating speed, rotating speed reference model 101 is connected with speed observer 103 relatively, relatively afterwards the speed error e and the error change ec that obtain, speed observer 103 is connected with parameter fuzzy module 106, the speed error e that relatively, handle obtains and error change ec are as error originated from input e and the error change ec of fuzzy controller, actual value to error e and variation ec thereof is used respectively quantizing factor k e109 and k ec110 quantize, be mapped to fuzzy set domain, obfuscation module 106 is connected with genetic algorithm optimization 105, then by genetic algorithm, fuzzy control rule is optimized to 105 also by genetic algorithm on-line control controller correlation parameter, genetic algorithm optimization 105 is connected with reverse gelatinization module 104, the output quantity of fuzzy decision scale factor k u108 are mapped to basic domain from fuzzy domain, finally act on control system, to obtain good stability and higher control accuracy.
Its Main Function of outer shroud speed closed loop is ability and the inhibition fluctuation of speed of enhancing system anti-disturbance, and can guarantee static system and the performance of dynamically following the tracks of, and is directly connected to the stable of servo-drive system and high-performance operation.The present invention adopts " bimodulus " fuzzy controller, when velocity deviation is larger, adopts " coarse adjustment " pattern to reach the requirement of servo-drive system rapidity, adopts " fine tuning " pattern to reach the requirement of accuracy when rotating speed deviation is less.Adopt genetic algorithm to carry out on-line control to the parameter of fuzzy controller simultaneously, make controller under different running environment, can both have good Static and dynamic performance.
Genetic-fuzzy adaptive algorithm of the present invention below:
Step 1 301: calculate the input of fuzzy controller through formula 201: speed error e and speed error change ec.
Step 2 302: the value to speed error e and speed error variation ec is used respectively quantizing factor k eand k ecquantize, and be mapped to fuzzy set domain.
Step 3 303: select the Triangle-Profile function of Fig. 2 as the member function of fuzzy controller.
Step 4 304: the control law of concluding and sum up fuzzy controller according to expertise draws fuzzy control decision table.
Step 5 305: utilize genetic algorithm to be optimized fuzzy control rule, draw the fuzzy decision table of optimizing.
Step 6 306: the optimizing of the Fuzzy Controller Parameters based on genetic algorithm and online adjustment.
Step 7 307: the output quantity scale factor K of fuzzy decision ufrom fuzzy domain, be mapped to basic domain, act on control system system and control motor speed.
Step 1 301: calculate the input of fuzzy controller through formula 201: speed error e and speed error change ec.
According to the actual needs of brushless DC motor control system, chosen two-dimensional fuzzy controller herein, choose the speed error e of motor and rate of change ec thereof as the input of two-dimensional fuzzy controller simultaneously, output through obfuscation and fuzzy decision generation one dimension, by reverse gelatinization output control signal, the rotating speed of brshless DC motor is regulated, its design is as follows again:
Dynamic Signal is defined: the speed tracking error e of fuzzy controller and error change ec are respectively speed error e and error change ec in the speed of brshless DC motor is controlled.It is defined as
e ( k ) = n * ( k ) - n ( k ) ec ( k ) = e ( k ) - e ( k - 1 ) - - - 201
In formula, e (k) is relatively obtained by the tach signal of reference model and actual measurement; Ec (k) is the poor of continuous two sampling period e values; n *(k) be the k time sampling period reference model response; N (k) is the rotating speed response of the k time sampling period motor.
Step 2 302: the value to speed error e and speed error variation ec is used respectively quantizing factor k eand k ecquantize, and be mapped to fuzzy set domain.
In order to increase the sensitivity of control and to be convenient to apply fuzzy rule, the actual value of error e and variation ec thereof is used respectively to quantizing factor k eand k ecquantize, be mapped to fuzzy set domain X={-m ,-m+1 ..., 0 ..., m-1, m}.Increase along with m, the control effect of system can be improved, when but m is excessive, to fuzzy control rule, bring difficulty again, generally speaking, it is proper that m is taken as 6 or 7 effects, and in the present invention, fuzzy domain is divided into 7 linguistic variable values such as negative large NB, negative middle NB, negative little NS, zero ZE, just little PS, center PM and honest PB.The output of fuzzy decision can not directly be applied in control system, need to be scale factor k uthe basic domain that carrys out the fuzzy domain of variable clump of output to be transformed into actual output, finally acts on control system.
Step 3 303: select the Triangle-Profile function of Fig. 2 as the member function of fuzzy controller.
In the present invention, selecting Triangle-Profile function is the member function of fuzzy controller, as shown in Figure 2.
Step 4 304: the control law of concluding and sum up fuzzy controller according to expertise draws fuzzy control decision table.
According to expertise, draw the fuzzy control decision table of " IF-THEN " form, control law can be expressed by form below:
If e is NB and e c is PM then U is PM,
If e is PM and e c is NB then U is PS。
Step 5 305: utilize genetic algorithm to be optimized fuzzy control rule, draw the fuzzy decision table of optimizing.
According to the feature of brshless DC motor self, the fuzzy decision that traditional empirical method obtains is relatively difficult to ensure that card all reaches good control effect under different duties, so the present invention is optimized the control law under motor different conditions by genetic algorithm, to obtain controlling preferably effect.The present invention adopts genetic algorithm to be optimized fuzzy control rule, obtains good stability and higher control accuracy.Coded system during the present invention's application genetic algorithm optimization fuzzy control rule: by fuzzy decision rule of 10 binary code representations, first is zone bit, is used for representing whether this rule is used, there is this rule in 1 representative, and this rule is abandoned in O representative; 2 one 4 bit codes, 5 one 7 bit codes, 8 one 10 bit codes are Representative errors e, error change e respectively c, decision content FD, 3 variablees are all to represent respectively NB, NM, NS, ZE, PS, PM, PB with 001,010,011,100,101,110,111.
Table 1 has provided the fuzzy control rule after genetic algorithm optimization.Through Genetic Algorithm Evolution, draw the optimum code under this state, bad control law, through Genetic Algorithm Evolution, is optimized to good rule.Process relative complex due to Genetic algorithms optimization based fuzzy logic controller control law, in this control system running up of brshless DC motor, even if use digital signal processor (DSP) to be at a high speed also difficult to meet the requirement of system rapidity and real-time, therefore will the optimization of fuzzy control rule be carried out under off-line state, fuzzy control rule after optimizing is written in DSP, makes system there is higher feasibility.
Table 1
Step 6 306: the optimizing of the Fuzzy Controller Parameters based on genetic algorithm and online adjustment.
1, the performance of fuzzy controller determines the performance of Fuzzy control system, and the performance of fuzzy controller depends on fuzzy linguistic rules and fuzzy reasoning.After system performance changes, for making Fuzzy control system there is good dynamic and static character, should constantly adjust the operational factor of fuzzy controller; The situation that is difficult to be applied to different control objects for this fuzzy controller, the present invention has designed the adjustable fuzzy controller of weight coefficient.
The present invention is transformed into corresponding universe of fuzzy sets by input variable from basic domain, and input variable is multiplied by the corresponding factor, thereby draws error quantization factor K ewith error rate quantizing factor K ec.In addition, the controlled quentity controlled variable that each sampling provides through fuzzy controller, directly control object, also must be transformed in the receptible basic domain of control object institute, thereby be drawn scale factor K u.
About operational factor K e, K ec, K uimpact on system responses is as follows:
(1) K elarger, response curve ascending velocity is faster; K eexcessive, system produces larger overshoot, and the adjusting time is increased, and there will be oscillatory occurences when serious; K etoo small, speed of convergence is excessively slow; K eincrease, the static difference of system reduces.
(2) K eclarger, the response of system is more blunt, K ecless, system responses is sensitiveer, and climbing speed is faster, but can make system produce vibration when serious; K ecincrease, the static difference of system will reduce.
(3) K ube equivalent to the proportional gain in classical control system, generally, K ularger, the speed of response is faster; K uexcessive, there is the serious situation of vibrating of response; K utoo small, rate of convergence is too slow.In these three factors, K uvariation having the greatest impact to system responses.
2, basis analysis above, is subject to the restriction of system stability, and the quantizing factor of fuzzy controller can not be too large, so max quantization error e=e maxtime maximum, the steady-state deviation being caused by quantization error has limited the raising of system progress, so the present invention has designed the variable element bimodulus fuzzy controller based on experience, it is controlled change-over switch and exists place, its control thought shows following 3 points:
(1) exist time, the requirement that focuses on meeting rapidity of control, adopts " coarse adjustment " pattern; Meeting under the prerequisite of system stability, increase as far as possible k e, k uto meet the requirement of rapidity, k eccan select littlely.
(2) exist time, the emphasis of control is transferred to the requirement that meets accuracy, adopts " fine tuning " pattern; The ratio of the fuzzy controller of " fine tuning " pattern and quantizing factor k e1, k ec1, k u1represent, tentatively select k e1=m*k e, k ec1=m*k ec,, make " coarse adjustment " identical with the universe of fuzzy sets of " fine tuning ", quantization error will reduce like this.
(3) according to the analysis in step 6 306, when fuzzy controller is determined at control law, quantization parameter K e, K ec, K uthe control performance of decision systems, in the fuzzy controller of " coarse adjustment " and " fine tuning ", adopts band to adjust the fuzzy control rule of the factor, by two groups of different quantization parameters, meets requirement separately.
These three parameters are regulated, can accelerate response speed, reduce overshoot, and improve the Static and dynamic performance of fuzzy controller.In system operational process, adopt the fuzzy controller of preset parameter can not obtain good dynamic property and stable performance, therefore, according to the control process mode of system, these parameters are carried out to on-line automatic adjustment.Adjustment to controller parameter, the system dynamic error e of take is variable, to k e, k ecand k uonline adjustment, its self-adjusting formula is:
K e = K e 0 + K 1 * e | e | &le; e max 2 K e 0 + K 1 * e max 2 | e | > e max 2 - - - 202
K ec = K ec 0 + K 2 * e | e | &le; e max 2 K ec 0 + K 2 * e max 2 | e | > e max 2 - - - 203
K u = K u 0 + K 3 * e | e | &le; e max 2 K u 0 + K 3 * e max 2 | e | > e max 2 - - - 204
In formula, K e0, K ec0, K u0for reference value, K 1, K 2, K 3for fine setting parameter, e maxpositive maximal value for error domain.
Increase K ebe equivalent to dwindle the basic domain of error, increased the control action of error variance.From formula 202, when time, along with the increase of error, K eincrease, the control action of error is increased.For K ec, when error reduces gradually, for reducing overshoot, should increase the control action of error change, require exactly K ecincrease gradually.For K u, from formula 204, K ualong with the increase of error, increase, strengthen the control action to error, rate of convergence is accelerated.
3, use genetic algorithm to be optimized Fuzzy Controller Parameters, mainly carry out following steps:
(1) determine decision variable and constraint condition thereof and coding, coding/decoding method
In parameter optimization, with reference value K e0, K ec0, K u0and fine setting parameter K 1, K 2, K 3for decision variable.The requirement of the constraint condition of decision variable and system stability performance index is reference, if require systematic steady state error to be less than δ, generally has:
k e &GreaterEqual; 1 2 &delta; - - - 205
(2) set up Optimized model and definite individual evaluation method
A feature of genetic algorithm is that it uses the objective function of required problem to obtain next step search information, and using by evaluating individual fitness of objective function embodied.Therefore, fitness function is the Key Functions of genetic algorithm, and fitness function is generally converted by objective function.With system maximum overshoot M padjustment time t swith steady-state error e srfor basis, adopt weight coefficient combined method, structure fitness function is:
f=αexp[-(M p/M p0) 2]+βexp[-(t s/t s0) 2]+γexp[-(e sr/e sr0) 2] 206
In formula, M p0, t s0with, e sr0be respectively the response index expectation value of system; α, beta, gamma is weight coefficient, reflects the weight of each index in the overall performance of control system, requires alpha+beta+γ=1.This fitness function value is larger, and the performance of illustrative system is better.
(3) carry out genetic manipulation
Genetic manipulation is the control of simulation biological gene heredity, comprises the operational factor in 3 genetic operators of design (selection, crossover and mutation operator) and definite genetic algorithm.Select operator adoption rate to select operator here, each individual selecteed probability becomes ratio with its fitness, selects formula to be:
P si = f i / &Sigma; i = 1 n f i - - - 207
In formula 207, f ibe i individual fitness, P sibe i individual selecteed probability, n is Population Size.
Crossover operator is that genetic algorithm kind produces new individual main method, is used as main operators because having ability of searching optimum, adopts single-point crossover operator here; And mutation operator just produces new individual householder method, because only there is local search ability, be used as auxiliary operator, adopt basic bit mutation operator here.
About determining of operational factor, the definite parameter of genetic algorithm kind needs mainly contains group size M, stops algebraically T, crossover probability P cwith variation probability P m.The present invention gets M=60, T=160 here.The self-adapted genetic algorithm simultaneously proposing according to Srinvivas, these two parameters can change automatically, and its computing formula is respectively:
p c = p c 1 - ( p c 1 - p c 2 ) ( f &prime; - f avg ) f max - f avg f &prime; &GreaterEqual; f avg p c 1 f &prime; < f avg - - - 208
p m = p m 1 - ( p m 1 - p m 2 ) ( f max - f ) f max - f avg f &prime; &GreaterEqual; f avg p m 1 f &prime; < f avg - - - 209
In formula, f maxfor fitness maximum in colony, f avgthe average fitness of Er Weimeidai colony, f' is larger fitness in 2 individualities, f is the individual fitness of variation, p m1for the variation probability of minimum fitness individuality, p m2the variation probability of maximum adaptation degree individuality, p c1for being the crossover probability of minimum fitness individuality, p c2crossover probability for maximum adaptation degree individuality.
Crossover probability P cwith variation probability P mselection be the key that affects genetic algorithm behavior and performance, directly affect convergence;
P clarger, the speed of new individual difference is just faster, but cross conference, makes the structure of excellent individual destroyed very soon; P ctoo small, search procedure is slow, so that comes to a halt;
P mtoo small, be difficult for producing new individual configurations, P mexcessive, become pure random search.
In the present invention, get P c1=0.8, P c1=0.6, P m1=0.1, P m2=0.001.
Step 7: the output quantity scale factor K of fuzzy decision ufrom fuzzy domain, be mapped to basic domain, act on control system system and control motor speed.
More than describe the preferred embodiment of the present invention in detail; but the present invention is not limited to the detail in above-mentioned embodiment, within the scope of technical conceive of the present invention; can carry out multiple equivalents to technical scheme of the present invention, these equivalents all belong to protection scope of the present invention.
It should be noted that in addition each the concrete technical characterictic described in above-mentioned embodiment, in reconcilable situation, can combine by any suitable mode.For fear of unnecessary repetition, the present invention is to the explanation no longer separately of various possible array modes.
In addition, between various embodiment of the present invention, also can carry out combination in any, as long as it is without prejudice to thought of the present invention, it should be considered as content disclosed in this invention equally.

Claims (5)

1. the Fuzzy Control System of Brushless DC Motor based on genetic algorithm, is characterized in that, it comprises limiting the electric current loop of maximum current and in order to the speed closed loop of brshless DC motor rotating speed.
2. the Fuzzy Control System of Brushless DC Motor based on genetic algorithm as claimed in claim 1, is characterized in that: be further:
Drive system (102), for driving brshless DC motor (107);
Speed observer (103), for gathering brshless DC motor rotating speed;
Rotating speed reference model (101), provides the reference data of motor speed, and compare with the motor speed collecting acquisition speed error and error rate;
Parameter fuzzy module (106), receives described speed error and error rate, and quantizes, and is mapped to fuzzy set domain,
Genetic algorithm optimization module (105), adopts genetic algorithm to be optimized module controls rule, and regulates the correlation parameter in fuzzy domain, makes fuzzy decision;
Reverse gelatinization module (104), is mapped to basic domain by the output quantity of fuzzy decision;
And gather the electric current of brshless DC motor and regulate the electric current loop of power of motor.
3. the Fuzzy Control System of Brushless DC Motor based on genetic algorithm as claimed in claim 2, is characterized in that: described genetic algorithm optimization module (105) is further used for:
Determine decision variable and constraint condition thereof and coding, coding/decoding method:
In parameter optimization, with reference value K e0, K ec0, K u0and fine setting parameter K 1, K 2, K 3for decision variable, the requirement of the constraint condition of decision variable and system stability performance index is reference, if require systematic steady state error to be less than δ, generally has:
k e &GreaterEqual; 1 2 &delta;
Set up Optimized model and definite individual evaluation method:
With system maximum overshoot M padjustment time t swith steady-state error e srfor basis, adopt weight coefficient combined method, structure fitness function is:
f=αexp[-(M p/M p0) 2]+βexp[-(t s/t s0) 2]+γexp[-(e sr/e sr0) 2]
In formula, M p0, t s0with, e sr0be respectively the response index expectation value of system; α, beta, gamma is weight coefficient, M p0expectation value for system maximum overshoot; e sr0expectation value for systematic steady state error; t s0for the system expectation value of adjustment time; Alpha+beta+γ=1;
Carry out genetic manipulation: design 3 genetic operators, determine the operational factor in genetic algorithm:
P si = f i / &Sigma; i = 1 n f i
In formula, f ibe i individual fitness, P sibe i individual selecteed probability, n is Population Size;
Determining of operational factor, the definite parameter of genetic algorithm kind needs mainly contains group size M, stops algebraically T, crossover probability P cwith variation probability P m, computing formula is respectively:
p c = p c 1 - ( p c 1 - p c 2 ) ( f &prime; - f avg ) f max - f avg f &prime; &GreaterEqual; f avg p c 1 f &prime; < f avg
p m = p m 1 - ( p m 1 - p m 2 ) ( f max - f ) f max - f avg f &prime; &GreaterEqual; f avg p m 1 f &prime; < f avg
In formula, f maxfor fitness maximum in colony, f avgthe average fitness of Er Weimeidai colony, f' is larger fitness in 2 individualities, f is the individual fitness of variation, p m1for the variation probability of minimum fitness individuality, p m2the variation probability of maximum adaptation degree individuality, p c1for being the crossover probability of minimum fitness individuality, p c2crossover probability for maximum adaptation degree individuality.
4. the brshless DC motor fuzzy control method based on genetic algorithm, is characterized in that, comprises the steps:
Step 1: the input of calculating fuzzy controller: comprise that speed error e and speed error change ec;
Step 2: use respectively quantizing factor k eand k ecvalue to speed error e and speed error variation ec quantizes, and is mapped to fuzzy set domain;
Step 3: select Triangle-Profile function as the member function of fuzzy controller;
Step 4: formulate fuzzy control decision table;
Step 5: utilize genetic algorithm to be optimized the fuzzy control rule in fuzzy control decision table, draw the fuzzy decision table of optimizing;
Step 6: the optimizing of the Fuzzy Controller Parameters based on genetic algorithm and online adjustment;
Step 7: the output quantity scale factor K of fuzzy decision ufrom fuzzy domain, be mapped to basic domain, act on control system system and control motor speed.
5. the brshless DC motor fuzzy control method based on genetic algorithm as claimed in claim 4, is characterized in that, is further:
Step 1: gather the rotating speed of motor, and with speed reference model in data comparison, obtain velocity deviation and error rate;
Step 2: judgement velocity deviation is in the first state or the second state; If in the first state, execution step 3, if in the second state, execution step 4;
Step 3: definition Dynamic Signal: the velocity deviation of Fuzzy control system and error change are respectively speed error e and error change ec in the speed of brshless DC motor is controlled;
e ( k ) = n * ( k ) - n ( k ) ec ( k ) = e ( k ) - e ( k - 1 )
In formula, e (k) is relatively obtained by the tach signal of reference model and actual measurement; Ec (k) is the poor of continuous two sampling period e values; n *(k) be the k time sampling period reference model response; N (k) is the rotating speed response of the k time sampling period motor;
Use quantizing factor k eand k ecthe actual value that quantizes velocity deviation and error rate thereof, is mapped to fuzzy set domain X={-m ,-m+1 ..., 0 ..., m-1, m}, need to be scale factor k uthe basic domain that carrys out the fuzzy domain of variable clump of output to be transformed into actual output, enters step 5;
Step 4: determine decision variable and constraint condition thereof and coding, coding/decoding method:
In parameter optimization, with reference value K e0, K ec0, K u0and fine setting parameter K 1, K 2, K 3for decision variable, the requirement of the constraint condition of decision variable and system stability performance index is reference, if require systematic steady state error to be less than δ, generally has:
k e &GreaterEqual; 1 2 &delta;
Set up Optimized model and definite individual evaluation method:
With system maximum overshoot M padjustment time t swith steady-state error e srfor basis, adopt weight coefficient combined method, structure fitness function is:
f=αexp[-(M p/M p0) 2]+βexp[-(t s/t s0) 2]+γexp[-(e sr/e sr0) 2]
In formula, M p0, t s0with, e sr0be respectively the response index expectation value of system; α, beta, gamma is weight coefficient, alpha+beta+γ=1;
Carry out genetic manipulation: design 3 genetic operators, determine the operational factor in genetic algorithm:
P si = f i / &Sigma; i = 1 n f i
In formula, f ibe i individual fitness, P sibe i individual selecteed probability, n is Population Size;
Determining of operational factor, the definite parameter of genetic algorithm kind needs mainly contains group size M, stops algebraically T, crossover probability P cwith variation probability P m, computing formula is respectively:
p c = p c 1 - ( p c 1 - p c 2 ) ( f &prime; - f avg ) f max - f avg f &prime; &GreaterEqual; f avg p c 1 f &prime; < f avg
p m = p m 1 - ( p m 1 - p m 2 ) ( f max - f ) f max - f avg f &prime; &GreaterEqual; f avg p m 1 f &prime; < f avg
In formula, f maxfor fitness maximum in colony, f avgthe average fitness of Er Weimeidai colony, f' is larger fitness in 2 individualities, f is the individual fitness of variation, p m1for the variation probability of minimum fitness individuality, p m2the variation probability of maximum adaptation degree individuality, p c1for being the crossover probability of minimum fitness individuality, p c2crossover probability for maximum adaptation degree individuality.
Step 5: output control signals to drive system, adjust the state of motor.
CN201410410227.3A 2014-08-19 2014-08-19 Brushless DC motor fuzzy control system based on genetic algorithm and control method thereof Pending CN104155877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410410227.3A CN104155877A (en) 2014-08-19 2014-08-19 Brushless DC motor fuzzy control system based on genetic algorithm and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410410227.3A CN104155877A (en) 2014-08-19 2014-08-19 Brushless DC motor fuzzy control system based on genetic algorithm and control method thereof

Publications (1)

Publication Number Publication Date
CN104155877A true CN104155877A (en) 2014-11-19

Family

ID=51881404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410410227.3A Pending CN104155877A (en) 2014-08-19 2014-08-19 Brushless DC motor fuzzy control system based on genetic algorithm and control method thereof

Country Status (1)

Country Link
CN (1) CN104155877A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993746A (en) * 2015-07-17 2015-10-21 肖金凤 A brushless electric machine single-chip microcomputer control system and a brushless electric machine fuzzy controller creation method
CN106354022A (en) * 2016-12-02 2017-01-25 湖南大学 Brushless direct current motor and control method and system thereof
CN107132761A (en) * 2017-04-14 2017-09-05 烟台南山学院 A kind of electric steering engine design method using pure fuzzy and fuzzy complex controll
CN108549215A (en) * 2018-06-29 2018-09-18 南宁学院 A kind of brshless DC motor blurring Adaptive PID Control optimization method
CN108614432A (en) * 2018-06-11 2018-10-02 北京航空航天大学 A kind of network environment electric machine controller algorithm for design based on particle cluster algorithm
CN109856959A (en) * 2019-02-28 2019-06-07 滨州学院 A kind of linear motor control method and system based on PID
GB2569307A (en) * 2017-12-12 2019-06-19 Fives Landis Ltd Machine tools and methods of operation thereof
CN110543101A (en) * 2019-10-09 2019-12-06 福建工程学院 method and device for optimizing fan fuzzy controller based on genetic algorithm
CN113162487A (en) * 2021-04-30 2021-07-23 延锋汽车饰件系统有限公司 Motor control method and system and vehicle
CN113635548A (en) * 2021-08-05 2021-11-12 嘉兴学院 Control method for hot-melt electrohydrodynamic high-uniformity jet printing three-dimensional microstructure
CN113783479A (en) * 2021-11-11 2021-12-10 常州市佳博机械制造有限公司 Brushless direct current motor fuzzy PID control method based on neural network matrix

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2307566B (en) * 1995-11-21 1999-08-18 Samsung Electronics Co Ltd A method of setting up membership function parameters for a fuzzy logic controller
WO2004012021A1 (en) * 2002-07-30 2004-02-05 Yamaha Motor Co., Ltd System and method for nonlinear dynamic control based on soft computing with discrete constraints
CN101917150A (en) * 2010-06-24 2010-12-15 江苏大学 Robust controller of permanent magnet synchronous motor based on fuzzy-neural network generalized inverse and construction method thereof
CN102323820A (en) * 2011-04-19 2012-01-18 江苏科技大学 Intelligent rudder system and control method thereof
CN102497152A (en) * 2011-11-22 2012-06-13 重庆大学 Rotating compaction instrument control system and integrated control method thereof
CN102968055A (en) * 2012-12-07 2013-03-13 上海电机学院 Fuzzy PID (Proportion Integration Differentiation) controller based on genetic algorithm and control method thereof
CN103414415A (en) * 2013-07-05 2013-11-27 石成富 Motor control method based on PI parameter self-tuning
CN103760766A (en) * 2014-01-08 2014-04-30 江苏新绿能科技有限公司 Method and system for fuzzy control over genetic algorithm optimization of shielded gate portal crane controller
CN103888044A (en) * 2014-02-25 2014-06-25 江苏大学 Parameter self-tuning method for fuzzy PID controller

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2307566B (en) * 1995-11-21 1999-08-18 Samsung Electronics Co Ltd A method of setting up membership function parameters for a fuzzy logic controller
WO2004012021A1 (en) * 2002-07-30 2004-02-05 Yamaha Motor Co., Ltd System and method for nonlinear dynamic control based on soft computing with discrete constraints
CN101917150A (en) * 2010-06-24 2010-12-15 江苏大学 Robust controller of permanent magnet synchronous motor based on fuzzy-neural network generalized inverse and construction method thereof
CN102323820A (en) * 2011-04-19 2012-01-18 江苏科技大学 Intelligent rudder system and control method thereof
CN102497152A (en) * 2011-11-22 2012-06-13 重庆大学 Rotating compaction instrument control system and integrated control method thereof
CN102968055A (en) * 2012-12-07 2013-03-13 上海电机学院 Fuzzy PID (Proportion Integration Differentiation) controller based on genetic algorithm and control method thereof
CN103414415A (en) * 2013-07-05 2013-11-27 石成富 Motor control method based on PI parameter self-tuning
CN103760766A (en) * 2014-01-08 2014-04-30 江苏新绿能科技有限公司 Method and system for fuzzy control over genetic algorithm optimization of shielded gate portal crane controller
CN103888044A (en) * 2014-02-25 2014-06-25 江苏大学 Parameter self-tuning method for fuzzy PID controller

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
侯春杰: "基于遗传算法的无刷直流电机自适应模糊控制", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *
夏长亮 等: "基于模糊遗传算法的无刷直流电机自适应控制", 《中国电机工程学报》 *
李高杰: "轨道列车智慧门控制系统设计与开发", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
郭培健: "基于模糊遗传算法的无刷直流电机速度控制", 《中国优秀博硕士学位论文全文数据库 (硕士) 工程科技Ⅱ辑》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993746A (en) * 2015-07-17 2015-10-21 肖金凤 A brushless electric machine single-chip microcomputer control system and a brushless electric machine fuzzy controller creation method
CN106354022A (en) * 2016-12-02 2017-01-25 湖南大学 Brushless direct current motor and control method and system thereof
CN107132761A (en) * 2017-04-14 2017-09-05 烟台南山学院 A kind of electric steering engine design method using pure fuzzy and fuzzy complex controll
CN107132761B (en) * 2017-04-14 2020-10-16 烟台南山学院 Design method of electric steering engine adopting pure fuzzy and fuzzy PID composite control
GB2569307A (en) * 2017-12-12 2019-06-19 Fives Landis Ltd Machine tools and methods of operation thereof
GB2569307B (en) * 2017-12-12 2022-06-29 Fives Landis Ltd Machine tools and methods of operation thereof
CN108614432B (en) * 2018-06-11 2020-03-27 北京航空航天大学 Network environment motor controller design algorithm based on particle swarm algorithm
CN108614432A (en) * 2018-06-11 2018-10-02 北京航空航天大学 A kind of network environment electric machine controller algorithm for design based on particle cluster algorithm
CN108549215B (en) * 2018-06-29 2021-02-02 南宁学院 Fuzzy self-adaptive PID control optimization method for brushless direct current motor
CN108549215A (en) * 2018-06-29 2018-09-18 南宁学院 A kind of brshless DC motor blurring Adaptive PID Control optimization method
CN109856959A (en) * 2019-02-28 2019-06-07 滨州学院 A kind of linear motor control method and system based on PID
CN110543101A (en) * 2019-10-09 2019-12-06 福建工程学院 method and device for optimizing fan fuzzy controller based on genetic algorithm
CN113162487A (en) * 2021-04-30 2021-07-23 延锋汽车饰件系统有限公司 Motor control method and system and vehicle
CN113162487B (en) * 2021-04-30 2022-08-23 延锋汽车饰件系统有限公司 Motor control method and system and vehicle
CN113635548A (en) * 2021-08-05 2021-11-12 嘉兴学院 Control method for hot-melt electrohydrodynamic high-uniformity jet printing three-dimensional microstructure
CN113635548B (en) * 2021-08-05 2022-05-27 嘉兴学院 Control method for hot-melting electrohydrodynamic high-uniformity jet printing three-dimensional microstructure
CN113783479A (en) * 2021-11-11 2021-12-10 常州市佳博机械制造有限公司 Brushless direct current motor fuzzy PID control method based on neural network matrix

Similar Documents

Publication Publication Date Title
CN104155877A (en) Brushless DC motor fuzzy control system based on genetic algorithm and control method thereof
CN102411308B (en) Adaptive control method of dissolved oxygen (DO) based on recurrent neural network (RNN) model
CN111812968B (en) Fuzzy neural network PID controller-based valve position cascade control method
CN111608868B (en) Maximum power tracking adaptive robust control system and method for wind power generation system
CN103123460A (en) Temperature control system and temperature control method
CN110566406A (en) wind turbine generator set real-time variable pitch robust control system and method based on reinforcement learning
Farouk et al. Application of self-tuning fuzzy PID controller on the AVR system
CN117369286B (en) Dynamic positioning control method for ocean platform
Chen et al. Nonlinear feedback control based on ANFIS
Fan et al. Optimization of Controller for Microbial Fuel Cell: Comparison between Genetic Algorithm and Fuzzy Logic
Feng A self-tuning fuzzy control system design
CN113494416B (en) Variable pitch control method design based on LSTM
CN113141016B (en) Control method for assisting traditional unit frequency modulation by energy storage system based on regional control deviation
CN115145145B (en) Self-adaptive fuzzy control method for tea processing
Gonçalves et al. Solving economic load dispatch problem by natural computing intelligent systems
Yong–xiao et al. An Improved Control Algorithm for Ship Course Keeping Based on Nonlinear Feedback and Decoration
CN115309051B (en) Numerical control vertical lathe servo system and multi-mode multi-target self-optimizing control method thereof
Xu et al. Intelligent PID Controller on Soft Computing.
Feng et al. Self-adaptive adjustment system for swing speed of boom-type roadheader
Liang et al. Freeway ramp control based on genetic PI and fuzzy logic
Liu et al. Fuzzy-PID control for arc furnace electrode regulator system based on Genetic Algorithm
Rao et al. Frequency error and voltage control by using PI and fuzzy logic controllers for multi area inter connected power system
Hamed et al. Design of optimized fuzzy logic controller for magnetic levitation using genetic algorithms
CN113783479B (en) Brushless direct current motor fuzzy PID control method based on neural network matrix
Дранишников FUZZY MODELING IN CONTROL SYSTEMS

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20141119