CN111614299A - Direct torque control method based on ant colony optimization PID permanent magnet synchronous motor - Google Patents

Direct torque control method based on ant colony optimization PID permanent magnet synchronous motor Download PDF

Info

Publication number
CN111614299A
CN111614299A CN202010475590.9A CN202010475590A CN111614299A CN 111614299 A CN111614299 A CN 111614299A CN 202010475590 A CN202010475590 A CN 202010475590A CN 111614299 A CN111614299 A CN 111614299A
Authority
CN
China
Prior art keywords
error
synchronous motor
pid
rotating speed
permanent magnet
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
CN202010475590.9A
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.)
Shanghai Maritime University
Original Assignee
Shanghai Maritime University
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 Shanghai Maritime University filed Critical Shanghai Maritime University
Priority to CN202010475590.9A priority Critical patent/CN111614299A/en
Publication of CN111614299A publication Critical patent/CN111614299A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/24Vector control not involving the use of rotor position or rotor speed sensors
    • H02P21/28Stator flux based control
    • H02P21/30Direct torque control [DTC] or field acceleration method [FAM]
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/0003Control strategies in general, e.g. linear type, e.g. P, PI, PID, using robust control

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Ac Motors In General (AREA)

Abstract

The invention provides a direct torque control method of a permanent magnet synchronous motor based on ant colony optimization PID, which adopts ant colony to adjust proportion, differential and integral coefficient of PID to realize optimization of a PID controller, and uses the optimized controller to control direct torque of the permanent magnet synchronous motor. The method is characterized in that the current torque obtained by a rotating speed detection sensor is differed from the torque theoretically required to obtain the current torque error and the stator flux linkage error, the two errors are used as the input of a control model and are input into a PID controller, the voltage vector angle and the amplitude of a control motor are obtained through the transfer function of the controller and are used as the output of a system, and the ant colony optimization PID permanent magnet synchronous motor direct torque control method is simple in system, easy to realize parameter setting and high in system stability and adaptability.

Description

Direct torque control method based on ant colony optimization PID permanent magnet synchronous motor
Technical Field
The invention belongs to the technical field of motor control, and particularly relates to a direct torque control method for a PID permanent magnet synchronous motor based on ant colony optimization.
Background
The permanent magnet synchronous motor is characterized in that three-phase current is introduced into the motor, a rotating magnetic field is formed inside the motor, the permanent magnet in the rotor rotates in the rotating magnetic field, and finally the rotating speed of the rotor is the same as that of the stator. Direct Torque Control (DTC) is a way for an inverter to control the torque of a three-phase motor. The method is based on measured motor voltage and current to calculate the estimated values of motor flux and torque, and in direct torque control, the stator flux is integrated with the stator voltage. And the torque is estimated as the inner product of the estimated stator flux vector and the measured current vector. The magnetic flux and the torque are compared with a reference value, if the error between the magnetic flux or the torque and the reference value exceeds an allowable value, the power crystal in the frequency converter is switched, so that the error between the magnetic flux or the torque can be reduced as soon as possible. Direct torque control can therefore also be regarded as a hysteresis or relay control.
Proportional, derivative and integral control, PID control for short, causes the system to quickly reach the target but causes oscillation of the system, the derivative is used for suppressing the speed of error reduction, and the integral is used for eliminating the static error. The direct torque control of the permanent magnet synchronous motor is controlled by the PID, the system has a very accurate control effect, the structure is simple, the stability is good, meanwhile, an accurate mathematical model of the permanent magnet synchronous motor is not needed, the system error is reduced by a high-speed effective mode, and the stable state is achieved.
The Chinese invention patent CN110932635A discloses a direct torque control method of a permanent magnet synchronous motor based on fuzzy control logic, which takes a rotating speed error and a stator chain error as input quantities to be input into a fuzzy controller, and the controller has a complex training process and slow system responsiveness; the invention of Chinese patent application CN110061669A discloses a direct torque control method for a permanent magnet synchronous motor, which takes the signal difference between a stator chain and a feedback stator chain as the input of a super-twisting magnetic chain controller, outputs a d-axis voltage vector, transforms the voltage vectors of q and d axes through a PARK inverse transformation unit to obtain alpha and beta axis voltages, and finally generates a PWM control signal.
The direct torque control methods of the permanent magnet synchronous motor inevitably have respective defects, and limit the application in motor engineering and actual production. Therefore, the existing direct torque control method of the permanent magnet synchronous motor is complex in system, low in responsiveness and weak in adaptability, and cannot meet requirements, and an ant colony optimization-based PID direct torque control method of the permanent magnet synchronous motor is adopted. To ameliorate the deficiencies of the prior art.
Disclosure of Invention
Aiming at the defects in the prior art, the invention mainly aims to provide a control model which has high responsiveness, stronger adaptability, better robustness and higher convergence rate to realize a direct torque control method of a synchronous motor;
the technical scheme of the invention is as follows: a PID synchronous motor direct torque control method based on ant colony optimization comprises the following steps:
firstly, the current torque obtained by a rotating speed detection sensor is differed from the torque theoretically required to obtain a current torque error and a stator flux linkage error, the two errors are used as the input of a control model and are input into a PID controller, and the voltage vector angle and the amplitude of a control motor are obtained through the transfer function of the controller and are used as the output of a system;
further obtaining the stator voltage and stator flux linkage equation of the permanent magnet synchronous motor as follows:
Figure BDA0002515731410000021
Figure BDA0002515731410000022
wherein: u. ofx、uy、ix、iyIs the component of stator voltage vector u and stator current vector i on the x, y axes, and R is the stator resistance; a. thefRepresents the amplitude of the permanent magnetic flux linkage, and omega is AxRotational electrical angular velocity of; is (-pi/2, pi/2) as stator flux linkage vector AsAnd rotor flux linkage vector AfThe included angle between them is called torque angle; l is a stator inductance;
the expression of the electromagnetic torque of the permanent magnet synchronous motor is obtained as follows:
Figure BDA0002515731410000023
further, for the TeThe expression is derived and set to AsConstant:
Figure BDA0002515731410000024
wherein the proportionality coefficient
Figure BDA0002515731410000025
θsAnd thetarThen is AsAnd AfThe included angle between the stator winding and the axis of the A-phase stator winding is formed; omegarIs AfRotational electrical angular velocity;
further, the rate of change of the electromagnetic torque is obtained as:
Figure BDA0002515731410000026
the torque pulse root mean square error is:
Figure BDA0002515731410000027
Figure BDA0002515731410000028
is a reference torque, i.e., a desired torque;
secondly, setting a sampling time interval as T, detecting the current rotating speed of the permanent magnet synchronous motor in real time by a rotating speed detection sensor, sampling rotating speed data of the current synchronous motor, making a difference between the current rotating speed and the set rotating speed, calculating a rotating speed deviation change rate by the formula, obtaining e (k) and r (k), and calculating an error e (k) at the time T, namely r (k) -y (T);
wherein 3 parameters, K, of PID control are learned and output and adjusted through the training of ant colony algorithm according to the running state of the systemp、Ki、KdThe differential time constant is a proportional coefficient, and the integral time constant is a differential time constant;
further, processing the obtained error signal of the rotating speed of the permanent magnet synchronous motor, extracting data characteristic parameters, performing normalization processing, adding the error signal into an ant colony for parameter training, terminating the training if the error is smaller than a certain range or the training reaches a certain number of times if the given constraint condition is met, outputting the optimal solution of three parameters of the PID, and entering the ant colony model again for optimization if the condition is not met;
inputting the obtained 3 parameters into a PID controller, and further obtaining a mathematical expression of the following model, wherein the mathematical expression is controlled by comparing, differentiating and integrating;
further, the PID algorithm is discretized, e (k) is deviation, and errors after integration are accumulated into e (k) + e (k-1) + e (k-2) … + e (0), and are differentiated into (e (k) — e (k-1))/T, wherein
Figure BDA0002515731410000031
Said KpIs a coefficient of proportionality that is,
Figure BDA0002515731410000032
for integral coefficient, by KiIt is shown that,
Figure BDA0002515731410000033
as differential coefficient, by KdRepresents;
further, an incremental form is adopted for the PID control model, namely:
u(k)=Δu(k)+u(k-1)
finally, the obtained initial error signal of the rotating speed of the permanent magnet synchronous motor is used as the input of a control system, and the system stops through one iteration of the error until the deviation of the output layer and the expected value is within a specified error range in the training process; if the requirement is not met, making k equal to k +1, and continuing to eliminate the error;
and testing the test set by using the trained PID control model, using the established PID control model for actual detection, and realizing the direct torque control method of the permanent magnet synchronous motor according to the detection result.
Drawings
FIG. 1 is a flow chart of ant colony optimization PID PMSM direct torque control;
FIG. 2 is a parameter tuning of PID by the ant colony algorithm;
FIG. 3 illustrates PID control of PMSM direct torque error.
Detailed Description
The present invention will be further described with reference to the following detailed description, wherein the drawings are for illustrative purposes only and are not intended to be limiting, wherein certain well-known structures in the drawings and descriptions thereof may be omitted so as to enable those skilled in the art to understand the invention, and all other embodiments obtained by those skilled in the art without inventive faculty are within the scope of the invention.
Fig. 1 is a flow chart of the ant colony optimization PID permanent magnet synchronous motor direct torque control according to the present invention, as shown in fig. 1, firstly, the current torque obtained by a rotation speed detection sensor is subtracted from the theoretically required torque to obtain the current torque error and the stator flux linkage error, the two errors are used as the input of a control model, and are input into a PID controller, and the voltage vector angle and the amplitude of the control motor are obtained as the output of the system through the transfer function of the controller;
fig. 2 is a parameter setting of the ant colony algorithm to PID, as shown in fig. 2:
further obtaining the stator voltage and stator flux linkage equation of the permanent magnet synchronous motor as follows:
Figure BDA0002515731410000041
Figure BDA0002515731410000042
wherein: u. ofx、uy、ix、iyIs the component of stator voltage vector u and stator current vector i on the x, y axes, and R is the stator resistance; a. thefRepresents the amplitude of the permanent magnetic flux linkage, and omega is AxRotational electrical angular velocity of; is (-pi/2, pi/2) as stator flux linkage vector AsAnd rotor flux linkage vector AfThe included angle between them is called torque angle; l is a stator inductance;
obtaining the electromagnetic torque expression of the permanent magnet synchronous motor as
Figure BDA0002515731410000043
Further: for the TeThe expression is derived and set to AsConstant:
Figure BDA0002515731410000044
wherein the proportionality coefficient
Figure BDA0002515731410000045
θsAnd thetarThen is AsAnd AfThe included angle between the stator winding and the axis of the A-phase stator winding is formed; omegarIs AfRotational electrical angular velocity;
further obtaining the change rate of the electromagnetic torque as:
Figure BDA0002515731410000046
torque pulse root mean square error of
Figure BDA0002515731410000047
Figure BDA0002515731410000048
Is a reference torque, i.e., a desired torque;
secondly, setting a sampling time interval as T, detecting the current rotating speed of the permanent magnet synchronous motor in real time by a rotating speed detection sensor, sampling rotating speed data of the current synchronous motor, making a difference between the current rotating speed and the set rotating speed, calculating a rotating speed deviation change rate by the formula, obtaining e (k) and r (k), and calculating an error e (k) at the time T, namely r (k) -y (T);
wherein 3 parameters, K, of PID control are learned and output and adjusted through the training of ant colony algorithm according to the running state of the systemp、Ki、KdThe differential time constant is a proportional coefficient, and the integral time constant is a differential time constant;
further, processing the obtained error signal of the rotating speed of the permanent magnet synchronous motor, extracting data characteristic parameters, performing normalization processing, adding the error signal into an ant colony for parameter training, terminating the training if the error is smaller than a certain range or the training reaches a certain number of times if the given constraint condition is met, outputting the optimal solution of three parameters of the PID, and entering the ant colony model again for optimization if the condition is not met;
fig. 3 is PID control of the direct torque error of the permanent magnet synchronous motor, as shown in fig. 3:
secondly, setting a sampling time interval as T, detecting the current rotating speed of the permanent magnet synchronous motor in real time by a rotating speed detection sensor, sampling rotating speed data of the current synchronous motor, making a difference between the current rotating speed and the set rotating speed, calculating a rotating speed deviation change rate by the formula, obtaining e (k) and r (k), and calculating an error e (k) at the time T, namely r (k) -y (T);
wherein 3 parameters, K, of PID control are learned and output and adjusted through the training of ant colony algorithm according to the running state of the systemp、Ki、KdThe differential time constant is a proportional coefficient, and the integral time constant is a differential time constant;
further, processing the obtained error signal of the rotating speed of the permanent magnet synchronous motor, extracting data characteristic parameters, performing normalization processing, adding the error signal into an ant colony for parameter training, terminating the training if the error is smaller than a certain range or the training reaches a certain number of times if the given constraint condition is met, outputting the optimal solution of three parameters of the PID, and entering the ant colony model again for optimization if the condition is not met;
inputting the obtained 3 parameters into a PID controller, and further obtaining a mathematical expression of the following model, wherein the mathematical expression is controlled by comparing, differentiating and integrating;
further, discretizing the PID algorithm, e (k) is deviation, and accumulating the error after integration into e (k) + e (k-1) + e (k-2) … + e (0), and the differential is (e (k) — e (k-1))/T, wherein:
Figure BDA0002515731410000051
said KpIs a coefficient of proportionality that is,
Figure BDA0002515731410000052
for integral coefficient, by KiIt is shown that,
Figure BDA0002515731410000053
as differential coefficient, by KdRepresents;
further, an incremental form is adopted for the PID control model, namely:
u(k)=Δu(k)+u(k-1)
finally, the obtained initial error signal of the rotating speed of the permanent magnet synchronous motor is used as the input of a control system, and the system stops through one iteration of the error until the deviation of the output layer and the expected value is within a specified error range in the training process; if the requirement is not met, making k equal to k +1, and continuing to eliminate the error;
and testing the test set by using the trained PID control model, using the established PID control model for actual detection, and realizing the direct torque control method of the permanent magnet synchronous motor according to the detection result.

Claims (1)

1. A PID synchronous motor direct torque control method based on ant colony optimization is characterized by comprising the following steps:
firstly, the current torque obtained by a rotating speed detection sensor is differed from the torque theoretically required to obtain a current torque error and a stator flux linkage error, the two errors are used as the input of a control model and are input into a PID controller, and the voltage vector angle and the amplitude of a control motor are obtained through the transfer function of the controller and are used as the output of a system;
secondly, setting a sampling time interval as T, detecting the current rotating speed of the permanent magnet synchronous motor in real time by a rotating speed detection sensor, sampling rotating speed data of the current synchronous motor, making a difference between the current rotating speed and the set rotating speed, calculating a rotating speed deviation change rate by the formula, obtaining e (k) and r (k), and calculating an error e (k) at the time T, namely r (k) -y (T);
wherein 3 parameters, K, of PID control are learned and output and adjusted through the training of ant colony algorithm according to the running state of the systemp、Ki、KdThe differential time constant is a proportional coefficient, and the integral time constant is a differential time constant;
processing the obtained error signal of the rotating speed of the permanent magnet synchronous motor, extracting data characteristic parameters, performing normalization processing, adding the error signal into an ant colony for parameter training, terminating the training if the error is smaller than a certain range or the error is trained to a certain number of times if the given constraint condition is met, outputting the optimal solution of three parameters of PID, and if the error is not met, entering the ant colony model again for optimization;
finally, the obtained initial error signal of the rotating speed of the permanent magnet synchronous motor is used as the input of a control system, and the system stops through one iteration of the error until the deviation of the output layer and the expected value is within a specified error range in the training process; if the requirement is not met, making k equal to k +1, and continuing to eliminate the error;
and testing the test set by using the trained PID control model, using the established PID control model for actual detection, and realizing the direct torque control method of the permanent magnet synchronous motor according to the detection result.
CN202010475590.9A 2020-05-29 2020-05-29 Direct torque control method based on ant colony optimization PID permanent magnet synchronous motor Pending CN111614299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010475590.9A CN111614299A (en) 2020-05-29 2020-05-29 Direct torque control method based on ant colony optimization PID permanent magnet synchronous motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010475590.9A CN111614299A (en) 2020-05-29 2020-05-29 Direct torque control method based on ant colony optimization PID permanent magnet synchronous motor

