CN105186959A - Parameter setting method of sliding mode controller of servo system - Google Patents

Parameter setting method of sliding mode controller of servo system Download PDF

Info

Publication number
CN105186959A
CN105186959A CN201510527408.9A CN201510527408A CN105186959A CN 105186959 A CN105186959 A CN 105186959A CN 201510527408 A CN201510527408 A CN 201510527408A CN 105186959 A CN105186959 A CN 105186959A
Authority
CN
China
Prior art keywords
particle
servo system
parameter
error
mode 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.)
Pending
Application number
CN201510527408.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.)
Harbin Institute of Technology
Original Assignee
Harbin Institute 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 Harbin Institute of Technology filed Critical Harbin Institute of Technology
Priority to CN201510527408.9A priority Critical patent/CN105186959A/en
Publication of CN105186959A publication Critical patent/CN105186959A/en
Pending legal-status Critical Current

Links

Abstract

The invention, which belongs to the motion control field, relates to a parameter setting method of a sliding mode controller of a servo system. The method comprises: step one, a transfer function model of a servo system is established according mechanical and electrical structures of the servo system and needed parameters in the model are obtained; step two, a corresponding system simulink simulation model is established and input and output interfaces needed for a particle swarm optimization algorithm are left; step three, a proper fitness function is selected according to location tracking error and speed tracking error demands; step four, programming is carried out in matlab to optimize a particle swarm; step five, corresponding c,k, and epsilon of location vectors are transferred into the simulink simulation model to obtain a location error response and a speed error response of the system; step six, the speed and location of each particle are updated; step seven, when the k reaches a set maximum iterations number, the iteration process is completed and an optimization result is outputted; otherwise, the operation of the step five is carried out again; and step eight, a global optimal location vector is substituted into a sliding mode controller of the servo system. According to the invention, buffeting amplitude minimization or complete elimination of buffeting can be realized; and the tracking error can be minimized.

Description

