CN110488600B - lQR optimized brushless DC motor speed regulation neural network PID controller - Google Patents

lQR optimized brushless DC motor speed regulation neural network PID controller Download PDF

Info

Publication number
CN110488600B
CN110488600B CN201910820288.XA CN201910820288A CN110488600B CN 110488600 B CN110488600 B CN 110488600B CN 201910820288 A CN201910820288 A CN 201910820288A CN 110488600 B CN110488600 B CN 110488600B
Authority
CN
China
Prior art keywords
neural network
output
lqr
layer
controller
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.)
Active
Application number
CN201910820288.XA
Other languages
Chinese (zh)
Other versions
CN110488600A (en
Inventor
胡黄水
王婷婷
杨兴旺
韩优佳
韩博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changchun University of Technology
Original Assignee
Changchun University of 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 Changchun University of Technology filed Critical Changchun University of Technology
Priority to CN201910820288.XA priority Critical patent/CN110488600B/en
Publication of CN110488600A publication Critical patent/CN110488600A/en
Application granted granted Critical
Publication of CN110488600B publication Critical patent/CN110488600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B11/00Automatic controllers
    • G05B11/01Automatic controllers electric
    • G05B11/36Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential
    • G05B11/42Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential for obtaining a characteristic which is both proportional and time-dependent, e.g. P. I., P. I. D.
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/64Electric machine technologies in electromobility

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Motors That Do Not Use Commutators (AREA)
  • Feedback Control In General (AREA)

Abstract

The invention designs an LQR optimized brushless direct current motor speed regulation neural network PID controller, which is used for improving the control performance of the traditional neural network PID controller and the traditional LQR optimized PID controller. Designed LQR optimization type neural network PID controller (LNPID) utilizes BP neural network to control K of controllerP,KI,KDThe gain is adjusted, so that the dynamic characteristic and robustness of the controller are improved; the three-layer BP neural network adopted by the invention has stronger nonlinear mapping capability, and can effectively inhibit the nonlinear condition of the controlled object; however, the traditional BP neural network is an optimization method of local search, so that the optimal output of the BP neural network is optimized by introducing an LQR control algorithm, so that the output data is closer to the target PID gain; and finally, inputting the control output value of the controller into the brushless direct current motor to achieve the rotation speed control of the motor. Meanwhile, the LNPID is adopted to continuously monitor the change of the parameters and the real-time feedback of the parameters, so that the control effect is ideal.

Description

lQR optimized brushless DC motor speed regulation neural network PID controller
Technical Field
The invention belongs to the technical field of brushless direct current motor speed regulation, and particularly relates to an LQR (Linear quadratic regression) optimized brushless direct current motor speed regulation neural network PID (proportion integration differentiation) controller.
Background
The brushless direct current motor has the advantages of simple structure, high efficiency, low maintenance cost, high dynamic response and the like, and is widely applied to the fields of aerospace, robots, electric automobiles and the like. It is well known that speed control is an important aspect of the field of brushless dc motor drives. With the continuous and rapid development of modern power electronic technology, sensor technology, automatic control technology and manufacturing technology, the research on the brushless direct current motor speed regulation controller with high response speed, strong regulation capability and high control precision has important practical significance and application prospect. However, the complex strongly coupled non-linear characteristic makes it difficult for the conventional control method to achieve good speed control performance. Therefore, in recent decades, many new rotational speed controllers have been proposed to improve the performance of brushless dc motors.
To improve the transient and steady state characteristics of a brushless dc motor, a PID controller is usually the best choice for brushless dc motor speed regulation. The PI-based DC-free motor speed control controller improves the sensitivity of the speed controller and reduces the speed overshoot by increasing the proportional gain. However, the conventional PID has strong dependence on gain selection, which causes the performance of the brushless dc motor to be degraded, and has various uncertainties and nonlinearities. Therefore, many methods are proposed to simplify or improve the PID gain tuning process, and neural network based algorithms can achieve better results.
The PID gain update algorithm based on the neural network has been successfully applied to the control of servo motors, numerical control machines, and the like. Single neuron PID controllers have controlled brushless dc motors. Vikas et al propose a neural network-based PID controller consisting of a mixed local recurrent neural network, containing at most three hidden nodes, which is easy to implement, but the main drawback of this strategy is the need to determine the number of parameters before training, which requires a priori process knowledge. Furthermore, training algorithms based on gradient descent are a time-consuming process. For this purpose, some optimization methods are proposed. And initializing the weight of the adaptive PID neural network controller by adopting a particle swarm optimization algorithm, and adjusting the parameters of the PID neural network by adopting an improved gradient descent algorithm. The method has the defect that the time for initializing the PID neural network by the particle swarm optimization algorithm is long. Classical optimal control theory has developed over decades to create a well-known linear secondary regulator that minimizes deviations in the trajectory of the system states and requires minimal controller effort. This typical behavior of LQR prompts control designers to use it to tune PID controllers. Although the LQR-optimized PID controller has good tracking performance and stable performance, the robustness thereof still needs to be improved. In order to further improve various performance indexes of the brushless direct current motor, the LQR optimized brushless direct current motor speed regulation neural network PID controller is provided.
Disclosure of Invention
The inventionThe designed LQR optimization type neural network PID controller (LNPID) performs speed regulation control on the steady state and the transient state of the brushless direct current motor, optimizes the control output of the BP neural network by utilizing an LQR algorithm, and optimally controls K of the output regulation controllerP,KI,KDGain, improve the dynamics and robustness of the controller, ensure that under different operating conditions (reference, load disturbance and noise signal variation) the LNPID is faster and more efficient than the traditional neural network PID (nnpid) and LQR optimized PID controller (LQRPID).
The invention provides an LQR (Linear quadratic Quadrature) optimized brushless direct current motor speed regulation neural network PID (proportion integration differentiation) controller, which specifically comprises the following control steps:
s1, establishing a three-layer BP neural network, wherein the input layer is 3 neurons, the hidden layer is 6 neurons, the output layer is 3 neurons, and randomly generating initial values W of weighting coefficients among layersij(0)、Wjk(0) The learning rate η is selected, and k = 1.
S2 calculating the output O of the BP neural network output layerkoutCalculating BPNN control error E (k) based on LQR optimization, and calculating the BP neural network output O of the LQR optimization at the momentkI.e. 3 adjustable parameters K of the controllerP,KI,KD
S3 correcting weighting coefficients W of BP neural network output layer and hidden layer based on LQR optimizationij(k)、Wjk(k) (ii) a And recalculating k = k +1 until the output error of the BP neural network output layer meets the requirement.
And S4, inputting the final control output into the brushless direct current motor system to realize speed control.
The step S1 is to establish a three-layer BP neural network, and further comprises sampling to obtain an input rotation speed r (k) and an output rotation speed y (k), calculating a speed error e (k) = r (k) -y (k), and normalizing e (k), e (k) — e (k-1), e (k) — 2e (k-1) + e (k-2) according to the speed error e (k), wherein the normalization processing is used as an input x of BPNN1,x2,x3
In the step S3, weighting coefficients W of the BP neural network output layer and the hidden layer based on LQR optimization are correctedij(k)、Wjk(k) The method specifically comprises the following steps: statorPerformance index of BP neural network based on LQR optimizationJ k Connection weight Wij(k) And Wjk(k) And (3) adjusting by adopting a steepest descent method:
Wjk(k+1)=Wjk(k)-η(ƏJ k /ƏW jk )
Wij(k+1)=Wij(k)-η(ƏJ k /ƏW ij )
where η is the learning rate. And recalculating the steps by k = k +1 until the output error of the BP neural network output layer meets the requirement.
The invention has the beneficial effect that the invention adopts the K of the three-layer BP neural network to the controllerP,KI,KDGain is adjusted, the three-layer BP neural network has stronger nonlinear mapping capability, the nonlinear condition of a controlled object can be effectively inhibited, and the dynamic characteristic and robustness of the controller are improved; however, the traditional BP neural network is an optimization method of local search, so that the optimal output of the BP neural network is optimized by adopting LQR, and the output data is closer to the target PID gain. In the control process, the LQR optimization type brushless direct current motor speed regulation neural network PID controller can continuously monitor the change of parameters and the real-time feedback of the parameters, so that the control effect is ideal.
Drawings
Fig. 1 is a schematic diagram of an LQR optimized brushless dc motor speed regulation neural network PID controller according to the present invention.
Fig. 2 is a specific flow chart of the LQR optimized brushless dc motor speed regulation neural network PID controller of the present invention.
Fig. 3 is a schematic diagram of the structure of a BP neural network of the speed regulation neural network PID controller of the LQR optimized brushless DC motor.
Detailed Description
In the following, embodiments of the present invention will be described in further detail with reference to the accompanying drawings, it should be noted that the technical features and combinations of the technical features described in the embodiments below should not be considered as isolated, and they may be combined with each other to achieve better technical effects.
As shown in fig. 1, a specific architecture of a speed regulation neural network PID controller for an LQR optimized brushless dc motor provided by the present invention includes an LQR optimized BP neural network module, a PID controller, a logic switch, a position and speed sensor, a pulse width modulation inverter, and a brushless dc motor, and the specific control method is as follows.
Firstly, the actual output rotating speed y (k) of the motor is compared with the input rotating speed r (k) to obtain the final rotating speed error e (k) = r (k) — y (k), and normalization processing is carried out on e (k), e (k) = e (k-1), e (k) — 2e (k-1) + e (k-2) according to the speed error e (k) and is used as the input x of BPNN1,x2,x3. Outputting O through BP neural network output layerkoutCalculating BPNN control error E (k) based on LQR optimization, and modifying weighting coefficients W (W) of output layer and hidden layer of BP neural network based on LQR optimization on line according to E (k)ij(k)、Wjk(k) (ii) a Recalculating k = k +1 until the output error of the BP neural network output layer meets the requirement, and obtaining the output O of the BP neural network optimized by the LQR at the momentkI.e. 3 adjustable parameters K of the controllerP,KI,KDAnd inputting the three parameters into a PID controller, and finally, controlling the output result by the PID controller and inputting the output result into the brushless direct current motor to realize the rotation speed control.
As shown in fig. 2, the LQR optimized neural network PID controller for speed regulation of a brushless dc motor provided in the present invention specifically includes the following control steps:
s1, establishing a three-layer BP neural network, and determining initial values of all parameters;
wherein the input layer is 3 neurons, the hidden layer is 6 neurons, the output layer is 3 neurons, and the initial value W of the weighting coefficient between each layer is randomly generatedij(0)、Wjk(0) The learning rate η is selected, and k = 1. The structure is shown in fig. 3. Sampling to obtain an input rotating speed r (k) and an output rotating speed y (k), calculating a speed error e (k) = r (k) — y (k), and normalizing e (k), e (k) = e (k-1), e (k) — 2e (k-1) + e (k-2) according to the speed error e (k) to be used as an input x of the BPNN1,x2,x3
S2 counterOutput O of BP neural network output layerkoutCalculating BPNN control error E (k) based on LQR optimization, and calculating the BP neural network output O of the LQR optimization at the momentkI.e. 3 adjustable parameters K of the controllerP,KI,KD(ii) a Output O of BP neural network output layerkoutCalculated as follows:
Okout=f 26 i=1Wjk×f 13 i=1Wij×xij)-θk)
wherein x isiBeing the actual input to the network, Wij,Wjk,θj,θkRespectively control error, first layer weight, second layer weight, bias of jth hidden layer neuron and bias of kth output layer neuron,f 1(x)、f 2(x) Is an activation function of the hidden layer and the output layer.
Then the output O of the BP neural network optimized by the LQRkI.e. 3 adjustable parameters KP, KI, KD of the controller.
Ok(k)=-Mxi(k)+KE(k)+Okout(k)=-Mxi(k)+KE(k)+g(xi(k))
Where M and K are feedback gain and feedforward gain matrices of dimensions (M × n) and (M × l), respectively, g (x)i(k))=g(x1,x2,x3) Is a BPNN input to output nonlinear mapping function.
S3 correcting weighting coefficients W of BP neural network output layer and hidden layer based on LQR optimizationij(k)、Wjk(k) (ii) a And recalculating k = k +1 until the output error of the BP neural network output layer meets the requirement.
Defining performance index of BP neural network based on LQR optimizationJ k Connection weight Wij(k) And Wjk(k) And (3) adjusting by adopting a steepest descent method:
Wjk(k+1)=Wjk(k)-η(ƏJ k /ƏW jk )
Wij(k+1)=Wij(k)-η(ƏJ k /ƏW ij )
where η is the learning rate. And recalculating the steps by k = k +1 until the output error of the output layer of the BP neural network meets the requirement.
And S4, inputting the final control output into the brushless direct current motor system to realize speed control.
Optimal parameter K is obtained through online learning of BP neural network optimized by LQRP,KI,KDAnd inputting the three parameters into a PID controller, and finally inputting the control output value of the PID controller into the brushless direct current motor to achieve the rotation speed control of the motor. The LQR optimized brushless direct current motor speed regulation neural network PID controller can continuously monitor the change of parameters and the real-time feedback of the parameters, so that the control effect is ideal.
The three-layer BP neural network adopted by the invention has stronger nonlinear mapping capability, and can effectively inhibit the nonlinear condition of the controlled object; however, the traditional BP neural network is an optimization method of local search, so the optimal output of the BP neural network is optimized by introducing an LQR control algorithm. Meanwhile, the change of parameters and the real-time feedback of the parameters can be continuously monitored by adopting the LQR optimized brushless direct current motor speed regulation neural network PID controller, so that the control effect is ideal.

