원시데이터 수집 시스템
선정목록으로

Robust Optimal Controller for Two-wheel Self-Balancing Vehicles Using Particle Swarm Optimization

관련 산업용 섬유 · (9) 타이어코드

기본 정보

저자
  1. Vũ Ngọc Kiên
  2. Nguyễn Tiến Duy
  3. Dao Huy Du
  4. Nguyen Phuong Huy
  5. Nguyen Hong Quang
DOI
10.18178/ijmerr.12.1.16-22
저널
International Journal of Mechanical Engineering and Robotics Research
발행년도
2023
발행기관
EJournal Publishing
피인용수
8
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.18178/ijmerr.12.1.16-22
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W4313575531

평가 내용

관련도
관련
사업분야
산업용 섬유 · (9) 타이어코드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

초록이 없습니다.

본문 39,930자

본문 펼치기
_International Journal of Mechanical Engineering and Robotics Research Vol. 12, No. 1, January 2023_ # Robust Optimal Controller for Two-wheel Self- Balancing Vehicles Using Particle Swarm Optimization Vu Ngoc Kien <sup>1</sup>, Nguyen Tien Duy <sup>2</sup>, Dao Huy Du <sup>2</sup>, Nguyen Phuong Huy <sup>2</sup>, Nguyen Hong Quang3* 1 Faculty of Electrical Engineering, Thai Nguyen University of Technology, Thai Nguyen City, Vietnam 2 Faculty of Electronics Engineering, Thai Nguyen University of Technology, Thai Nguyen City, Vietnam 3 Faculty of Mechanical, Electrical, Electronics Technology, Thai Nguyen University of Technology, Thai Nguyen City, Vietnam *Correspondence: quang.nguyenhong@tnut.edu.vn _Abstract_ —Control of a self-balancing vehicle is a challenging considered an unstable model. The bicycle can achieve but exciting research topic. The challenge of researching stable equilibrium [1] under certain conditions when it is self-balancing bicycles is maintaining balance when the bike moving forward [1]. Different models are used to model is stationary and when the bike is moving. This paper, bicycles, such as linear and nonlinear models [1]. Many through analysis and comparison of two-wheeled vehicle other solutions have been proposed to solve the balancing balancing methods, shows that the method that best meets problem of bicycle without a driver, in which it can be the requirements of the two-wheeled vehicle balance control problem is the balancing method using a flywheel stabilizer. categorized into two groups: with or without a stabilizer. Compared with the gyroscopic flywheel stabilizer, the Controlling the vehicle's steering angle [2-6] is the inverted pendulum flywheel stabilizer has the advantages of most typical method of balancing a two-wheel vehicle fast response speed and energy saving, so we choose the without a stabilizer. The control system will change the pendulum flywheel stabilizer to reverse to control the vehicle's steering angle in conjunction with the vehicle's balance of the two-wheeler. By modeling and analyzing the moving state to generate centrifugal force to maintain the two-wheel vehicle model, it shows that the vehicle model is vehicle's equilibrium. This method has the advantage that subjected to uncertainties. Hence, the robust controller is an there is no need to add a stabilizer, but the downside is appropriate controller for balancing two-wheel vehicles. that it is impossible to maintain balance while the vehicle However, the controller designed according to the robust control algorithm RH∞ is often high-order, affecting the is stationary. actual control quality. We proposed using the particle There are many solutions to the design of stabilizers swarm optimization (PSO) algorithm to find a low-order for self-balancing two-wheelers. This solution can use a robust controller from the high-order robust controller. By flywheel in studies [7-11] or use two flywheels in studies comparing the efficiency of the low-order robust controller [12-14]. The stabilizer uses a flywheel according to the according to PSO with the high-order robust controller and gyroscope principle [7-14]. In this method, the flywheel other low-order robust controllers, we have proven the rotates at high speed to accumulate energy; then, the correctness of the low-order robust controller according to control system will control the angle of the flywheel to PSO. Simulation results show that a two-wheel vehicle using generate force that helps maintain the vehicle's a low-order robust controller according to PSO can stabilize the vehicle and give good control quality. equilibrium. The advantages of this method are fast response and a large balancing force. _Keywords_ —Two-wheel self-balancing vehicles, Inverted A balancer in the form of a repositionable weight has pendulum, Robust controller RH  , article swarm been introduced in [15]. In [15], by adding weight and optimization, Model order reduction changing the position of the weight on the vehicle, the I. INTRODUCTION Bicycles (two-wheel vehicles) are a widely used means of transport worldwide. It is pretty challenging to balance and stabilize the bicycle without a driver. Therefore, the self-balancing bicycle is an exciting area of research for researchers. The equilibrium state of the bicycle depends on its speed [1]. When the bicycle is stationary, it is Manuscript received August 9, 2022; revised September 1, 2022; accepted October 5, 2022. considered an unstable model. The bicycle can achieve stable equilibrium [1] under certain conditions when it is moving forward [1]. Different models are used to model bicycles, such as linear and nonlinear models [1]. Many other solutions have been proposed to solve the balancing problem of bicycle without a driver, in which it can be categorized into two groups: with or without a stabilizer. Controlling the vehicle's steering angle [2-6] is the most typical method of balancing a two-wheel vehicle without a stabilizer. The control system will change the vehicle's steering angle in conjunction with the vehicle's moving state to generate centrifugal force to maintain the vehicle's equilibrium. This method has the advantage that there is no need to add a stabilizer, but the downside is that it is impossible to maintain balance while the vehicle is stationary. There are many solutions to the design of stabilizers for self-balancing two-wheelers. This solution can use a flywheel in studies [7-11] or use two flywheels in studies [12-14]. The stabilizer uses a flywheel according to the gyroscope principle [7-14]. In this method, the flywheel rotates at high speed to accumulate energy; then, the control system will control the angle of the flywheel to generate force that helps maintain the vehicle's equilibrium. The advantages of this method are fast response and a large balancing force. A balancer in the form of a repositionable weight has been introduced in [15]. In [15], by adding weight and changing the position of the weight on the vehicle, the vehicle's center of gravity is changed to create a state of equilibrium for the vehicle. This method helps the vehicle maintain equilibrium when stationary and when the vehicle is in motion. But adding heavy objects to the vehicle, it will increase the size and weight of the vehicle and the response speed of the system is often slow. To help the system have a faster response speed, in [16-17], replace the weight with a flywheel. By changing the flywheel's structure, the vehicle's center of gravity also changes, thereby helping the vehicle maintain a state of balance. _International Journal of Mechanical Engineering and Robotics Research Vol. 12, No. 1, January 2023_ In [18-23], the balancer uses a flywheel based on the inverted pendulum principle. By controlling the rotation of the flywheel, the control system will create a force to balance the gravity of the vehicle, which will help the vehicle balance stably. The basic feature of this method is that the flywheel speed is slow, so the power consumption of the flywheel is low, and the response speed of the control system is fast. However, the value of the balancing force of the system is not large, so the range of tilt angle to maintain the balance of the vehicle is small. To expand the range of tilt angle, the study [24] combined the center of gravity change method and the method of steering angle control. This paper uses the flywheel based on the inverted pendulum principle to build a self-balancing two-wheel model. In terms of control, there are many different methods, such as PD control [21], PID control [17-19], LQG and MPC control [21], and robust control [22]. The analysis of balancing solutions for two-wheel vehicles shows that each method has its advantages and disadvantages. When the vehicle is operating in reality, the vehicle will be affected by some uncertain factors, such as load, noise, external force, etc., so the vehicle model can be considered an uncertain model [10]. Therefore, robust optimal control is a potential solution. This study introduces a two-wheel vehicle balance control system using a robust optimal algorithm. However, the stable optimal controller usually has high order [27-32]. Design a low-order stable controller for two-wheeled vehicles proposed in the reference [11]. It was suggested to use the PSO algorithm to find a low-order controller satisfying the requirements of sustainable control. In the study [30-33], a high-order controller was designed to meet the needs of sustainable rules. Then it was proposed to use the pole-conserving order reduction algorithm to simplify the controller. The study [34] suggests using algorithms based on balanced truncation and all-order reduction for high-order controllers. Considering the problem of model order reduction, in addition to order reduction algorithms, it is also possible to use optimal order reduction algorithms. However, in the problem of order reduction of the high-order optimal controller for self-balancing two-wheelers, there have been no studies using optimal order reduction algorithms. Many optimization algorithms can be used to determine the optimal low-order controller, such as Genetic Algorithm (GA), PSO, and Ant colony optimization (ACO) algorithm... The advantage of the PSO algorithm is the ability to search within a given availability area. The PSO algorithm does not require a detailed mathematical description, and it is easy to find the best possible value by optimizing the objective function and high computational efficiency. The disadvantage of the PSO algorithm is that the accuracy is not high, and the sensitivity is different. Therefore, in this paper, we propose to use the PSO algorithm to reduce the order of the high-order stable controller of the two-wheeled vehicle balance control system. Identifying the low-level controller (by the PSO algorithm) will simplify the control programming code, reduce the response time, and help meet the system's realtime control requirements. The layout of the article is as follows: Mathematical models of vehicles and high-order robust controllers are presented in Section 2. Next, Section 3 introduces the PSO algorithm and the steps to determine the parameters of the low-order robust controller according to the PSO algorithm. Then, section 4 presents the simulation results of the control system using reduced-order controllers and the original controller. Section 5 is the conclusion of the paper. II. DYNAMIC MODEL, MATHEMATICAL MODEL, AND ROBUST CONTROL OF TWO-WHEEL SELF-BALANCING VEHICLES _A._ _Dynamic Model and Mathematical Model of Two-_ _wheel Self-balancing Vehicles_ A bicycle model designed to be able to move forward and backward, maintaining self-equilibrium in [33] is shown in Fig. 1 as follows: Figure 1. Self-balancing two-wheel vehicle model [36] The vehicle's balance system is built on the principle of an inverted pendulum. Accordingly, the electric motor will provide motion to the flywheel so that the flywheel rotates around the axis with acceleration  to create torque. This torque will balance with gravity to help the vehicle maintain equilibrium. Details of the vehicle configuration are presented in [33]. Using the Lagrange equation [8] and the linearization method around the equilibrium point ( == 0, sin = ), with the assumption that the tilt angle of the vehicle is minimal (  100 ), the model of the vehicle is described as follows [33]: _f_ + _I_ _f_ = _Tm_  _<u>U</u>_ <u>−</u> _<u>Te</u>_ <u></u>  _R_  _I_ _f_ + _I_ _f_ = _Tm_  _<u>U</u>_ <u>−</u> _<u>Te</u>_  _R_ _f_ + _I_ _f_ = _Tm_  _<u>e</u>_ 1 2 3 Define = _x_ 1  _x_ = = _x_ 2  ; _y_ = _x_ ; _u_ = _U_ = _x_ 3  = _x_ 1  = = _x_ 2  ; _y_ = _x_ ; _u_ = = _x_ 3     ### and E = ( m hb b 2 + mf h 2 f + Ib + I f ) ; F = ( m hb b + mf hf ) The state model of the vehicle has the following form[33]: _x_ = A _x_ + B _u_ _y_ = C _x_ + D _u_ where _International Journal of Mechanical Engineering and Robotics Research Vol. 12, No. 1, January 2023_ Designing a powerful controller according to the control design process in [31-32] for the vehicle balancing system, we obtain the following controller: ( _s_ ) R ( _s_ ) = A (*) B ( _s_ ) A ( _s_ ) 0 1 0 A      0 1 0    =  _<u>Fg</u>_ 0 _<u>aTmTe</u>_   ( _E_ - _I_ _f_ ) _R_ ( _E_ - _I_ _f_ )  − ( _EFg_ - _I_ _f_ ) 0 - _aTmTe_ _I_ _f_ _R_ ( _EE_ - _I_ _f_ )  0 _<u>m</u>_ _<u>e</u>_ ( _E_ - _I_ _f_ ) _R_ ( _E_ - _I_ _f_ ) _<u>Fg</u>_ 0 _<u>aTmTe</u>_ _E_ - _I_ _f_ ) _R_ ( _E_ - _I_ _f_ _<u>m</u>_ _<u>e</u>_ _f_ _f_ _<u>Fg</u>_ _<u>E</u>_ _E_ - _I_ _f_ ) 0 - _aTmTe_ _I_ _f_ _R_ ( _E_ - _I_ _f_ ( _E_ - _I_ _f_ ) 0 - _aTmTe_ _I_ _f_ _R_ ( _E_ - _I_ _f_ ) _f_ ) _m_ _e_ _I_ _f_ _R_ ( _E_ - _I_ _f_ 2.23.10 - 7 _s_ 30 - 4.67.10 - 4 _s_ 29 - 0.266 _s_ 30 - 4.67.10 - 4 _s_ 29 - 0.266 _s_ _s_ ) = - 2.23.10 - 7 _s_ 30 - 4.67.10 - 4 _s_ 29 = 7 30 - - 4 29 - 28 - 22.96 _s_ 27 - 1006 _s_ 26 - 2.853.104 _s_ 25 - 1.862.1015 _s_ 11 22.96 _s_ 27 - 1006 _s_ 26 - 2.853.104 _s_ 25 - 5.837.10 1.862.1015 _s_ 11 - 3.398.10 _s_ 27 - 1006 _s_ 26 - 2.853.104 _s_ 25 - 5.837.105 _s_ 27 - 1006 _s_ 26 - 2.853.104 _s_ 25 - 5.837.105 _s_ 24 15 _s_ 11 - 3.398.1015 _s_ 10 _s_ 11 - 3.398.1015 _s_ 0 - 4.199.1011 _s_ 18 - 9.144.106 _s_ 23 _s_ 18 - 9.144.106 _s_ 23 - 1.139.108 _s_ 11 _s_ 18 - 9.144.106 _s_ 23 - 1.139.108 _s_ 22 9 21 - 9 20 - 10 19 B      0    =  - _aTm_   _R_ ( _E_ - _I_ _f_ )     _E_   _m_   _aR_ _I_ _f_ _R_ ( _E_ - _I_ _f_ )  _R_ ( _E_ - _I_ _f_ ( _E_ - _I_ _f_ ) _aT_ _m_ - 1.158.109 _s_ 21 - 9.776.109 _s_ 20 - 2.172.1012 _s_ 17 - 9.663.1012 _s_ 16 4.199.1011 _s_ 18 - 9.144.106 _s_ 23 - 1.139.108 1.158.109 _s_ 21 - 9.776.109 _s_ 20 - 6.949.1010 _s_ 21 - 9.776.109 _s_ 20 - 6.949.1010 _s_ _s_ 17 - 9.663.1012 _s_ 013 _f_ 12 17 - 12 16 _s_ 13 15 _E_ _aRm_ _I_ _f_ _R_ ( _E_ - _I_ _f_ _m_ ( _E_ - _I_ _f_ ) - 1.231.1014 _s_ 14 - 3.53.1014 _s_ 13 2.172.1012 _s_ 17 - 9.663.1012 _s_ 16 - 3.71.1 1.231.1014 _s_ 14 - 3.53.1014 _s_ 13 - 8.74.10 14 _s_ 14 - 3.53.1014 _s_ 13 - 8.74.1014 _s_ 12 _s_ 14 - 3.53.1014 _s_ 13 - 8.74.1014 _s_ _f_ _f_ C =  1 0 0  ; _D_ =  0 . Applying the vehicle's parameters in Table I and transforming the state space model into a transfer function representation, we get: TABLE I. THE PARAMETERS OF VEHICLE MODEL [33] <u>Parameters</u> <u>Value</u> <u>Unit</u> <u>Meaning</u> _Ib_ 0.1105 Kg.m2 Moment of inertia <u>of the vehicle</u> _hb_ 0.105 m Height of center of gravity of the <u>vehicle</u> _I_ _f_ 0.03289 Kg.m2 Moment of inertia <u>of the flywheel</u> _h_ _f_ 0.205 m Height of center of gravity of the <u>flywheel</u> _mb_ 10.024 Kg Mass vehicle (excluding of the <u>flywheel)</u> _m_ _f_ 3.976 Kg <u>flywheel Mass</u> of the <sup>_T_</sup> _e_ 0.045 V.s/Rad Electric motor <u>constant</u> _Tm_ 0.045 Nm/A <u>constant Motor</u> torque _<u>R</u>_ 0.52 <u></u> Motor resistance _<u>g</u>_ 9.81 m/s2 Gravity <u>acceleration</u> <u>α</u> <u>(</u> _<u>s</u>_ <u>)</u> <u>−</u> <u>0.223</u> _<u>s</u>_ W ( _s_ ) = U ( _s_ ) = _s_ 3 + 0.1284 _s_ 2 - 47.2 _s_ - 5.589 (1) _B._ _Robust Controller for Two-wheel Self-balancing_ _Vehicles_ The structure of the vehicle balance control system is shown in Fig. 2 as follows: Figure 2. The structure of the vehicle balance control system [33] Because the programming code of the 30th-order controller is complex, the control system will have a slow response rate which may cause the vehicle to fail to maintain equilibrium. To simplify the program code, we try simplifying the controller of order 30. The objective of the controller simplification problem is: the controller's order is as small as possible; The control system when using a low-level controller, still ensures stable vehicle balance. For the controller simplification problem, there are two basic solutions as follows: Solution 1: Determine the low-order controller from the high-order controller using the order reduction algorithm. The selected low-order controller will be the controller with the lowest order in which the control system, when using the controller, still meets the requirements of maintaining vehicle stability. Solution 2: Apply optimization algorithms to determine the parameters of a low-order controller with a fixed structure so that the low-order controller's response coincides with the high-order controller's response. - 5.276.1015 _s_ 9 - 6.903.1015 _s_ 8 15 _s_ 9 - 6.903.1015 _s_ 8 - 7.511.1015 _s_ 7 5.276.1015 _s_ 9 - 6.903.1015 _s_ 8 - 7.511.1015 _s_ 9 - 6.903.1015 _s_ 8 - 7.511.1015 _s_ - 6.676.1015 _s_ 6 15 _s_ 6 - 4.721.1015 _s_ 5 6.676.1015 _s_ 6 - 4.721.10 _s_ 6 - 4.721.1015 _s_ 5 - 2.556.1015 _s_ 4 - 9.953.1014 _s_ 3 15 _s_ 4 - 9.953.1014 _s_ 3 - 2.482.1014 _s_ 2 2.556.1015 _s_ 4 - 9.953.1014 _s_ 3 - 2.482.10 _s_ 4 - 9.953.1014 _s_ 3 - 2.482.1014 _s_ 2 - 2.977.1013 _s_ 13 2.977.1013 _s_ - 0.00439 _s_ 4.971.10 - 14 _s_ 30 + 2.032.10 4.971.10 - 14 _s_ 30 + 2.032.10 - 10 _s_ 29 - 7 _s_ 28 + 1.221.10 - 4 _s_ 27 + 9.72.10 - 14 30 + B ( _s_ ) = 4.971.10 - 14 _s_ 30 + 2.032.10 - 10 _s_ _s_ = 14 30 + - 10 29 + 2.663.10 - 7 _s_ 28 + 1.221.10 - 4 _s_ 27 + 7 _s_ 28 + 1.221.10 - 4 _s_ 27 + 9.72.10 - 3 _s_ 26 _s_ 28 + 1.221.10 - 4 _s_ 27 + 9.72.10 - 3 _s_ 2.663.10 - 7 _s_ 28 + 1.221.10 - 4 _s_ 27 + 9.72.10 + 0.3918 _s_ 25 + 10.14 _s_ 24 + 187.1 _s_ 23 + 25 + 10.14 _s_ 24 + 187.1 _s_ 23 + 2612 _s_ 22 _s_ 25 + 10.14 _s_ 24 + 187.1 _s_ 23 + 2612 _s_ 0.3918 _s_ 25 + 10.14 _s_ 24 + 187.1 _s_ 23 + 2612 + 2.862.104 _s_ 21 + 4 21 + 7 18 _s_ _s_ _s_ 2.862.104 _s_ 21 + 1.088.107 _s_ + 2.523.105 _s_ 20 + 1.82.106 _s_ 19 + 5 _s_ 20 + 1.82.106 _s_ 19 + 5.428.107 _s_ 17 _s_ 19 + 5.428.107 _s_ 2.523.105 _s_ 20 + 1.82.106 _s_ 19 + 5.428.10 + 2.273.108 _s_ 16 + 8 _s_ 16 + 8.005.108 _s_ 15 2.273.108 _s_ 16 + 8.005.108 _s_ 1 5 + 2.372.109 _s_ 14 + 5.9.109 _s_ 13 + 9 _s_ 14 + 5.9.109 _s_ 13 + 1.225.1010 _s_ 12 2.372.109 _s_ 14 + 5.9.109 _s_ 13 + 1.225.10 _s_ 14 + 5.9.109 _s_ 13 + 1.225.1010 _s_ + 2.107.1010 _s_ 11 + 10 _s_ 11 + 2.962.1010 _s_ 10 2.107.1010 _s_ 11 + 2.962.10 _s_ 11 + 2.962.1010 _s_ + 3.341.1010 _s_ 9 + 2.941.1010 _s_ 8 + 10 _s_ 9 + 2.941.1010 _s_ 8 + 1.931.1010 _s_ 7 3.341.1010 _s_ 9 + 2.941.1010 _s_ 8 + 1.931.10 _s_ 9 + 2.941.1010 _s_ 8 + 1.931.1010 _s_ + 8.743.109 _s_ 6 + + 1.519.108 _s_ 4 9 _s_ 6 + 2.286.109 _s_ 5 8 _s_ 4 - 5.226.107 _s_ 3 8.743.109 _s_ 6 + 2.286.109 _s_ 6 + 2.286.109 _s_ 5 1.519.108 _s_ 4 - 5.226.10 _s_ 4 - 5.226.107 _s_ - 6 _s_ 2 + 5.32.10 - 22 _s_ + 3.6.10 - 6 _s_ 2 + 6 _s_ 2 + 5.32.10 - 22 3.6.10 - 6 _s_ 2 + 5.32.10 _International Journal of Mechanical Engineering and Robotics Research Vol. 12, No. 1, January 2023_ xidk + 1 = xidk + vidk + 1 (3) max - _k_ - <u>(</u> <u>max</u> − <u>min</u> <u>)</u>  _k_ = max - _k_ - <u>(</u> <u>max</u> − <u>min</u> <u>)</u> (4) iter_max Figure 3. Two solutions for designing low-order controllers for bicycle model In this paper, we choose Solution 2 to simplify the root controller. We compare and evaluate the low-order controllers by both methods to choose a suitable loworder controller. III. ORDER REDUCTION OF THE HIGH-ORDER ROBUST CONTROLLER USING THE PSO Swarm optimization is a random search algorithm based on simulating the behavior and interaction of flocks of birds or schools of fish looking for food [38]. Each bird (or individual element) in the flock (population) is characterized by two components, the position vector xi and the velocity vector (displacement) vi. Each individual has a fitness value evaluated by the fitness function. Initially, the PSO is initialized with random position and velocity vectors. Then, in each iteration of the algorithm, the velocity the position vectors of each individual will be updated according to formulas (5) and (6). Also, at each iteration (every time moving in d-dimensional space), each individual is affected by two pieces of information. The first information is the best position it has achieved so far, _P_ best_id . The second information is the best position in all the search processes of individuals in the population so far, _G_ best . The modeling of updating each individual's position according to its best position and that of all individuals in the population up to the present time is illustrated in Fig. 4. Figure 4. Graph illustrating a search point using PSO (2) Each _id_ - th individual is a vector _Pi_ =  _pid_ 1, _pid_ 2, , _pidd_  <sup>and its corresponding</sup> Pbest_id is calculated as below: _P_ (( _bestk_ + 1)_ _id_ ) = _f_ ( _x_ ( _k_ + 1) ( _best_ _ _id_ ) ( _x_ )  (P(bestk id),if fitness(x di (k+1) )>P(bestk id ) =  fitness(x di (k+1) ), if fitness(x di (k+1) )  (bestk id),if fitness(x di (k+1) )>P(bestk id ) (P(bestk d),if fitness(x di (k+1) )>P id) i (bestid (5) i (k+1) ), if fitness(x di (k+1) )  P(bestk id ) fitness(x di (k+1) ), if fitness(x di (k+1) )  P(bestk ) ) id The value of _G_ best at the iteration k is: ### Gbest = min ( P best k id ) (6) In which: Xidk and Vidk is the current position and velocity of individual id at iteration k. The limit of velocity is defined in the domain [-Vmax, Vmax], where Vmax is a user-defined constant; ω is the time-varying inertia weight, chosen as presented in [38], which linearly decreases from 0.9 to 0.4 according to (4). c1 and c2 are two learning factors used to control the influence of social and cognitive components, defined as [38], i.e., c1=c2=2. PSO-based order reduction In this study, we reduce the order of the transfer function (*) from 30 to 4, that is, A(s) and B(s) have a maximum degree of 4. The coefficients of A(s) and B(s) are _ai_ and _bi_, respectively. The fourth order transfer function has the following form: _H_ ( _s_ ) = _<u>ab</u>_ <u>44</u> _<u>ss</u>_ 44 <u>++</u> _<u>ab s</u>_ <u>33</u> _<u>s</u>_ 33 <u>++</u> _<u>ab</u>_ 22 _ss_ 22 ++ _b sa s_ 11 ++ _ba_ 00 (**) According to (**), ten variables need to be optimized. The trial and error method determines the search domain for these variables. The objective function is selected according integrates the absolute error (IAE) index as _n_ | _e_ ( _k_ _n_ = | _e_ ( _k_ ) | → min (7) ##  _k_ = 1 ## fitness =  | e ( k ) | → min _k_ = 1 _k_ where e(k) is the error at time sample k,n is the total number of data samples of a simulation run. The particle swarm() function has been supported for optimization in Matlab Toolbox according to the PSO algorithm. In this study, we use the existing particle swarm() process and follow the following algorithm: We obtained the following results by conducting a parameter search of the 4th-order controller according to the flowchart of Fig. 5: _International Journal of Mechanical Engineering and Robotics Research Vol. 12, No. 1, January 2023_ To evaluate the efficiency of the reduce-order controller, we simplify the high-order controller according to Solution 1 by the balanced truncation algorithm (balancmr) [35,37] and the balanced stochastic truncation algorithm (bstmr) [36]. TABLE II. 4 <sup>TH</sup> -ORDER CONTROLLERS ACCORDING TO SOLUTION 1 1.985.105 _s_ 4 + 199.5 The transfer function of the reduced order controller – Rr(s) - 4.531  104 _s_ 4 - 8.686  4 _s_ 4 - 8.686  104 _s_ 3 4.531  104 _s_ 4 - 8.686  104 4 _s_ 4 - 8.686  104 _s_ 3 - 4.417  105 _s_ 2 - 4.32  5 _s_ 2 - 4.32  105 4.417  105 _s_ 2 - 4.32  10 _s_ 2 - 4.32  105 _s_ - 1.986  _s_ 4 + 5 1.986  105 _s_ 4 + 199.9 _s_ 4 + 199.9 _s_ 3 _s_ 4 + 199.9 _s_ 3 - 158.7 _s_ 2 - 2.782  2 - 2.782  10-14 158.7 _s_ 2 - 2.782  10 _s_ 2 - 2.782  10-14 _s_ -17 Figure 5. Flowchart of implementation according to PSO algorithm a4= -1.498×10 <sup>6</sup> ; a3= -3.54567×10 <sup>7</sup> ; a2= -7.32×10 <sup>8</sup> ; a1= -3.66749×10 <sup>8</sup> ; a0= -1.51109×10 <sup>7</sup> b4= 1.1966; b3= 471.218; b2= 12252; b1= -872.448; b0= 987.251 Substituting the coefficients ai and bi into the formula (**), we obtain the transfer function of the 4th-order controller as follows: Order reduction algorithm Balanced truncation model reduction (balancmr) in [35,37] Balanced stochastic truncation model reduction (bstmr) in [36] - 2.132  10 - 2.132  - 4.531.104 _s_ 4 - 4.479.105 _s_ 2 4 _s_ 4 - 7.535.104 _s_ 3 4.531.104 _s_ 4 - 7.535.104 4.479.105 _s_ 2 - 4.342.105 _s_ 4 - 7.535.104 _s_ 3 _s_ 2 - 4.342.105 _s_ 5 _s_ 2 - 4.342.105 5 + 4 + 199.5 _s_ 3 _s_ 4 + 199.5 _s_ - 158.4 _s_ 2 2 - 3.556.10-14 158.4 _s_ 2 - 3.556.10 _s_ 2 - 3.556.10-14 _s_ - 1.31.10 -15 - 1.498  106 _s_ 4 - 3.54567  107 _s_ 3 - 7.32  6 4 -  7 3 -  8 2 1.498  106 _s_ 4 - 3.54567  107 _s_ 3 - 7.32  10 _s_ 4 - 3.54567  107 _s_ 3 - 7.32  108 _s_ <u>−</u> <u>3.66749</u> <u></u> <u>108</u> _<u>s</u>_ <u>−</u> <u>1.51109</u> <u></u> <u>107</u> = 1.1966 _s_ 4 + 471.218 _s_ 3 + - 872.448 _s_ + 987.251 8 <u>−</u> <u></u> 7 <u>−</u> <u>3.66749</u> <u></u> <u>108</u> _<u>s</u>_ <u>−</u> <u>1.51109</u> <u></u> <u>107</u> ( _s_ ) = 1.1966 _s_ 4 + 471.218 _s_ 3 + 12252 - 872.448 _s_ + 987.251 <u>−</u> <u>3.66749</u> <u></u> <u>108</u> _<u>s</u>_ <u>−</u> <u>1.51109</u> <u></u> <u>107</u> _H_ ( _s_ ) = 1.1966 _s_ 4 + 471.218 _s_ 3 + 12252 _s_ - 872.448 _s_ + 987.251 4 + 3 + 2 IV. PSO CONTROLLING A TWO-WHEEL SELF-BALANCING VEHICLE USING A ROBUST LOW-LEVEL CONTROLLER The response of the two-wheel self-balancing vehicle control system is shown in Fig. 6 and Fig. 7. Figure 6. Tilt angle response of the vehicle control system using the 4 <sup>th</sup> order controller according to the PSO algorithm and the 30 <sup>th</sup> order controller Comment: From Fig. 6, the 4 <sup>th</sup> -order controller, according to the PSO algorithm, can balance the twowheel vehicles. The vehicle control system using the 4thorder controller has shorter transient times and less oscillation than the control system using the original controller. However, the overshoot of the control system using the 4th-order controller is larger than that of the vehicle control system using the original controller. Figure 7. Tilt response of the vehicle control system using 4th and 30th-order controls Comment: From Fig. 7, it can be seen that the control system using the 4th order controller according to the balanced truncation algorithm cannot maintain the vehicle balance. The control system uses a 4th-order controller according to the balanced stochastic truncation algorithm, and the PSO algorithm is capable of maintaining vehicle balance. The control system using the 4th order controller (PSO algorithm) has better response quality than the control system using the 4th order controller (bstmr algorithm). By comparing and evaluating the reduced order controllers according to Solution 1 and Solution 2, we choose the 4th order controller according to the PSO algorithm to replace the original controller. V. CONCLUSION Designing a robust controller for a self-balancing twowheel vehicle balancing system using flywheels according to the principle of an inverted pendulum obtained a 30th-order controller. Using a 4th-order _International Journal of Mechanical Engineering and Robotics Research Vol. 12, No. 1, January 2023_ controller to control the two-wheeled vehicle balancing system shows that the system ensures stable balance. Using the PSO optimization algorithm, we determined that a 4th-order controller can replace a 30th-order controller. The simulation results also show that: The response quality of the control system when using the 4th-order controller, according to PSO, is better than when using the 30th-order controller and other 4th-order controllers. The paper results show that the solution using the PSO optimization algorithm to determine the parameters of the low-order controller is feasible and highly effective compared to other order reduction algorithms. The contribution of this paper is to develop a method to design a low-order optimal controller for a two-wheeled vehicle balance control system using the PSO algorithm. In the next study, we will use many different optimization algorithms to identify low-order controllers and evaluate the efficiency of low-order controllers in accurate control systems. CONFLICT OF INTEREST The authors declare no conflict of interest AUTHOR CONTRIBUTIONS V. N. K. was originally responsible for conceptualization and methodology. N.T.D., D.H.D., and N.P.H. verified the simulation data, data curation, investigation, and draft writing. N.H.Q. contributes a formal analysis of review, editing, and supervision. All authors have read and agreed to the published version of the manuscript. ACKNOWLEDGMENT The authors gratefully acknowledge the Thai Nguyen University of Technology, Vietnam, for supporting this work REFERENCES [1] K. J. Astrom, R. E. Klein, and A. Lennartsson, "Bicycle dynamics and control: Adapted bicycles for education and research," _IEEE_ _Control Syst._, vol. 25, no. 4, pp. 26–47, 2005, doi: 10.1109/MCS.2005.1499389. [2] Y. Tanaka and T. Murakami, "Self sustaining bicycle robot with steering controller," in _Proc_ . _International Workshop on Advanced_ _Motion_ _Control,_ _AMC_, 2004, pp. 193–197, doi: 10.1109/amc.2004.1297665. [3] T. Takei, M. Tsuruta, J. Okumura, T. Nakabayashi, and T. Tsubouchi, "Stabilized motion of a small sized bike robot only by steering control," in _Proc_ . _International Workshop on Advanced_ _Motion_ _Control,_ _AMC_, 2010, pp. 466–471, doi: 10.1109/AMC.2010.5464085. [4] S. Vatanashevanopakorn and M. Parnichkun, "Steering control based balancing of a bicycle robot," in _Proc_ . _2011 IEEE_ _International Conference on Robotics and Biomimetics, ROBIO_, 2011, pp. 2169–2174, doi: 10.1109/ROBIO.2011.6181613. [5] C. F. Huang, Y. C. Tung, and T. J. Yeh, "Balancing control of a robot bicycle with uncertain center of gravity," in _Proc_ . _IEEE_ _International Conference on Robotics and Automation_, 2017, pp. 5858–5863, doi: 10.1109/ICRA.2017.7989689. [6] X. Li, H. Dong, F. Han, and J. Li, "A survey on set-membership filtering for networked control systems under communication protocols," _Syst. Sci. Control Eng._, vol. 6, no. 1, pp. 293–303, 2018, doi: 10.1080/21642583.2018.1494639. [7] A. V. Beznos _et al._, "Control of autonomous motion of two-wheel bicycle with gyroscopic stabilisation," in _Proc_ . _IEEE International_ _Conference on Robotics and Automation_, 1998, vol. 3, pp. 2670– 2675, doi: 10.1109/ROBOT.1998.680749. [8] H. Yetkin, S. Kalouche, M. Vernier, G. Colvin, K. Redmill, and U. Ozguner, "Gyroscopic stabilization of an unmanned bicycle," in _Proc_ . _the American Control Conference_, 2014, pp. 4549–4554, doi: 10.1109/ACC.2014.6859392. [9] P. Y. Lam, "Gyroscopic stabilization of a kid-size bicycle," in _Proc_ . _2011 IEEE 5th Int. Conf. Cybern. Intell. Syst. CIS 2011_, vol. 5, no. 6, pp. 247–252, 2011, doi: 10.1109/ICCIS.2011.6070336. [10] S. C. Spry and A. R. Girard, "Gyroscopic stabilisation of unstable vehicles: Configurations, dynamics, and control," _Veh. Syst. Dyn._, vol. 46, no. SUPPL.1, pp. 247–260, 2008, doi: 10.1080/00423110801935863. [11] B. T. Thanh and M. Parnichkun, "Balancing control of bicyrobo by particle swarm optimization-based structure-specified mixed H2/H∞ control," _Int. J. Adv. Robot. Syst._, vol. 5, no. 4, pp. 395– 402, 2008, doi: 10.5772/6235. [12] D. Karnopp, "Tilt control for gyro-stabilized two-wheeled vehicles," _Veh. Syst. Dyn._, vol. 37, no. 2, pp. 145–156, 2002, doi: 10.1076/vesd.37.2.145.3535 [13] R. Lot and J. Fleming, "Gyroscopic stabilisers for powered two wheeled vehicles," _Veh. Syst. Dyn._, vol. 57, no. 9, pp. 1381–1406, 2019, doi: 10.1080/00423114.2018.1506588 [14] S. H. Park and S. Y. Yi, "Active balancing control for unmanned bicycle using scissored-pair control moment gyroscope," _Int. J._ _Control. Autom. Syst._, vol. 18, no. 1, pp. 217–224, 2020, doi: 10.1007/s12555-018-0749-7. [15] S. Lee and W. Ham, "Self stabilizing strategy in tracking control of unmanned electric bicycle with mass balance," in _Proc_ . _IEEE_ _International Conference on Intelligent Robots and Systems_, 2002, vol. 3, pp. 2200–2205, doi: 10.1109/irds.2002.1041594. [16] M. Yamakita, A. Utano, and K. Sekiguchi, "Experimental study of automatic control of bicycle with balancer," in _Proc_ . _IEEE_ _International Conference on Intelligent Robots and Systems_, 2006, pp. 5606–5611, doi: 10.1109/IROS.2006.282281. [17] L. Keo, K. Yoshino, M. Kawaguchi, and M. Yamakita, "Experimental results for stabilizing of a bicycle with a flywheel balancer," in _Proc_ . _IEEE International Conference on Robotics_ _and_ _Automation_, 2011, pp. 6150–6155, doi: 10.1109/ICRA.2011.5979991. [18] Y. Kim, H. Kim, and J. Lee, "Stable control of the bicycle robot on a curved path by using a reaction wheel," _J. Mech. Sci._ _Technol._, vol. 29, no. 5, pp. 2219–2226, 2015, doi: 10.1007/s12206-015-0442-1. [19] S. I. Lee, I. W. Lee, M. S. Kim, H. He, and J. M. Lee, "Balancing and driving control of a bicycle robot," _J. Inst. Control. Robot._ _Syst._, vol. 18, no. 6, pp. 532–539, 2012. [20] H. W. Kim, J. W. An, H. D. Yoo, and J. M. Lee, "Balancing control of bicycle robot using PID control," in _International_ _Conference on Control, Automation and Systems_, 2013, pp. 145– 147, doi: 10.1109/ICCAS.2013.6703879. [21] Y. Kim, H. Kim, and J. Lee, "Stable control of the bicycle robot on a curved path by using a reaction wheel," _J. Mech. Sci._ _Technol._, vol. 29, no. 5, pp. 2219–2226, 2015, doi: 10.1007/s12206-015-0442-1. [22] A. K. Vo _et al._, "Pd controller for bicycle model balancing," _Robotica_, vol. 2, no. 1, pp. 37–42, 2018. [23] C. H. Chiu and C. Y. Wu, "Bicycle robot balance control based on a robust intelligent controller," _IEEE Access_, vol. 8, pp. 84837– 84849, 2020, doi: 10.1109/ACCESS.2020.2992792. [24] P. Seekhao, K. Tungpimolrut, and M. Parnichkun, "Development and control of a bicycle robot based on steering and pendulum balancing," _Mechatronics_, vol. 69, p. 102386, 2020, doi: 10.1016/j.mechatronics.2020.102386. [25] A. Sikander and R. Prasad, "Reduced order modelling based control of two wheeled mobile robot," _J. Intell. Manuf._, vol. 30, no. 3, pp. 1057–1067, 2019, doi: 10.1007/s10845-017-1309-3. [26] N. K. Vu, H. Q. Nguyen, K. T. Ngo, and P. N. Dao, "Study on model reduction algorithm based on schur analysis," 2021, pp. 179–188, doi: 10.1007/978-981-15-7527-3_18. [27] H. Aggumus and R. Guclu, "Robust H∞ control of STMDs used in structural systems by hardware in the loop simulation method," in _Actuators_, 2020, vol. 9, no. 3, p. 55, doi: 10.3390/ACT9030055. _International Journal of Mechanical Engineering and Robotics Research Vol. 12, No. 1, January 2023_ [28] M. G. Ortega and F. R. Rubio, "Systematic design of weighting matrices for the H∞ mixed sensitivity problem," _J. Process_ _Control_, vol. 14, no. 1, pp. 89–98, 2004, doi: 10.1016/S09591524(03)00035-0. [29] Z. Lu, L. Wang, F. Zhang, and F. Xu, "The design of robust controller for networked control system with time delay," _Math._ _Probl. Eng._, vol. 2015, 2015, doi: 10.1155/2015/189013. [30] C. H. Nguyen, K. N. Vu, and D. H. Dao, "Applying order reduction model algorithm for balancing control problems of twowheeled mobile robot," in _Proc_ . _the 2013 IEEE 8th Conference on_ _Industrial Electronics and Applications, ICIEA 2013_, 2013, pp. 1302–1307, doi: 10.1109/ICIEA.2013.6566568. [31] J. Ma, S. Wang, X. Gao, X. Zhu, Y. Qiu, and Z. Wang, "Youla parameterization robust control strategy considering power system uncertainties," _Electr. Power Components Syst._, vol. 42, no. 11, pp. 1152–1157, 2014, doi: 10.1080/15325008.2014.921948. [32] D. W. Gu, P. H. Petkov, and M. M. Konstantinov, _Robust Control_ _Design with MATLAB®_, no. 9781447146810. Springer Science & Business Media, 2013. [33] N. K. Vu and H. Q. Nguyen, "Balancing control of two-wheel bicycle problems," _Math. Probl. Eng._, vol. 2020, 2020, doi: 10.1155/2020/6724382. [34] Ngoc Kien Vu, Hong Quang Nguyen, "Design low-order robust controller for self-balancing two-wheel vehicle," _Mathematical_ _Problems_ _in_ _Engineering_, vol. 2021, p. 22, 2021. https://doi.org/10.1155/2021/6693807 [35] N. K. Vu and H. Q. Nguyen, "Model order reduction algorithm based on preserving dominant poles," _Int. J. Control. Autom. Syst._, vol. 19, no. 6, pp. 2047–2058, 2021, doi: 10.1007/s12555-0190990-8. [36] A. C. Antoulas, _Approximation of Large-scale Dynamical Systems:_ _An Overview_, vol. 37, no. 11. SIAM, 2004. [37] A. K. Prajapati and R. Prasad, "Order reduction in linear dynamical systems by using improved balanced realization technique," _Circuits, Syst. Signal Process._, vol. 38, no. 11, pp. 5289–5303, 2019, doi: 10.1007/s00034-019-01109-x. [38] J. Kennedy and R. Eberhart, "Particle swarm optimization," in _Proc_ . _ICNN'95-international conference on neural networks_, vol. 4, pp. 1942–1948. Copyright © 2023 by the authors. This is an open access article distributed under the Creative Commons Attribution License (CC BYNC-ND 4.0), which permits use, distribution and reproduction in any medium, provided that the article is properly cited, the use is noncommercial and no modifications or adaptations are made. Vu Ngoc Kien received received a Ph.D. of control engineering and automation fromThai Nguyen University of Technology (TNUT), Vietnam, in 2015. He was appointed as an associate professor in 2022. He is currently the head of Electrical Equipment Department at the Faculty of Electrical Engineering. His research interests include modeling – simulation, robust control, model order reduced algorithm. https://orcid.org/0000-0002-2782-841X Nguyen Tien Duy received received his MSc degree in information technology from Thainguyen University, Vietnam, in 2007. In 2017 he received PhD degree from Graduate University of Science and Technology, Vietnam Academy of Science and Technology, Vietnam, on Applied Mathematics. He is currently a lecturer at Thainguyen University of Technology, Thainguyen University, Vietnam. His research interests include Artificial Intelligence, Hedge-Algebras, Engineering controls, Computing. https://orcid.org/0000-0003-2636071X Dao Huy Du received a Ph.D of telecommunication engineering from HaNoi University of Science and Technology (HUST), Vietnam, in 2013. He was appointed as an associate professor in 2018. He is currently the head of Training Office. His research interests include Digital Processing, model order reduced algorithm, Mobile Communication. Optical fiber communications. https://orcid.org/00000002-9349-3814 Huy Nguyen Phuong <sup>received a Ph.D. of</sup> telecommunication engineering from HaNoi University of Science and Technology (HUST), Vietnam, in 2014. He is currently the head of Electronics Department at the Faculty of Electronics Engineering. His research interests include Digital Processing, Soft Computing, Optimal algorithm. https://orcid.org/0000-0002-58875796 Nguyen Hong Quang Nguyen Hong Quang received a Ph.D. of control engineering and automation from Thai Nguyen University of Technology (TNUT), Vietnam, in 2019. He is currently a lecturer at the Faculty of Mechanical, Electrical, Electronics Technology. His research interests include electrical drive systems, control systems, and their applications, adaptive dynamic programming control, robust nonlinear model predictive control, motion control, and mechatronics. engineering and automation from Electronics Technology. control systems, robust nonlinear model motion control, and mechatronics. https://orcid.org/0000-0002-0433-3094