A kind of servo system sliding-mode attitude conirol method
Technical field
The present invention is a kind of servo system sliding-mode attitude conirol method, belongs to motion control field.
Background technology
Sliding formwork controls (SlidingModeControl), is proposed the fifties in last century by the former Russian scholar.It is a kind of discontinuous nonlinear control method in essence, maximum feature is that controller architecture is changed in time, in the dynamic process of system, according to the current state set (such as deviation, the derivative of output and different order), structure and the output of controller is changed according to the algorithm preset, guarantee system amount to be controlled does reciprocating motion by a small margin on a preset condition based on the state trajectory expected, can ensure that system has excellent robustness when Parameters variation and external disturbance.
In complicated servo system, exist and such as drive the non-linear factors such as saturated, External force interference, motor force oscillation, for load and variations in temperature sensitivity, have the change of parameter, mechanical resonant and measurement noises, these factors cannot modeling accurately.Sliding mode controller solves this problem, and the characteristic good of the anti-Parameters variation of sliding mode controller disturbance rejection, is suitable in complicated servo system.But owing to there is time, Spatial lag in system, measure inaccuracy, inertial element, makes the system adopting sliding formwork to control there will be chattering phenomenon, and choose reasonable parameter suppresses buffeting and optimization system dynamic response to have very high using value for the application of sliding mode controller in engineering.
Summary of the invention
The object of this invention is to provide a kind of servo system sliding-mode attitude conirol method, is the problem of buffeting problem in order to solve sliding mode controller and the dynamic property optimizing sliding mode controller.
Described object is realized by following scheme: a kind of described servo system sliding-mode attitude conirol method, and its method step is:
Step one: set up servo system transfer function model according to the machinery of servo system and electrical structure, obtain parameter required in model, described parameter comprises: resistance suffered by motor, motor load size, counter electromotive force of motor constant, motor torque constant, armature circuit resistance, armature inductance, according to reality by the above-mentioned corresponding parameter of structure choice controlling motor;
Step 2: the sliding mode controller according to servo system models and employing builds corresponding system simulink simulation model, reserves the input and output interface needed for particle swarm optimization algorithm;
Step 3: according to position tracking error and speed tracing error requirement, select suitable fitness function, be set to wherein parameter k vand k sfor being not less than the number of 0, represent the weight of velocity error and site error, e vrepresent velocity error, e srepresent site error, t 0for the initial time of fitness function assessment, t 1for the end time of fitness function assessment;
Step 4: in conjunction with interface and the fitness function of simulink model, programme in matlab and population is optimized, the population m of initialization population, maximum iteration time N, the dimension D of search volume is set to 3, corresponding 3 parameter c, k and ε to be optimized, space search scope corresponds to 3 parameters and is respectively [c min, c max], [k min, k max] and [ε min, ε max], Studying factors c 1, c 2value be all set to 2, habitual weight w gets 0.6, and particle position vector velocity initial value is obtained by random process, three dimensions corresponding three parameter c, k and ε to be optimized respectively of particle position vector, local and global optimum position vector initial value P iand P gsubstitute into fitness function by particle initial position to calculate;
Step 5: by c corresponding for position vector, k and ε imports site error and the velocity error response that simulink simulation model obtains system into, the fitness value of particle is calculated according to fitness function, if the fitness value of this particle be less than particle before fitness value, then replace p by the current location of this particle i; If this particle fitness value is less than the fitness value of population global optimum, then replace p with the position of this particle g;
Step 6: upgrade the speed of each particle and position, kth time circulation time, i-th particle position vector is now flying speed is current particle personal best particle is p i=(p i1, p i2..., p iD), current global optimum position is p g=(p g1, p g1..., p gD), then kth+1 circulation time, i-th particle rapidity is respectively tieed up and can be determined by following equation: v i d k + 1 = wv i d k + c 1 r 1 ( p i d - x i d k ) + c 2 r 2 ( p g d - x i d k ) , Position vector iteration is respectively tieed up and is x i d k + 1 = x i d k + v i k + 1 , Wherein r 1and r 2be the random number between 0 to 1, d is dimension, and value is from 0 to D;
Step 7: after k reaches the maximum iteration time of setting, finishing iteration process, exports optimum results, otherwise returns step 5;
Step 8: the global optimum's position vector after the optimal parameter obtain optimization and iteration terminate substitutes into servo system sliding-mode controller, servo system sliding-mode controller is applied to servo system, whether the property indices of check system meets the demands, if performance index meet, tuning process terminates, otherwise, enter next round optimization until meet.
The present invention can realize buffet amplitude minimum or buffet eliminate completely, tracking error reaches minimum.Parameter after fully optimised is the optimized parameter of setting models under given fitness function.
Accompanying drawing explanation
Fig. 1 is the servo system block diagram of the employing sliding mode controller that the inventive method relates to.
Embodiment
Embodiment one: shown in composition graphs 1, illustrates the technical scheme of this embodiment, and its method step is:
Step one: set up servo system transfer function model according to the machinery of servo system and electrical structure, obtain parameter required in model, described parameter comprises: resistance suffered by motor, motor load size, counter electromotive force of motor constant, motor torque constant, armature circuit resistance, armature inductance, according to reality by the above-mentioned corresponding parameter of structure choice controlling motor;
Step 2: the sliding mode controller according to servo system models and employing builds corresponding system simulink simulation model, reserves the input and output interface needed for particle swarm optimization algorithm;
Step 3: according to position tracking error and speed tracing error requirement, select suitable fitness function, be set to wherein parameter k vand k sfor being not less than the number of 0, represent the weight of velocity error and site error, e vrepresent velocity error, e srepresent site error, t 0for the initial time of fitness function assessment, t 1for the end time of fitness function assessment;
Step 4: in conjunction with interface and the fitness function of simulink model, programme in matlab and population is optimized, the population m of initialization population, maximum iteration time N, the dimension D of search volume is set to 3, corresponding 3 parameter c, k and ε to be optimized, space search scope corresponds to 3 parameters and is respectively [c min, c max], [k min, k max] and [ε min, ε max], Studying factors c 1, c 2value be all set to 2, habitual weight w gets 0.6, and particle position vector velocity initial value is obtained by random process, three dimensions corresponding three parameter c, k and ε to be optimized respectively of particle position vector, local and global optimum position vector initial value P iand P gsubstitute into fitness function by particle initial position to calculate;
Step 5: by c corresponding for position vector, k and ε imports site error and the velocity error response that simulink simulation model obtains system into, the fitness value of particle is calculated according to fitness function, if the fitness value of this particle be less than particle before fitness value, then replace p by the current location of this particle i; If this particle fitness value is less than the fitness value of population global optimum, then replace p with the position of this particle g;
Step 6: upgrade the speed of each particle and position, kth time circulation time, i-th particle position vector is now flying speed is current particle personal best particle is p i=(p i1, p i2..., p iD), current global optimum position is p g=(p g1, p g1..., p gD), then kth+1 circulation time, i-th particle rapidity is respectively tieed up and can be determined by following equation: v i d k + 1 = wv i d k + c 1 r 1 ( p i d - x i d k ) + c 2 r 2 ( p g d - x i d k ) , Position vector iteration is respectively tieed up and is x i d k + 1 = x i d k + v i d k + 1 , Wherein r 1and r 2be the random number between 0 to 1, d is dimension, and value is from 0 to D;
Step 7: after k reaches the maximum iteration time of setting, finishing iteration process, exports optimum results, otherwise returns step 5;
Step 8: the global optimum's position vector after the optimal parameter obtain optimization and iteration terminate substitutes into servo system sliding-mode controller, servo system sliding-mode controller is applied to servo system, whether the property indices of check system meets the demands, whether elimination is buffeted, if performance index meet and do not have chattering phenomenon, then tuning process terminates, otherwise, enter next round optimization until meet.
Operation principle: in Fig. 1, k ufor controlled quentity controlled variable gain, k efor counter electromotive force of motor constant, k tfor electro mechanic time constant, L is armature resistance, and R is armature inductance.Sliding mode controller can be determined by two parts: switching function and tendency rate, switching function determination sliding-mode surface, and tendency rate certainty annuity is convergence sliding-mode surface in which way, and the two meets to meet stability, the behavior of system near sliding-mode surface controlled by tendency rate.Invention is for the typical servo system sliding-mode Controller gain variations of one, and its model can be expressed as s = c e + e · s · = - ϵ sgn ( s ) - k s , Wherein for switching function.Tendency rate is this tendency rate is called as exponential approach rate, in inhibitory control device chattering phenomenon, have good effect.Optimization is regulated to the parameter ε of exponential approach rate and k, system can be made to move to sliding-mode surface with speed faster, and the high frequency of system can be suppressed to buffet, reach and obtain best balance point in the dynamic quality and chattering suppress of system, significant for the servo system requiring good rapidity.Exponential approach item in tendency rate separate as s=s (0) e -kt, make use of in the motion process of state to sliding-mode surface, be first with index speed convergence, shorten the control time, indicial response makes again hourly velocity near arrival sliding-mode surface very little, avoids that to move to hourly velocity near sliding-mode surface excessive.Meanwhile, because simple exponential approach rate is an asymptotic process near sliding-mode surface, can not ensure that finite time arrives, sliding mode not on sliding-mode surface, so add a constant speed convergence item same-action with it.Constant speed convergence item is visible when s → 0 velocity of approach be ε instead of 0, with this ensure finite time arrive sliding-mode surface.In actual use, there is good inhibition to buffeting to have good dynamic characteristic simultaneously, needing the value suitably increasing k, reducing the value of ε.By the optimization to parameter c, k and the ε of 3 in sliding mode controller, reach and system is responded fast, simultaneously adjusting system, eliminate and buffet.The optimal anchor direction correctness of particle swarm optimization algorithm and the reliability of result depend on the fitness function chosen.The performance requirement of servo system is the tracking realizing position and speed, generally three sections can be divided into: accelerate in running, at the uniform velocity and slow down, particle cluster algorithm is adopted to be optimized sliding mode controller, optimizing process can carry out separately for each stage, be met the optimized parameter of each stage running performance requirement, also can give overall consideration to, be met the more excellent parameter of whole service process performance requirement.If at the uniform velocity the section time started is t 11, the end time is t 12, the accelerating sections time started is t 21, end at t 22, the braking section time started is t 31, end at t 32, velocity error is e v, site error is e s.If only have higher tracer request at the uniform velocity section, fitness function can be set to wherein parameter k vand k sfor being not less than the number of 0, represent the weight of velocity error and site error, concrete numerical value can adjust according to actual conditions, as higher to position error requirements, can increase k svalue; If higher to accelerating sections tracer request, fitness function can be set to similarly, the fitness function of braking section can be obtained.If all high to the requirement of full section, can be set to t is the control action end time.

Claims (1)

1. a servo system sliding-mode attitude conirol method, is characterized in that its method step is:
Step one: set up servo system transfer function model according to the machinery of servo system and electrical structure, obtain parameter required in model, described parameter comprises: resistance suffered by motor, motor load size, counter electromotive force of motor constant, motor torque constant, armature circuit resistance, armature inductance, according to reality by the above-mentioned corresponding parameter of structure choice controlling motor;
Step 2: the sliding mode controller according to servo system models and employing builds corresponding system simulink simulation model, reserves the input and output interface needed for particle swarm optimization algorithm;
Step 3: according to position tracking error and speed tracing error requirement, select suitable fitness function, be set to wherein parameter k vand k sfor being not less than the number of 0, represent the weight of velocity error and site error, e vrepresent velocity error, e srepresent site error, t 0for the initial time of fitness function assessment, t 1for the end time of fitness function assessment;
Step 4: in conjunction with interface and the fitness function of simulink model, programme in matlab and population is optimized, the population m of initialization population, maximum iteration time N, the dimension D of search volume is set to 3, corresponding 3 parameter c, k and ε to be optimized, space search scope corresponds to 3 parameters and is respectively [c min, c max], [k min, k max] and [ε min, ε max], Studying factors c 1, c 2value be all set to 2, habitual weight w gets 0.6, and particle position vector velocity initial value is obtained by random process, three dimensions corresponding three parameter c, k and ε to be optimized respectively of particle position vector, local and global optimum position vector initial value P iand P gsubstitute into fitness function by particle initial position to calculate;
Step 5: by c corresponding for position vector, k and ε imports site error and the velocity error response that simulink simulation model obtains system into, the fitness value of particle is calculated according to fitness function, if the fitness value of this particle be less than particle before fitness value, then replace p by the current location of this particle i; If this particle fitness value is less than the fitness value of population global optimum, then replace p with the position of this particle g;
Step 6: upgrade the speed of each particle and position, kth time circulation time, i-th particle position vector is now flying speed is current particle personal best particle is p i=(p i1, p i2..., p iD), current global optimum position is p g=(p g1, p g1..., p gD), then kth+1 circulation time, i-th particle rapidity is respectively tieed up and can be determined by following equation: v i d k + 1 = wv i d k + c 1 r 1 ( p i d - x i d k ) + c 2 r 2 ( p g d - x i d k ) , Position vector iteration is respectively tieed up and is x i d k + 1 = x i d k + v i d k + 1 , Wherein r 1and r 2be the random number between 0 to 1, d is dimension, and value is from 0 to D;
Step 7: after k reaches the maximum iteration time of setting, finishing iteration process, exports optimum results, otherwise returns step 5;
Step 8: the global optimum's position vector after the optimal parameter obtain optimization and iteration terminate substitutes into servo system sliding-mode controller, servo system sliding-mode controller is applied to servo system, whether the property indices of check system meets the demands, if performance index meet, tuning process terminates, otherwise, enter next round optimization until meet.
CN201510527408.9A 2015-08-25 2015-08-25 Parameter setting method of sliding mode controller of servo system Pending CN105186959A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510527408.9A CN105186959A (en) 2015-08-25 2015-08-25 Parameter setting method of sliding mode controller of servo system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510527408.9A CN105186959A (en) 2015-08-25 2015-08-25 Parameter setting method of sliding mode controller of servo system