Claims (1)

  1. The utility model provides a LQR optimization type brushless DC motor speed governing neural network PID controller which characterized in that: the designed LQR optimization type neural network PID controller (LNPID) utilizes the K of the BP neural network to the controllerP,KI,KDAdjusting the gain;
    optimizing the optimal output of the BP neural network by adopting LQR to enable the output data to be closer to the target PID gain; finally, the control output value of the controller is input into the brushless direct current motor to achieve the rotation speed control of the motor;
    the LQR optimization type brushless direct current motor speed regulation neural network PID controller is characterized in that: the method comprises the following steps:
    s1, establishing a three-layer BP neural network, wherein the input layer is 3 neurons, the hidden layer is 6 neurons, the output layer is 3 neurons, and randomly generating initial values W of weighting coefficients among layersij(0)、Wjk(0) Selecting a learning rate eta, and setting k to be 1;
    s2 calculating the output O of the BP neural network output layerkoutCalculating BPNN control error E (k) based on LQR optimization, and calculating the BP neural network output O of the LQR optimization at the momentkI.e. 3 adjustable parameters K of the controllerP,KI,KD
    S3 correcting weighting coefficients W of BP neural network output layer and hidden layer based on LQR optimizationij(k)、Wjk(k) (ii) a Recalculating k to k +1 until the output error of the BP neural network output layer meets the requirement;
    s4, inputting the final control output into the brushless DC motor system to realize speed control;
    the step S1 is that a three-layer BP neural network is established, and the method further comprises the following steps:
    sampling to obtain an input rotating speed r (k) and an output rotating speed y (k), calculating a speed error e (k) ═ r (k) — y (k), and normalizing e (k), e (k) — e (k-1), e (k) — 2e (k-1) + e (k-2) according to the speed error e (k) to be used as an input x (k) of the BPNN1,x2,x3
    The output O of the BP neural network output layer in the step S2koutCalculated as follows:
    Okout=f26 i=1Wjk×f13 i=1Wij×xij)-θk)
    wherein x isiBeing the actual input to the network, Wij,Wjk,θj,θkRespectively being the first layer weight, the second layer weight, the bias of the jth hidden layer neuron, the bias of the kth output layer neuron, f1(x)、f2(x) Is an activation function of the hidden layer and the output layer;
    then the output O of the BP neural network optimized by the LQRkI.e. 3 adjustable parameters K of the controllerP,KI,KD
    Ok(k)=-Mxi(k)+KE(k)+Okout(k)=-Mxi(k)+KE(k)+g(xi(k))
    Where M and K are feedback gain and feedforward gain matrices of dimensions (M × n) and (M × l), respectively, g (x)i(k))=g(x1,x2,x3) Nonlinear mapping function for input and output of BPNN;
    in the step S3, weighting coefficients W of the BP neural network output layer and the hidden layer based on LQR optimization are correctedij(k)、Wjk(k) The method specifically comprises the following steps:
    defining performance index J of BP neural network based on LQR optimizationkConnecting the weight Wij(k) And Wjk(k) Adjusting by adopting a steepest descent method:
    Figure FDA0003613260760000011
    Figure FDA0003613260760000012
    wherein η is the learning rate; and recalculating k to k +1 until the output error of the output layer of the BP neural network meets the requirement.