섹션 본문 35문단 · 15,983자

(제목 없음)

1Control of a self-balancing vehicle is a challenging but exciting research topic. The challenge of researching self-balancing bicycles is maintaining balance when the bike is stationary and when the bike is moving. This paper, through analysis and comparison of two-wheeled vehicle balancing methods, shows that the method that best meets the requirements of the two-wheeled vehicle balance control problem is the balancing method using a flywheel stabilizer. Compared with the gyroscopic flywheel stabilizer, the inverted pendulum flywheel stabilizer has the advantages of fast response speed and energy saving, so we choose the pendulum flywheel stabilizer to reverse to control the balance of the two-wheeler. By modeling and analyzing the two-wheel vehicle model, it shows that the vehicle model is subjected to uncertainties. Hence, the robust controller is an appropriate controller for balancing two-wheel vehicles. However, the controller designed according to the robust control algorithm RH∞ is often high-order, affecting the actual control quality. We proposed using the particle swarm optimization (PSO) algorithm to find a low-order robust controller from the high-order robust controller. By comparing the efficiency of the low-order robust controller according to PSO with the high-order robust controller and other low-order robust controllers, we have proven the correctness of the low-order robust controller according to PSO. Simulation results show that a two-wheel vehicle using a low-order robust controller according to PSO can stabilize the vehicle and give good control quality.

I. INTRODUCTION

2Bicycles (two-wheel vehicles) are a widely used means of transport worldwide. It is pretty challenging to balance and stabilize the bicycle without a driver. Therefore, the self-balancing bicycle is an exciting area of research for researchers. The equilibrium state of the bicycle depends on its speed [1]. When the bicycle is stationary, it is Manuscript received August 9, 2022; revised September 1, 2022; accepted October 5, 2022. considered an unstable model. The bicycle can achieve stable equilibrium [1] under certain conditions when it is moving forward [1]. Different models are used to model bicycles, such as linear and nonlinear models [1]. Many other solutions have been proposed to solve the balancing problem of bicycle without a driver, in which it can be categorized into two groups: with or without a stabilizer.

3Controlling the vehicle's steering angle [2][3][4][5][6] is the most typical method of balancing a two-wheel vehicle without a stabilizer. The control system will change the vehicle's steering angle in conjunction with the vehicle's moving state to generate centrifugal force to maintain the vehicle's equilibrium. This method has the advantage that there is no need to add a stabilizer, but the downside is that it is impossible to maintain balance while the vehicle is stationary.

4There are many solutions to the design of stabilizers for self-balancing two-wheelers. This solution can use a flywheel in studies [7][8][9][10][11] or use two flywheels in studies [12][13][14]. The stabilizer uses a flywheel according to the gyroscope principle [7][8][9][10][11][12][13][14]. In this method, the flywheel rotates at high speed to accumulate energy; then, the control system will control the angle of the flywheel to generate force that helps maintain the vehicle's equilibrium. The advantages of this method are fast response and a large balancing force.