Publications (1)

Publication Number Publication Date
CN111614299A true CN111614299A (en) 2020-09-01

Family

ID=72201882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010475590.9A Pending CN111614299A (en) 2020-05-29 2020-05-29 Direct torque control method based on ant colony optimization PID permanent magnet synchronous motor

Country Status (1)

Country Link
CN (1) CN111614299A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114114898A (en) * 2022-01-27 2022-03-01 北京航空航天大学 Air-to-air missile PID parameter setting method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05207772A (en) * 1992-01-28 1993-08-13 Ricoh Co Ltd Servo controller for motor
CN101931362A (en) * 2010-05-19 2010-12-29 西安理工大学 Direct torque control device and method for permanent magnet synchronous motor
CN102684592A (en) * 2012-05-10 2012-09-19 南京航空航天大学 Torque and flux linkage control method for permanent synchronous motor
CN108608628A (en) * 2018-03-16 2018-10-02 黄力 Genetic algorithm corrects PID controller and its application of ant group algorithm optimization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05207772A (en) * 1992-01-28 1993-08-13 Ricoh Co Ltd Servo controller for motor
CN101931362A (en) * 2010-05-19 2010-12-29 西安理工大学 Direct torque control device and method for permanent magnet synchronous motor
CN102684592A (en) * 2012-05-10 2012-09-19 南京航空航天大学 Torque and flux linkage control method for permanent synchronous motor
CN108608628A (en) * 2018-03-16 2018-10-02 黄力 Genetic algorithm corrects PID controller and its application of ant group algorithm optimization

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘智城: "基于蚁群算法的无刷直流电机矢量控制系统研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114114898A (en) * 2022-01-27 2022-03-01 北京航空航天大学 Air-to-air missile PID parameter setting method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107070341B (en) Permanent magnet synchronous motor method for suppressing torque ripple based on Robust Iterative Learning Control
CN110429881B (en) Active-disturbance-rejection control method of permanent magnet synchronous motor
CN108551287B (en) Torque closed-loop control method for vehicle built-in permanent magnet synchronous motor driving system
CN110739893B (en) Improved self-adaptive trackless Kalman filtering rotational inertia identification method
CN102624303B (en) Method for estimating angular acceleration of permanent magnet brushless direct-current motor
CN109560736A (en) Method for controlling permanent magnet synchronous motor based on second-order terminal sliding formwork
CN108134549A (en) A kind of method for improving permanent magnet synchronous motor speed estimate stability
CN105827168A (en) PMSM control method and system based on sliding mode observation
CN108365787A (en) A kind of Permanent-magnet Synchronous-motor Speed Servo System and its design method based on internal model control
CN112701968B (en) Method for improving prediction control robustness performance of permanent magnet synchronous motor model
CN106330038B (en) A kind of PMLSM sensorless strategy method based on adaptive gain sliding mode observer
CN106602952B (en) A kind of PMSM permanent magnet flux linkage full rank discrimination method
CN110995102A (en) Direct torque control method and system for permanent magnet synchronous motor
CN104779873B (en) A kind of predictive functional control algorithm for PMSM servo-drive systems
CN111371357A (en) Permanent magnet synchronous motor speed regulation control method based on self-adaptive supercoiling algorithm
CN110649845A (en) Photoelectric turntable position tracking control method based on robust generalized predictive control
CN111987943A (en) Robust performance improving method for model predictive control of permanent magnet synchronous motor
CN113890438A (en) Speed-sensorless control method based on built-in permanent magnet synchronous motor
CN114944801A (en) PMSM (permanent magnet synchronous motor) position sensorless control method based on innovation self-adaptive extended Kalman
CN113659895B (en) Permanent magnet synchronous motor full-state constraint finite time control method based on instruction filtering
CN111614299A (en) Direct torque control method based on ant colony optimization PID permanent magnet synchronous motor
CN113381662B (en) Permanent magnet synchronous motor random system fuzzy control method based on finite time dynamic surface technology
CN115102454A (en) Estimation method for electromagnetic torque of permanent magnet synchronous motor
CN104734591B (en) The tandem system stabilization speed regulating method of motorcar electric steering motor Field orientable control
Zhao et al. Design of MRAC and Modified MRAC for the Turntable

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200901