CN201910820288.XA 2019-09-01 2019-09-01 lQR optimized brushless DC motor speed regulation neural network PID controller Active CN110488600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910820288.XA CN110488600B (en) 2019-09-01 2019-09-01 lQR optimized brushless DC motor speed regulation neural network PID controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910820288.XA CN110488600B (en) 2019-09-01 2019-09-01 lQR optimized brushless DC motor speed regulation neural network PID controller

Publications (2)

Publication Number Publication Date
CN110488600A CN110488600A (en) 2019-11-22
CN110488600B true CN110488600B (en) 2022-05-31

Family

ID=68555888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910820288.XA Active CN110488600B (en) 2019-09-01 2019-09-01 lQR optimized brushless DC motor speed regulation neural network PID controller

Country Status (1)

Country Link
CN (1) CN110488600B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367174B (en) * 2020-03-12 2021-03-23 清华大学 Linear quadratic form control improvement method based on convolutional neural network vibration identification
CN111665718B (en) * 2020-06-05 2022-05-10 长春工业大学 Diagonal recurrent neural network control method based on Q learning algorithm

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1490689A (en) * 2003-09-11 2004-04-21 中国科学技术大学 Self-adaptation nonlinear time varying controller and controlling method thereof
CN104763694A (en) * 2015-03-18 2015-07-08 上海交通大学 Sectional pressure set value optimization method of hydraulic propelling system of heading machine
CN107508506A (en) * 2017-09-22 2017-12-22 哈尔滨理工大学 A kind of brshless DC motor fuzzy-adaptation PID control governing system and method
CN108365784A (en) * 2017-11-24 2018-08-03 天津大学 Based on the control method for brushless direct current motor for improving PSO-BP neural networks
CN109905067A (en) * 2019-04-12 2019-06-18 北京理工大学 Motor driven systems structure and the integrated optimization method of control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1490689A (en) * 2003-09-11 2004-04-21 中国科学技术大学 Self-adaptation nonlinear time varying controller and controlling method thereof
CN104763694A (en) * 2015-03-18 2015-07-08 上海交通大学 Sectional pressure set value optimization method of hydraulic propelling system of heading machine
CN107508506A (en) * 2017-09-22 2017-12-22 哈尔滨理工大学 A kind of brshless DC motor fuzzy-adaptation PID control governing system and method
CN108365784A (en) * 2017-11-24 2018-08-03 天津大学 Based on the control method for brushless direct current motor for improving PSO-BP neural networks
CN109905067A (en) * 2019-04-12 2019-06-18 北京理工大学 Motor driven systems structure and the integrated optimization method of control

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LQR的ABC-BP网络平衡车变负载控制研究;陈健飞等;《机械设计与制造》;20161008(第10期);第260-264页 *
基于BP神经网络的深水自升式海洋平台半主动控制方法研究;嵇春艳等;《江苏科技大学学报(自然科学版)》;20121215(第06期);第528-532页 *
基于线性二次型调节器的神经网络PID控制***;胡即明等;《应用科技》;20051105(第11期);第51-53页 *