5A balancer in the form of a repositionable weight has been introduced in [15]. In [15], by adding weight and changing the position of the weight on the vehicle, the vehicle's center of gravity is changed to create a state of equilibrium for the vehicle. This method helps the vehicle maintain equilibrium when stationary and when the vehicle is in motion. But adding heavy objects to the vehicle, it will increase the size and weight of the vehicle and the response speed of the system is often slow. To help the system have a faster response speed, in [16][17], replace the weight with a flywheel. By changing the flywheel's structure, the vehicle's center of gravity also changes, thereby helping the vehicle maintain a state of balance.

6In [18][19][20][21][22][23], the balancer uses a flywheel based on the inverted pendulum principle. By controlling the rotation of the flywheel, the control system will create a force to balance the gravity of the vehicle, which will help the vehicle balance stably. The basic feature of this method is that the flywheel speed is slow, so the power consumption of the flywheel is low, and the response speed of the control system is fast. However, the value of the balancing force of the system is not large, so the range of tilt angle to maintain the balance of the vehicle is small. To expand the range of tilt angle, the study [24] combined the center of gravity change method and the method of steering angle control.

7This paper uses the flywheel based on the inverted pendulum principle to build a self-balancing two-wheel model. In terms of control, there are many different methods, such as PD control [21], PID control [17][18][19], LQG and MPC control [21], and robust control [22]. The analysis of balancing solutions for two-wheel vehicles shows that each method has its advantages and disadvantages. When the vehicle is operating in reality, the vehicle will be affected by some uncertain factors, such as load, noise, external force, etc., so the vehicle model can be considered an uncertain model [10]. Therefore, robust optimal control is a potential solution.

8This study introduces a two-wheel vehicle balance control system using a robust optimal algorithm. However, the stable optimal controller usually has high order [27][28][29][30][31][32].

9Design a low-order stable controller for two-wheeled vehicles proposed in the reference [11]. It was suggested to use the PSO algorithm to find a low-order controller satisfying the requirements of sustainable control. In the study [30][31][32][33], a high-order controller was designed to meet the needs of sustainable rules. Then it was proposed to use the pole-conserving order reduction algorithm to simplify the controller. The study [34] suggests using algorithms based on balanced truncation and all-order reduction for high-order controllers.

10Considering the problem of model order reduction, in addition to order reduction algorithms, it is also possible to use optimal order reduction algorithms. However, in the problem of order reduction of the high-order optimal controller for self-balancing two-wheelers, there have been no studies using optimal order reduction algorithms. Many optimization algorithms can be used to determine the optimal low-order controller, such as Genetic Algorithm (GA), PSO, and Ant colony optimization (ACO) algorithm... The advantage of the PSO algorithm is the ability to search within a given availability area. The PSO algorithm does not require a detailed mathematical description, and it is easy to find the best possible value by optimizing the objective function and high computational efficiency. The disadvantage of the PSO algorithm is that the accuracy is not high, and the sensitivity is different. Therefore, in this paper, we propose to use the PSO algorithm to reduce the order of the high-order stable controller of the two-wheeled vehicle balance control system. Identifying the low-level controller (by the PSO algorithm) will simplify the control programming code, reduce the response time, and help meet the system's realtime control requirements.

11The layout of the article is as follows: Mathematical models of vehicles and high-order robust controllers are presented in Section 2. Next, Section 3 introduces the PSO algorithm and the steps to determine the parameters of the low-order robust controller according to the PSO algorithm. Then, section 4 presents the simulation results of the control system using reduced-order controllers and the original controller. Section 5 is the conclusion of the paper.

II. DYNAMIC MODEL, MATHEMATICAL MODEL, AND ROBUST CONTROL OF TWO-WHEEL SELF-BALANCING VEHICLES

12A. Dynamic Model and Mathematical Model of Twowheel Self-balancing Vehicles A bicycle model designed to be able to move forward and backward, maintaining self-equilibrium in [33] is shown in Fig. 1 as follows: Figure 1. Self-balancing two-wheel vehicle model [36] The vehicle's balance system is built on the principle of an inverted pendulum. Accordingly, the electric motor will provide motion to the flywheel so that the flywheel rotates around the axis with acceleration  to create torque. This torque will balance with gravity to help the vehicle maintain equilibrium. Details of the vehicle configuration are presented in [33].

13Using the Lagrange equation [8] and the linearization method around the equilibrium point ( 0  == , sin = ), with the assumption that the tilt angle of the vehicle is minimal (

14, the model of the vehicle is described as follows [33]: ;;

15The state model of the vehicle has the following form [33]:

16Applying the vehicle's parameters in Table I and transforming the state space model into a transfer function representation, we get:

17B. Robust Controller for Two-wheel Self-balancing Vehicles The structure of the vehicle balance control system is shown in Fig. 2 as follows: Figure 2. The structure of the vehicle balance control system [33] Designing a powerful controller according to the control design process in [31][32] for the vehicle balancing system, we obtain the following controller:

++

18Because the programming code of the 30th-order controller is complex, the control system will have a slow response rate which may cause the vehicle to fail to maintain equilibrium. To simplify the program code, we try simplifying the controller of order 30. The objective of the controller simplification problem is: the controller's order is as small as possible; The control system when using a low-level controller, still ensures stable vehicle balance.

19For the controller simplification problem, there are two basic solutions as follows:

20Solution 1: Determine the low-order controller from the high-order controller using the order reduction algorithm. The selected low-order controller will be the controller with the lowest order in which the control system, when using the controller, still meets the requirements of maintaining vehicle stability. Solution 2: Apply optimization algorithms to determine the parameters of a low-order controller with a fixed structure so that the low-order controller's response coincides with the high-order controller's response. In this paper, we choose Solution 2 to simplify the root controller. We compare and evaluate the low-order controllers by both methods to choose a suitable loworder controller.

III. ORDER REDUCTION OF THE HIGH-ORDER ROBUST CONTROLLER USING THE PSO

21Swarm optimization is a random search algorithm based on simulating the behavior and interaction of flocks of birds or schools of fish looking for food [38]. Each bird (or individual element) in the flock (population) is characterized by two components, the position vector xi and the velocity vector (displacement) vi. Each individual has a fitness value evaluated by the fitness function. Initially, the PSO is initialized with random position and velocity vectors. Then, in each iteration of the algorithm, the velocity the position vectors of each individual will be updated according to formulas (5) and (6). Also, at each iteration (every time moving in d-dimensional space), each individual is affected by two pieces of information.

22The first information is the best position it has achieved so far, best_id P . The second information is the best position in all the search processes of individuals in the population so far, best G . The modeling of updating each individual's position according to its best position and that of all individuals in the population up to the present time is illustrated in Fig. 4.

23is a vector 12 , , , d i id id id P p p p  =  and its corresponding best_id P is calculated as below:

24The value of best G at the iteration k is:

25In which:

26k id X and k id V is the current position and velocity of individual id at iteration k. The limit of velocity is defined in the domain [-Vmax, Vmax], where Vmax is a user-defined constant; ω is the time-varying inertia weight, chosen as presented in [38], which linearly decreases from 0.9 to 0.4 according to (4). c1 and c2 are two learning factors used to control the influence of social and cognitive components, defined as [38], i.e., c1=c2=2.

PSO-based order reduction

27In this study, we reduce the order of the transfer function (*) from 30 to 4, that is, A(s) and B(s) have a maximum degree of 4.

28The coefficients of A(s) and B(s) are ai and bi, respectively. The fourth order transfer function has the following form:

29where e(k) is the error at time sample k,n is the total number of data samples of a simulation run. The particle swarm() function has been supported for optimization in Matlab Toolbox according to the PSO algorithm. In this study, we use the existing particle swarm() process and follow the following algorithm:

30We obtained the following results by conducting a parameter search of the 4th-order controller according to the flowchart of Fig. 5: Substituting the coefficients ai and bi into the formula (**), we obtain the transfer function of the 4th-order controller as follows: 6

IV. PSO CONTROLLING A TWO-WHEEL SELF-BALANCING VEHICLE USING A ROBUST LOW-LEVEL CONTROLLER

31The response of the two-wheel self-balancing vehicle control system is shown in Fig. 6 and Fig. 7. Comment: From Fig. 6, the 4 th -order controller, according to the PSO algorithm, can balance the twowheel vehicles. The vehicle control system using the 4thorder controller has shorter transient times and less oscillation than the control system using the original controller. However, the overshoot of the control system using the 4th-order controller is larger than that of the vehicle control system using the original controller.

32To evaluate the efficiency of the reduce-order controller, we simplify the high-order controller according to Solution 1 by the balanced truncation algorithm (balancmr) [35,37] and the balanced stochastic truncation algorithm (bstmr) [36]. Comment: From Fig. 7, it can be seen that the control system using the 4th order controller according to the balanced truncation algorithm cannot maintain the vehicle balance. The control system uses a 4th-order controller according to the balanced stochastic truncation algorithm, and the PSO algorithm is capable of maintaining vehicle balance.

33The control system using the 4th order controller (PSO algorithm) has better response quality than the control system using the 4th order controller (bstmr algorithm).

34By comparing and evaluating the reduced order controllers according to Solution 1 and Solution 2, we choose the 4th order controller according to the PSO algorithm to replace the original controller.

V. CONCLUSION

35Designing a robust controller for a self-balancing twowheel vehicle balancing system using flywheels according to the principle of an inverted pendulum obtained a 30th-order controller. Using a 4th-order controller to control the two-wheeled vehicle balancing system shows that the system ensures stable balance. Using the PSO optimization algorithm, we determined that a 4th-order controller can replace a 30th-order controller. The simulation results also show that: The response quality of the control system when using the 4th-order controller, according to PSO, is better than when using the 30th-order controller and other 4th-order controllers. The paper results show that the solution using the PSO optimization algorithm to determine the parameters of the low-order controller is feasible and highly effective compared to other order reduction algorithms. The contribution of this paper is to develop a method to design a low-order optimal controller for a two-wheeled vehicle balance control system using the PSO algorithm. In the next study, we will use many different optimization algorithms to identify low-order controllers and evaluate the efficiency of low-order controllers in accurate control systems.

참고문헌

참고문헌 정보가 없습니다.