Publications (1)

Publication Number Publication Date
CN105186959A true CN105186959A (en) 2015-12-23

Family

ID=54908852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510527408.9A Pending CN105186959A (en) 2015-08-25 2015-08-25 Parameter setting method of sliding mode controller of servo system

Country Status (1)

Country Link
CN (1) CN105186959A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106842920A (en) * 2017-01-04 2017-06-13 南京航空航天大学 For the robust Fault-Tolerant Control method of multiple time delay four-rotor helicopter flight control system
CN108345216A (en) * 2018-01-12 2018-07-31 中国科学院理化技术研究所 A kind of magnetic suspension bearing robust controller building method based on multi-objective particle swarm algorithm
CN108445749A (en) * 2018-02-05 2018-08-24 西北工业大学 A kind of parameter tuning method applied to high_order sliding mode control device
CN108809192A (en) * 2018-06-07 2018-11-13 江苏江荣智能科技有限公司 A kind of parameter self-tuning control system for permanent-magnet synchronous motor
CN110161974A (en) * 2018-02-16 2019-08-23 发那科株式会社 The computer-readable medium that parameter determines auxiliary device and has program recorded thereon
CN110492814A (en) * 2019-08-29 2019-11-22 华中科技大学 The method of particle swarm algorithm optimization synovial membrane structure changes permanent magnet synchronous motor control parameter
CN113719972A (en) * 2021-08-09 2021-11-30 Tcl空调器(中山)有限公司 Control parameter setting method, device, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040107013A1 (en) * 2002-12-02 2004-06-03 Fuller James W. Constrained dynamic inversion control algorithm
US20110257800A1 (en) * 2010-04-14 2011-10-20 Zakariya Al-Hamouz Particle swarm optimizing sliding mode controller
CN104199294A (en) * 2014-08-14 2014-12-10 浙江工业大学 Motor servo system bilateral neural network friction compensation and limited time coordination control method
CN104698847A (en) * 2015-02-10 2015-06-10 浙江工业大学 Nonsingular terminal sliding mode (NTSM) designated performance control method of turntable servo system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040107013A1 (en) * 2002-12-02 2004-06-03 Fuller James W. Constrained dynamic inversion control algorithm
US20110257800A1 (en) * 2010-04-14 2011-10-20 Zakariya Al-Hamouz Particle swarm optimizing sliding mode controller
CN104199294A (en) * 2014-08-14 2014-12-10 浙江工业大学 Motor servo system bilateral neural network friction compensation and limited time coordination control method
CN104698847A (en) * 2015-02-10 2015-06-10 浙江工业大学 Nonsingular terminal sliding mode (NTSM) designated performance control method of turntable servo system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
余胜威: "《MATLAB优化算法案例分析与应用》", 1 September 2014, 清华大学出版社 *
林旭梅: "交流伺服系统摩擦力补偿和优化滑模仿真", 《计算机仿真》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106842920A (en) * 2017-01-04 2017-06-13 南京航空航天大学 For the robust Fault-Tolerant Control method of multiple time delay four-rotor helicopter flight control system
CN106842920B (en) * 2017-01-04 2019-04-30 南京航空航天大学 For the robust Fault-Tolerant Control method of multiple time delay four-rotor helicopter flight control system
CN108345216A (en) * 2018-01-12 2018-07-31 中国科学院理化技术研究所 A kind of magnetic suspension bearing robust controller building method based on multi-objective particle swarm algorithm
CN108345216B (en) * 2018-01-12 2021-10-26 中国科学院理化技术研究所 Construction method of robust controller of magnetic suspension bearing based on multi-target particle swarm algorithm
CN108445749A (en) * 2018-02-05 2018-08-24 西北工业大学 A kind of parameter tuning method applied to high_order sliding mode control device
CN108445749B (en) * 2018-02-05 2020-05-12 西北工业大学 Parameter setting method applied to high-order sliding mode controller
CN110161974B (en) * 2018-02-16 2021-06-08 发那科株式会社 Parameter determination support device and computer-readable medium having program recorded thereon
CN110161974A (en) * 2018-02-16 2019-08-23 发那科株式会社 The computer-readable medium that parameter determines auxiliary device and has program recorded thereon
CN108809192A (en) * 2018-06-07 2018-11-13 江苏江荣智能科技有限公司 A kind of parameter self-tuning control system for permanent-magnet synchronous motor
CN108809192B (en) * 2018-06-07 2020-12-04 江苏江荣智能科技有限公司 Parameter self-tuning permanent magnet synchronous motor control system
CN110492814A (en) * 2019-08-29 2019-11-22 华中科技大学 The method of particle swarm algorithm optimization synovial membrane structure changes permanent magnet synchronous motor control parameter
CN113719972A (en) * 2021-08-09 2021-11-30 Tcl空调器(中山)有限公司 Control parameter setting method, device, equipment and computer readable storage medium
CN113719972B (en) * 2021-08-09 2022-12-13 Tcl空调器(中山)有限公司 Control parameter setting method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105186959A (en) Parameter setting method of sliding mode controller of servo system
CN113283156B (en) Energy-saving control method for subway station air conditioning system based on deep reinforcement learning
CN106647283A (en) Auto-disturbance rejection position servo system optimization design method based on improved CPSO
CN103728882B (en) The self-adaptation inverting non-singular terminal sliding-mode control of gyroscope
CN105607473B (en) The attitude error Fast Convergent self-adaptation control method of small-sized depopulated helicopter
CN104360596B (en) Limited time friction parameter identification and adaptive sliding mode control method for electromechanical servo system
CN103406909A (en) Tracking control device and method of mechanical arm system
CN110579962B (en) Turbofan engine thrust prediction method based on neural network and controller
CN103296940A (en) Self-adaptive PI (proportional-integral) control method and self-adaptive PI control system
CN105404152A (en) Flight quality prediction method for simulating subjective evaluation of pilot
CN105298734A (en) Parameter identification method for water turbine adjusting system
CN105279579B (en) A kind of preferred method of turbine-generator units excitation system pid control parameter
CN104881512A (en) Particle swarm optimization-based automatic design method of ripple-free deadbeat controller
CN109062040A (en) Predictive PID method based on the optimization of system nesting
CN115085611A (en) Linear motor motion control method, device, equipment and storage medium
CN103353759A (en) CDM (Coefficient Diagram Method)-based missile autopilot design method
CN104678763A (en) Friction compensation and dynamic surface control method based on least squares support vector machine for electromechanical servo system
CN105353610A (en) Magnetic-control shape memory alloy actuator modeling method based on KP model
CN104614993A (en) Adaptive sliding mode preset performance control method for micro-gyroscope
CN111240201B (en) Disturbance suppression control method
Pekař et al. Algebraic optimal control in RMS ring: A case study
CN101887240B (en) Radar antenna servo system design method based on structure and control integration
CN103809434B (en) The multistage PID controller design method of the compound root locus of Longitudinal Flight model cluster
Zhang et al. Integral terminal sliding mode control for a class of nonaffine nonlinear systems with uncertainty
CN104753440B (en) A kind of sliding mode predictive control method based on differentiator of servomotor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151223

WD01 Invention patent application deemed withdrawn after publication