Also Published As

Publication number Publication date
CN110488600A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
Xiaofang et al. RBF networks-based adaptive inverse model control system for electronic throttle
CN111173678B (en) Wind power cabin suspension control method for RBF neural network pitch interference compensation
CN109327178A (en) A kind of switched reluctance machines Multi-step predictive control device building method
CN111665718B (en) Diagonal recurrent neural network control method based on Q learning algorithm
CN111608868B (en) Maximum power tracking adaptive robust control system and method for wind power generation system
CN110531614B (en) Novel brushless DC motor fuzzy neural network PI controller
CN110488600B (en) lQR optimized brushless DC motor speed regulation neural network PID controller
CN109507876B (en) Credibility reasoning-based PID parameter setting method for electric propulsion ship motor
Gritli et al. PID-type fuzzy scaling factors tuning using genetic algorithm and simulink design optimization for electronic throttle valve
CN110361974B (en) Water turbine speed regulating system optimization method based on BP-FOA hybrid algorithm
Lee et al. Speed estimation and control of induction motor drive using hybrid intelligent control
Darvill et al. An ANFIS-PI based boost converter control scheme
CN110932629B (en) Inertia estimation method based on single neuron network and self-adaptive adjustment strategy thereof
CN112054728B (en) Permanent magnet synchronous motor drive control system of numerical control machine tool
CN112039391B (en) Motor drive control system of high-voltage circuit breaker
Liu et al. Fuzzy controllers with neural network predictor for second-order linear systems with time delay
CN112072961A (en) Brushless DC motor speed control system based on ANFIS
CN116827174A (en) Brushless direct current motor speed regulation PID control method based on improved whale algorithm
Zaineb et al. Speed control of DC motor based on an adaptive feed forward neural IMC controller
CN108089442B (en) PI controller parameter self-tuning method based on prediction function control and fuzzy control
Prakash et al. Neuro-PI controller based model reference adaptive control for nonlinear systems
CN111055920B (en) Construction method of multi-model corner controller of automobile EPS (electric power steering) system
Sepeeh et al. Motor Speed Control Based on Enhanced Indirect-Field-Oriented Control Using Convolutional Neural Network
CN113783479B (en) Brushless direct current motor fuzzy PID control method based on neural network matrix
Bai et al. Improve performances of a laser tracking system by adopting a modified fuzzy neural network controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant