Next Article in Journal
Attention-Based Personalized Compatibility Learning for Fashion Matching
Previous Article in Journal
Indoor Clutter Object Removal Method for an As-Built Building Information Model Using a Two-Dimensional Projection Approach
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimization-Based Input-Shaping Swing Control of Overhead Cranes

1
College of Electrical and Information Engineering, Lanzhou University of Technology, Lanzhou 730050, China
2
School of Electrical Engineering and Automation, Xiamen University of Technology, Xiamen 361024, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2023, 13(17), 9637; https://doi.org/10.3390/app13179637
Submission received: 22 July 2023 / Revised: 19 August 2023 / Accepted: 24 August 2023 / Published: 25 August 2023

Abstract

:

Featured Application

The proposed control scheme provides a direct reference for the swing control of overhead cranes.

Abstract

A novel swing control scheme combining optimization and input-shaping techniques is proposed for overhead cranes subjected to parameter variations and modeling errors. An input shaper was first designed using the analytical method based on the linear swing dynamic model. Then, the particle swarm optimization algorithm was used to optimize the pulse amplitudes and time of the shaper to reduce the influence of modeling errors on the residual vibration. Furthermore, an adaptive optimization method was also used to optimize the parameters of the shaper to suppress the influence of the change in the payload mass and the rope length on the residual vibration. The proposed control scheme can suppress the influence of uncertainties on residual vibration and improve the anti-disturbance ability of a closed-loop system via offline and online dual optimization. Finally, the simulation results verify the effectiveness of the scheme.

1. Introduction

As important transport equipment, overhead cranes are widely used in ports, docks, large factories, reservoir areas, and other places where large goods are transported. With the improvement in intelligence, overhead cranes are developing in a faster, more efficient, and wider direction. An overhead crane is mainly composed of lifting, pitching, trolley operation, cart operation, and other mechanisms, as well as special hangers [1]. Through the coordinated control of the cart and the trolley, the payload can be moved from one place to another. However, due to the requirement of high efficiency, this leads to an increase in the payload swing and difficulty in trolley positioning. In particular, the large swing of the payload may cause safety accidents [2]. Therefore, it is of great practical significance to design a crane control system with rapid positioning and small swing.
Many control strategies, such as input shaping, sliding mode control, and machine learning, are applied to overhead cranes [3,4,5]. As a typical open-loop control method, input shaping is widely used to reduce the residual vibration of flexible systems because of its simple structure and low cost [6]. In reference [7], an extra insensitivity (EI) input shaper was designed by calculating the time-varying vibration period of a crane. The anti-swing performance was verified with experiments, but the time delay and stability of the shaper were not taken into account. Based on model feedback and partial feedback linearization, a frequency adjustment strategy for input shaping was used in reference [8]. In reference [9], an EI shaper and a closed-loop control method based on swing angle estimation were designed for a tower crane, and the results showed that the EI shaper was more effective in swing suppression. However, non-zero initial conditions and disturbances make these control systems less effective in swing suppression.
In order to solve the problem of traditional input shapers being sensitive to initial disturbances, a zero-vibration (ZV) shaper with non-zero initial conditions was proposed in reference [10]. The effectiveness of the shaper was verified with comparative experiments under different initial disturbances. To deal with the same problem, a re-parameterizing shaper method was proposed to counteract initial disturbances in reference [11]. An optimization technique was used to provide a step input acceleration function for a system acted via a shaper, which not only satisfies the system constraints and expected conditions but also reduces the sensitivity of the control system to variations in the internal parameters [12]. In reference [13], a genetic algorithm was used to determine the parameters of an input shaper, which can reduce the negative impact of the motor parameter error and obtain better output results. In addition, a method based on deep reinforcement learning was proposed in reference [14], and its swing suppression effect was verified in different situations. However, these two techniques need to be further improved in terms of optimization efficiency. In references [15,16], the particle swarm optimization (PSO) algorithm was used to optimize the parameters of the traditional unit amplitude zero-vibration shaper and the ZV shaper so that the optimized shapers could effectively restrain the payload swing under the system modeling errors. However, the PSO is not suitable for the real-time optimization of shapers because of its mechanism.
In order to further improve the real-time robustness of crane systems, some adaptive algorithms have been introduced into the parameter optimization of shapers. In [3,17], neural networks were used to realize adaptive shaping after the PSO operations. In [18], the pulse amplitude and time of a ZV shaper were iteratively updated in real time according to the constructed performance index and the measured output and control data. Moreover, an adaptive input-shaping method based on an extreme learning machine (ELM) was proposed in [19]. Specifically, the pulse response sequence of the closed-loop system was identified and fitted using an online frequency ELM algorithm, and the shaper parameters were updated in real time.
Although the above adaptive input-shaping techniques have achieved a certain performance in payload swing suppression and system robustness, they have some disadvantages, such as long optimization times and the inability to accurately optimize the parameters in some cases. Additionally, the PSO algorithm has the characteristics of a simple structure and fast optimization process and can effectively deal with the problem of modeling errors in crane swing control. However, it is limited to real-time disturbance. Based on the previous analysis and discussion, a swing control scheme based on PSO and adaptive techniques for overhead cranes is proposed in this work, and its contributions are summarized as follows:
(1)
Different strategies are used to deal with system uncertainty. The offline PSO method is adopted for the modeling error, and the online adaptive method is adopted for the real-time disturbance, which ensures the performance of swing control.
(2)
The search ability of the particle swarm optimization algorithm is ensured. A time-varying inertia weighting coefficient is used, which has a large value and a slow change rate in the early stage but has a small value and a fast change rate in the later stage. This coefficient makes the global and local search capabilities of the particle swarm optimization algorithm well balanced.
(3)
The method for the online optimization of the shaper parameters is unique. By adding a feedback link and setting an additional shaper, the optimization of the original shaper parameters is transformed into an adaptive iterative optimization problem of additional shaper parameters, thus avoiding the difficulties encountered in the direct optimization of the original shaper parameters.
The rest of this work is organized as follows. In Section 2, the model of an overhead crane is introduced. Section 3 states the design of the shapers using the analytical method and the optimization of the shaper parameters using the PSO algorithm. The adaptive iterative optimization of the shaper parameters is presented in Section 4. Section 5 summarizes this work.

2. Model Description of Overhead Crane

A two-dimensional schematic diagram of the motion of an overhead crane is shown in Figure 1. Before modeling, the following assumptions need to be made: (1) the mass of the rope is ignored; (2) the rope is regarded as rigid; and (3) the friction between the actuator and the rope connection is ignored. Based on [20], the dynamic model of the overhead crane is established using Lagrange equations as shown in (1).
{ ( M + m ) x ¨ + m l θ ¨ cos θ m l θ ˙ 2 sin θ + f = F m l θ ¨ + m x ¨ cos θ + m g sin θ = l b θ ˙
where M and m are the mass of the trolley and the payload, respectively. θ is the angle between the payload and the vertical direction, l is the length of the rope, F is the thrust of the trolley, and x is the displacement of the trolley in the horizontal direction. Additionally, the sliding friction force f = μ x ˙ , and μ is the sliding friction coefficient. b is the equivalent damping coefficient acting on the payload. Usually, the payload swing angle θ is not large within the safe operating range, which makes sin θ θ , and cos θ 1 . At the same time, there is also an approximate equivalent transformation θ ¨ cos θ θ ˙ 2 sin θ = d d t ( θ ˙ cos θ ) d d t ( θ ˙ ) = θ ¨ . Hence, (1) can be simplified as:
{ ( M + m ) x ¨ + m l θ ¨ + μ x ˙ = F l θ ¨ + l b m θ ˙ + g θ + x ¨ = 0
Under zero initial conditions, with F as the input and x and θ as the output, the transfer function of system (2) can be expressed as:
{ x ( s ) F ( s ) = l s 2 + l b m s + g M l s 4 + ( M + m m b + μ ) l s 3 + ( M g + m g + μ l b m ) s 2 + μ g s θ ( s ) F ( s ) = s 2 M l s 4 + ( M + m m b + μ ) l s 3 + ( M g + m g + μ l b m ) s 2 + μ g s
It can be seen in (2) that x and θ are highly coupled, and the acceleration x ¨ acts directly on the swing angle system. Therefore, how to design a suitable controller based on the simplified system (3) so that the trolley can reach the desired position quickly, and the swing angle of the payload is as small as possible, is an important objective of overhead crane control. This work focuses on the swing control of the payload using input shaping and optimization techniques.

3. Design of Input Shaper

As a typical open-loop control technique, input shaping has obvious advantages in the elimination of residual vibration. Its principle is to convolve the pulse sequence with the input signal to generate a new input signal driving the system. A two-pulse input shaping schematic is shown in Figure 2. It can be seen in Figure 2 that the control input after shaping changes from a single-action moment to a multi-action moment, and the superposition of the system responses at different moments achieves the purpose of eliminating or suppressing vibration.

3.1. Design of Shaper Based on Analytical Method

Let a typical second-order system G ( s ) = ω n 2 s 2 + 2 ξ ω n s + ω n 2 as an example to illustrate the design process of the shaper ( ω n and ξ are the natural frequency and the damping ratio, respectively). The mathematical description of a shaper can be expressed as (4):
H ( t ) = j = 1 D A j δ ( t t j )
where D , A j , and t j represent the number of pulses, the amplitude, and the time of the j t h pulse. The following constraints need to be met to design a shaper [21].
(a)
Constraint of residual vibration
In order to make the system response stable, the residual vibration of a system should converge to zero in a limited time.
(b)
Constraint of pulse amplitude
In order to ensure that the system displacement and other parameters do not change, the input signal of the system is required to have the same steady state value before and after shaping, that is, the sum of the amplitudes is equal to 1, as shown in (5):
j = 1 D A j = 1
(c)
Constraint of optimal pulse time
In order to minimize the delay of the system response, the first pulse time is usually zero, as shown in (6):
t 1 = 0
Through the above constraints, the pulse amplitudes and times of different shapers can be obtained by selecting different numbers of pulses, such as ZV and ZVD shapers, and they can be expressed as (7) and (8) [22,23]:
[ A i t i ] = [ 1 1 + K K 1 + K 0 T 2 ]
[ A i t i ] = [ 1 K 2 + 2 K + 1 2 K K 2 + 2 K + 1 K 2 K 2 + 2 K + 1 0 T 2 T ]
where K = exp ( ξ π 1 ξ 2 ) , and T = 2 π ω n 1 ξ 2 . For crane system (2), the swing angle dynamics can be transformed into a typical second-order system, as shown in (9):
θ ( s ) a ( s ) = 1 l s 2 + b m s + g l
where a = x ¨ is the control input. In the meantime, it can be derived from (9), where ω n = g l , and ξ = b 2 m l g . So far, the amplitude and time of a shaper can be calculated using (7) or (8).

3.2. Optimization of Shaper Based on PSO Algorithm

The shaper parameters obtained using the above analytical method may not be optimal based on (9), and this is because the system (9) is a simplified model of a practical crane. In order to achieve better swing suppression, these parameters need to be optimized. Herein, the PSO algorithm is used to optimize these parameters, and the ZVD shaper is taken as an example to illustrate the optimization process.
There are five parameters ( A 1 , A 2 , A 3 , t 2 , and t 3 ) that need to be optimized, corresponding to the components in the position vector P i and the velocity vector V i of a particle, i.e.,
P i = ( p i 1 , p i 2 , p i 3 , p i 4 , p i 5 ) , i = 1 , 2 , , n
V i = ( v i 1 , v i 2 , v i 3 , v i 4 , v i 5 ) , i = 1 , 2 , , n
where n is the number of particles. Suppose that the optimal parameters searched by the ith particle so far are defined as individual optimal values, and the optimal parameters searched by the whole particle swarm so far are global optimal values, denoted by (12) and (13), respectively.
P b e s t i = ( p b i 1 , p b i 2 , p b i 3 , p b i 4 , p b i 5 ) , i = 1 , 2 , , n
g b e s t = ( g 1 , g 2 , g 3 , g 4 , g 5 )
Based on [16], the updates for P i and V i are carried out according to (14) and (15), respectively. The right side of (14) consists of three parts: ω V i k is the “inertial” part, representing the trend of particles to maintain their previous changes; c 1 r 1 ( P b e s t i k P i k ) is the “cognition” part, representing the trend of particles to approach the optimal parameter values searched in their own history; and c 2 r 2 ( g b e s t k P i k ) is the “social” part, representing the trend of particles to approach the optimal parameter values searched via the group history.
V i k + 1 = ω V i k + c 1 r 1 ( P b e s t i k P i k ) + c 2 r 2 ( g b e s t k P i k )
P i k + 1 = P i k + V i k + 1
where ω is the inertia weighting coefficient, and c 1 and c 2 are the learning factors of the individual and group, respectively. These two factors represent the influence of the optimal position on the current speed. Additionally, r 1 and r 2 are variables with a uniform distribution on the interval of [0, 1].
It is worth noting that the inertia weighting coefficient ω has a great influence on the search ability [24]. Increasing the ω helps to enhance the global search ability, while decreasing the ω helps to enhance the local search ability. In general, the ω takes a large, fixed value, which makes the later stage of the multi-parameter optimization have problems such as large fluctuations, a long duration, and inaccuracy. To this end, a cosine adjustment method is proposed for the weighting coefficient, as shown in (16). And the PSO with (16) is named as improved weighting coefficient PSO (IWCPSO). It can be seen from (16) that the coefficient value is larger, and the change rate is slower in the early stage, and the value is smaller, and the change rate is faster in the later stage.
ω ( k ) = 0.1 r 3 ω min ( 1 cos ( h 1 ) ) + ω max cos ( h 1 )
where ω max and ω min are the maximum and minimum inertia weighting coefficients, respectively. r 3 is a variable with a uniform distribution on the interval of [0, 1], and h 1 is the adjustment variable expressed as 0.5 π k / k max ( k max is the maximum number of iterations).
The complete PSO optimization process includes initialization, the calculation of the fitness function, position and speed update, and so on. The use of IWCPSO in ZVD parameter optimization is summarized below.
Step 1: Initialization of particle swarm parameters. The related parameters are n = 10 , k max = 20 , I A E 1 i = 100 , and I A E g = 100 (defined as (17), denoting the initial individual and group fitness values). In addition, the initial values of the position and velocity of each particle are uniformly distributed random values in the intervals of [0, 1] and [−0.05, 0.05], respectively.
Step 2: Calculation of fitness function. Running the crane system under the action of the ZVD shaper, the fitness values of the pulse amplitude and time corresponding to the current dimension of each particle are calculated according to (17).
I A E i = 0 T 1 | e i ( t ) | d t = j 1 = 0 T 1 / T s | e i ( j 1 ) |
where e i ( t ) = θ i ( t ) , and T 1 and T s are the running time and sampling time of the system, respectively.
Step 3: Update of parameters. The fitness values I A E i and I A E 1 i of each particle under the current and experienced optimal parameters are compared in turn. If I A E i I A E 1 i , it is updated as the optimal parameter of the corresponding individual, that is, P b e s t i = P i . The current fitness value I A E i of all particles and the fitness value I A E g of the group under the optimal parameters are compared in turn. If I A E i I A E g , it is updated as the optimal parameter of the group, that is, g b e s t = p i .
Step 4: Update of the position and the velocity. According to (14)–(16), the velocity V i and position P i of each particle are updated. At the same time, the boundary conditions are treated based on (18):
{ P i j k + 1 = 1 , i f P i j k + 1 > 1 P i j k + 1 = 0 , i f P i j k + 1 < 0 V i j k + 1 = 0.05 , i f V i k + 1 > 0.05 V i j k + 1 = 0.05 , i f V i k + 1 < 0.05 j = 1 , 2 , 3 , 4 , 5
Step 5: End judgment and output. Check whether the maximum number of iterations is reached. If it is not reached, return to Step 2; otherwise, the optimization ends, and the output is g b e s t . g 1 , g 2 , g 3 , g 4 , and g 5 in g b e s t are the optimal pulse amplitudes A 1 , A 2 , and A 3 and the optimal pulse times t 2 and t 3 of the ZVD shaper, respectively.
Remark 1.
I A E is an important part of the PSO algorithm, which is used as the basis for parameter updating, and its value reflects the optimization performance. Herein, an initial value of 100 is taken to avoid the optimization termination caused by the fitness value obtained via the first iteration exceeding its initial value. The initial value can be adjusted according to the object and simulation results.
Now, an overhead crane is used to test the effectiveness of the proposed scheme, and its dynamic parameters are m = 0.25   kg , l = 0.10   m , b = 0.07   Ns / rad , and μ = 0.2 . The relevant control parameters are ω = 0.9 , c 1 = 0.8 , and c 2 = 0.5 (for the PSO algorithm), and ω max = 0.9 , ω min = 0.4 , c 1 = 0.8 , and c 2 = 0.5 (for the IWCPSO algorithm). It should be noted that the selection of these control parameters should consider both the dynamic characteristics of the crane and the mechanism of these algorithms. The relationships between the global and local, and the individual and population, need to be balanced in order to achieve a better optimization performance. Additionally, the other parameters are T 1 = 6 s and T s = 0.01 s .
In order to make the evaluation more comprehensive, the motion of the trolley is divided into three stages, acceleration, uniform speed, and deceleration, and the acceleration r a ( t ) of the trolley is designated as the input of the swing system, given as r a ( t ) = { 0.5 , 0 t < 1 0 , 1 t < 2 , 3 t < 6 0.5 , 2 t < 3 . The velocity and displacement information of the trolley can be obtained via the integral operations on r a ( t ) , as shown in Figure 3.
Figure 4 is the response result of applying the acceleration r a ( t ) to the swing system in the nominal case. It can be seen from Figure 4 that the ZVD shaper has a strong positive effect on the swing angle of the payload. The swing angle of the payload converges from the maximum 0.1 rad to 0 at 3.4 s.
Figure 5 is the response result of applying the acceleration r a ( t ) to the swing system in the case of disturbance added in the control input channel. This disturbance with an amplitude of 0.03 acts at 2.5 s and lasts for 0.3 s (used to simulate the modeling error caused by the uneven friction between the gears of the driving device). It can be seen from Figure 5 that the optimized ZVD shaper is better than the unoptimized one in terms of swing angle elimination, while the PSO with improved weight is better than the PSO with fixed weight in eliminating residual vibration. The reason for this is that the PSO with improved weight can compromise both global and local search capabilities. It can be concluded that time-varying weight can improve the performance of the PSO algorithm.
Remark 2.
After extending the simulation time, it can be seen that PSO-ZVD takes approximately 26 s, while ZVD takes approximately 36 s, and their vibration suppression effect is the same as that of IWCPSO-ZVD.
Figure 6 shows the curves of the pulse amplitudes of the shapers. IWCPSO-ZVD is faster than PSO-ZVD in terms of amplitude convergence speed, which is due to the fact that the weight ω of the PSO always maintains a large value and makes its local search ability poor. It is precisely this reason that makes the pulse time convergence processes of the shapers very different, and the steady-state values are also slightly different, as shown in Figure 7. Different values lead to different swing angle suppression, as shown in Figure 5. Table 1 shows the steady-state values of these parameters calculated with PSO and IWCPSO, which more accurately illustrates the differences between these two algorithms. At the same time, the IWCPSO particle fitness function converges faster, and the steady-state value is smaller, as shown in Figure 8. This proves that IWCPSO can better balance the global and local search abilities of parameters and improve the speed and accuracy of parameter optimization.
Remark 3.
The IWCPSO algorithm can effectively solve the problem of the shaper parameters being unsuitable in practice due to modeling errors. However, the PSO and IWCPSO algorithms used in this work only use the feedback information  I A E  written in (17), which can only reflect the overall swing angle performance of the whole system motion. Therefore, these two algorithms can only be used to deal with fixed disturbance that does not change with the motion process, belonging to offline optimization [3]. Thus, it is necessary to introduce other techniques to improve the system’s robustness against real-time disturbances.

4. Design of Adaptive Input Shaper

An adaptive technique is used to update the pulse amplitudes and time of the shapers, and the structure of the adaptive control system is shown in Figure 9. On the basis of the original input shaper H , a feedback link is added and an adaptive shaper H is set. According to the output θ , the control input u of the system, a selected performance index, and the pulse amplitude and time of the original shaper H are adjusted in real time.

4.1. Adaptive Adjustment of Shaper Parameters

Assume that the original output shaper H is a sequence of K + 1 pulses, expressed as h = [ h 0 h 1 h K ] T = [ h ( 0 ) h ( 1 ) h ( K ) ] T , and the corresponding time is an integral multiple of the sampling time T s . Among these pulses, there are only D nonzero pulses, denoted as A = { A 1 , A 2 , , A D } and t = { t 1 , t 2 , , t D } . Hence, the discrete expression of H can be expressed as (19):
H ( z ) = k = 0 K h k z k = d = 0 D A d z t d
Let the transfer function of the swing dynamics be G ( z ) = k = 1 g ( k T s ) z k = g ( 1 ) z 1 + g ( 2 ) z 2 + , so the control u at time m and the system output y = θ at time n can be obtained using (20) and (21), respectively:
u ( m ) = l = m K m h ( m l ) r a ( l )
y ( n ) = m = 0 n g ( n m ) u ( m )
As shown in Figure 9, the shaper H shapes the output θ to obtain z = u G H . In addition, the equation H G = G H holds (the output residual vibrations are expected to be zero after K iterations), and then the parameter optimization of the shaper H can be transformed into an iterative optimization of the shaper H . The residual vibration of the output z at time l is shown in (22):
z ( l ) = n = l K l m = 0 n h ( l n ) g ( n m ) u ( m )
According to the response of the control action, z ( l ) can be divided into two parts. The first part z 0 ( l ) is the response accumulation of G H from 0 to K , and the second part z r ( l ) is the response accumulation from K to l , that is, the residual vibration of the system. Concretely, z 0 ( l ) and z r ( l ) are shown in (23) and (24):
z 0 ( l ) = [ u ( l ) u ( l 1 ) u ( l K ) ] f 0
z r ( l ) = [ u ( l K + 1 ) u ( l K + 2 ) u ( 0 ) ] f r
where
f 0 = [ g ( 0 ) 0 0 g ( 1 ) g ( 0 ) 0 g ( K ) g ( K 1 ) g ( 0 ) ] h
f r = [ g ( K + 1 ) g ( K ) g ( 1 ) g ( K + 2 ) g ( K + 1 ) g ( 2 ) g ( l ) g ( l 1 ) g ( l K ) ] h
In (24), if z r ( l ) = 0 , no matter what u is, f r must be a zero vector. Denote Z r = [ z r ( K + 1 ) z r ( N ) ] , and then it can be given as
Z r = Q N f r = Y N h U N f 0 = 0
where
Q N = [ u ( 0 ) 0 0 u ( 1 ) u ( 0 ) 0 u ( N K 1 ) u ( N K 2 ) u ( 0 ) ]
Y N = [ y ( K + 1 ) y ( K ) y ( 1 ) y ( K + 2 ) y ( K + 1 ) y ( 2 ) y ( N ) y ( N 1 ) y ( N K ) ]
U N = [ u ( K + 1 ) u ( K ) u ( 1 ) u ( K + 2 ) u ( K + 1 ) u ( 2 ) u ( N ) u ( N 1 ) u ( N K ) ]
In (27), Q N , Y N , and U N can be measured, while f 0 cannot be measured, so the following deformation needs to be performed:
( I U N ( U N T U N ) 1 U N T ) Z r = ( I U N ( U N T U N ) 1 U N T ) ( Y N h U N f 0 ) = ( I U N ( U N T U N ) 1 U N T ) ( Y N h ) = Z r e
It can be seen that Z r e can be measured, so the following performance indicator function can be selected:
J N = ( Z r e T ) Z r e = h T ( Y N T Y N Y N T U N ( U N T U N ) 1 U N T Y N ) h
Make W N = Y N T Y N , B N = Y N T U N , and C N = ( U N T U N ) 1 , respectively. Then, (32) can be simplified to (33):
J N = h T ( W N B N C N B N T ) h
where W N , B N , and C N can be obtained via the following iterative calculations of (34)–(36) based on the control u and output y of the system.
W N = λ W N 1 + Y N T Y N
B N = λ B N 1 + Y N T U N
C N = λ 1 C N 1 λ 1 C N 1 U N T U N C N 1 λ + U N T C N 1 U N
where Y N = [ y ( N ) y ( N 1 ) y ( N K ) ] , U N = [ u ( N ) u ( N 1 ) u ( N K ) ] , and 0 < λ < 1 (a forgetting factor).
So far, the parameter optimization of shaper H can be divided into the following two steps, where one is to solve the optimal pulse amplitude and the other is to solve the optimal pulse time.
(i)
Solving the optimal pulse amplitude
Fix the occurrence time t = { t 1 , t 2 , , t D } , where D represents the nonzero pulses in h , which corresponds to the amplitude A = [ A 1 , A 2 , , A D ] T . Denote F N = W N B N C N B N T , and then (33) can be simplified to J N = A T F N A , where the D-dimensional square matrix F N is a submatrix of F N , and the rows and columns correspond to the position t of the nonzero pulses in h . The gradient descent method is introduced to solve the optimal pulse amplitude A N , i.e., J N = 2 F N A N . In order to make the adaptive shaper still satisfy the constraint condition of the sum of pulse amplitudes being one, the orthogonal vector β = [ 11 1 ] T D × 1 of J N is considered, and the iterative relation of the optimal pulse amplitude is expressed as (37).
A N = A N 1 α ( I 1 D β β T ) F N A N 1
where α = 1 λ 0.1 D .
(ii)
Solving the optimal pulse time
Due to the time constraint of the shaper, the first pulse time t 1 = 0 remains unchanged, so only a total of D 1 pulse time values of { t 2 , , t D } need to be solved. Similarly, the A obtained in (i) is fixed, and the optimal pulse time { t 2 , , t D } is further solved. Since the value of J N is determined by F N , by adjusting the position of the nonzero elements in h , the optimal F N is selected to achieve the purpose of reducing J N . Herein, the definition of the change in J N , plus or minus, is shown in (38):
d ± = A ` T ( F N t d ± F N t ) A `
where
t p ± = { t p ± 1 , p = d t p , p d
In each iteration, according to the current time d + and d , the pulse time change is obtained according to the (40) change rule. For the N t h iteration, t d N + 1 = t d N + t d , if t d no longer changes within K + 1 pulse times, and the optimal pulse time is obtained.
{ d + 0 , d 0 t d = 0 d + > 0 , d < 0 t d = T s d + < 0 , d > 0 t d = + T s d + < 0 , d < 0 t d = T s

4.2. Verification of Adaptive Input-Shaping Control System

The parameters of the overhead crane used in this section are the same as those in Section 3, and the adaptive parameters are selected as K = 100 , λ = 0.960 , W 0 = 0 , B 0 = 0 , and C 0 = I . Two sets of parameter variations are used to verify the effectiveness of the proposed algorithm, as shown in Table 2.
(I)
Results of Group 1
It can be observed from Figure 10 that the payload has a large residual vibration under the action of IWCPSO-ZV, and the residual vibration of the payload can be greatly reduced under the action of adaptive IWCPSO-ZV or adaptive IWCPSO-ZVD. The latter can almost achieve zero residual vibration. The adaptive shapers are better than the conventional shapers in suppressing real-time disturbances.
The amplitude optimization process of the adaptive IWCPSO-ZV and adaptive IWCPSO-ZVD shapers is described in Figure 11 and Figure 12. It can be seen from the figures that the amplitudes are optimized in real time and can quickly converge to the optimal values, and the settling time is no more than 1 s. The time optimization process of the adaptive IWCPSO-ZV and adaptive IWCPSO-ZVD shapers is described in Figure 13 and Figure 14. As described in the figures, the time can also quickly converge to steady-state values after a series of adjustments. It is precisely because of the continuous adjustments of these parameters that the shapers work in optimal states in the presence of parameter variations so that they achieve a good disturbance rejection performance.
(II)
Results of Group 2
As shown in Figure 15, the residual vibration of the payload cannot be eliminated when the parameter variations are large. Concretely, the maximum residual vibration exceeds 0.02 rad under the action of the IWCPSO-ZV shaper, and it approaches 0.01 rad under the action of the adaptive IWCPSO-ZV shaper. However, the IWCPSO-ZVD shaper with the adaptive mechanism can control the residual vibration in a small range (of less than 0.003 rad). The reason for this is that the ZVD shaper has three pulses, with one more pulse adjustment than the ZV shaper during real-time optimization, which makes it more robust. Therefore, the number of pulses is closely related to the robustness of a system for adaptive shapers.
Table 3 lists the swing angle suppression performance under the control of these three algorithms, in which the bold numbers represent the optimal values. As can be seen from Table 3, the adaptive IWCPSO-ZVD algorithm achieves the best performance, which strongly proves its advantages.
Figure 16, Figure 17, Figure 18 and Figure 19 depict the optimization process of the shaper amplitude and time parameters. As depicted in the figures, all parameters are quickly optimized to stable values, which lays a good foundation for the high performance of the shapers.

5. Conclusions

A novel input-shaping control strategy based on offline and online optimization techniques was proposed for overhead cranes. Considering the theoretical analysis and simulation results, one can draw the following conclusions. An input-shaping swing control system optimized using the PSO algorithm can effectively reduce the influence of fixed disturbances on the residual vibration. The PSO algorithm with a time-varying weighting coefficient has more advantages in residual vibration suppression than the PSO algorithm with a fixed weighting coefficient in input-shaping swing control. For real-time disturbances, it is necessary to optimize the input-shaping swing control system online to achieve better residual vibration suppression. In the optimized input-shaping swing control system, the number of pulses has an impact on the residual vibration suppression. More pulses may be helpful to improve the residual vibration suppression effect.

Author Contributions

Conceptualization, W.T. and R.M.; methodology, R.M.; software, W.W.; writing—original draft preparation, H.G.; writing—review and editing, W.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (grant number 62063018) and the Science and Technology Program of Gansu Province (grant number 22JR5RA225).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Zhang, S.Z.; He, X.X.; Zhu, H.Y.; Li, X.C.; Liu, X.G. PID-like coupling control of underactuated overhead cranes with input constraints. Mech. Syst. Signal Process. 2022, 178, 109274. [Google Scholar] [CrossRef]
  2. Mohammed, A.; Alghanim, K.; Taheri, A.M. An adjustable zero vibration input shaping control scheme for overhead crane systems. Shock. Vib. 2020, 2020, 7879839. [Google Scholar] [CrossRef]
  3. Ramli, L.; Mohamed, Z.; Jaafar, H.I. A neural network-based input shaping for swing suppression of an overhead crane under payload hoisting and mass variations. Mech. Syst. Signal Process. 2018, 107, 484–501. [Google Scholar] [CrossRef]
  4. Wu, X.; Xu, K.; Lei, M.; He, X. Disturbance-compensation-based continuous sliding mode control for overhead cranes with disturbances. IEEE T. Autom. Sci. Eng. 2020, 17, 2182–2189. [Google Scholar] [CrossRef]
  5. Zhang, H.; Zhao, C.; Ding, J. Online reinforcement learning with passivity-based stabilizing term for real time overhead crane control without knowledge of the system model. Control Eng. Pract. 2022, 127, 105302. [Google Scholar] [CrossRef]
  6. Ramli, L.; Mohamed, Z.; Efe, M.Ö.; Lazim, I.M.; Jaafar, H.I. Efficient swing control of an overhead crane with simultaneous payload hoisting and external disturbances. Mech. Syst. Signal Process. 2020, 135, 106326. [Google Scholar] [CrossRef]
  7. Qiu, Z.H.; Sun, N.; Liu, Z.Q.; Yang, T.; Wu, Q.X.; Fang, Y.C. Time-varying input shaping control for dual boom cranes. Control Theory A. 2022, 39, 1–10. (In Chinese) [Google Scholar]
  8. Arabasi, S.; Masoud, Z. Frequency-modulation input-shaping strategy for double-pendulum overhead cranes undergoing simultaneous hoist and travel maneuvers. IEEE Access 2022, 10, 44954–44963. [Google Scholar] [CrossRef]
  9. Montonen, J.H.; Nevaranta, N.; Niemelä, M.; Lindh, T. Comparison of extra insensitive input shaping and swing-angle-estimation-based slew control approaches for a tower crane. Appl. Sci. 2022, 12, 5945. [Google Scholar] [CrossRef]
  10. Mohammed, A.; Alghanim, K.; Andani, M.T. A robust input shaper for trajectory control of overhead cranes with non-zero initial states. Int. J. Dyn. Control. 2021, 9, 230–239. [Google Scholar] [CrossRef]
  11. Wahrburg, A.; Jurvanen, J.; Niemelä, M.; Holmberg, M. Input shaping for non-zero initial conditions and arbitrary input signals with an application to overhead crane control. In Proceedings of the 17th IEEE International Conference on Advanced Motion Control (AMC), Padova, Italy, 18–20 February 2022; pp. 36–41. [Google Scholar]
  12. Alghanim, K.; Mohammed, A.; Andani, M.T. An input shaping control scheme with application on overhead cranes. Int. J. Nonlin. Sci. Num. 2019, 20, 561–573. [Google Scholar] [CrossRef]
  13. Yi, T.; Pei, Q.S.; Li, D.Y.; Wei, S.G.; Jia, D.P.; Zhang, H.L. Optimization of simulation parameters of input shaper based on genetic algorithm. In Proceedings of the 2nd International Conference on Advanced Technologies in Intelligent Control, Environment, Computing & Communication Engineering (ICATIECE), Bangalore, India, 16–17 December 2022; pp. 1–6. [Google Scholar]
  14. Zhang, T.; Chu, H.; Zou, Y.; Liu, T. A deep reinforcement learning-based optimization method for vibration suppression of articulated robots. Eng. Optimiz. 2023, 55, 1189–1206. [Google Scholar] [CrossRef]
  15. Maghsoudi, M.J.; Ramli, L.; Sudin, S.; Mohamed, Z.; Husain, A.R.; Wahid, H. Improved unity magnitude input shaping scheme for sway control of an underactuated 3D overhead crane with hoisting. Mech. Syst. Signal Process. 2019, 123, 466–482. [Google Scholar] [CrossRef]
  16. Maghsoudi, M.J.; Mohamed, Z.; Sudin, S.; Buyamin, S.; Jaafar, H.I.; Ahmad, S.M. An improved input shaping design for an efficient sway control of a nonlinear 3D overhead crane with friction. Mech. Syst. Signal Process. 2017, 92, 364–378. [Google Scholar] [CrossRef]
  17. Rehman, S.F.; Mohamed, Z.; Husain, A.R.; Jaafar, H.I.; Shaheed, M.H.; Abbasi, M.A. Input shaping with an adaptive scheme for swing control of an underactuated tower crane under payload hoisting and mass variations. Mech. Syst. Signal Process. 2022, 175, 109106. [Google Scholar] [CrossRef]
  18. Liu, D.X.; Zhang, J.C.; Li, Y.; Fang, J.J. Research on adaptive input shaping control of fruits and vegetable harvesting robot arm. Control Theory A. 2022, 39, 1043–1050. (In Chinese) [Google Scholar]
  19. Hu, J.; Chu, Z. Adaptive input shaping for flexible systems using an extreme learning machine algorithm identification. In Proceedings of the ELM-2015 Volume 1: Theory, Algorithms and Applications (I), Hangzhou, China, 15–17 December 2015; Springer International Publishing: Cham, Switzerland, 2016; pp. 211–225. [Google Scholar]
  20. Suksabai, N.; Chuckpaiwong, I. The novel design of the command smoother for sway suppression of industrial overhead crane considering acceleration and deceleration limits. Int. J. Dynam. Control 2023, 11, 2082–2100. [Google Scholar] [CrossRef]
  21. Singhose, W.; Porter, L.; Kenison, M. Effects of hoisting on the input shaping control of gantry cranes. Control. Eng. Pract. 2000, 8, 1159–1165. [Google Scholar] [CrossRef]
  22. Du, Y.F.; Wang, C.; Lu, J.C.; Yan, Z. Vibration suppression using multi-impulse robust shaping method of zero vibration and derivative. J. Sound. Vib. 2019, 440, 277–290. [Google Scholar] [CrossRef]
  23. Kang, C.G.; Hassan, R.; Kim, K.Y. Analysis of a generalized ZVD shaper using impulse vectors. Int. J. Control. Autom. 2020, 18, 2088–2094. [Google Scholar] [CrossRef]
  24. Poli, R.; Kennedy, J.; Blackwell, T. Particle swarm optimization: An overview. Swarm Intell. 2007, 1, 33–57. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of motion of overhead crane.
Figure 1. Schematic diagram of motion of overhead crane.
Applsci 13 09637 g001
Figure 2. Principle of shaping.
Figure 2. Principle of shaping.
Applsci 13 09637 g002
Figure 3. Acceleration, velocity, and displacement curves.
Figure 3. Acceleration, velocity, and displacement curves.
Applsci 13 09637 g003
Figure 4. Swing angle response curves with and without ZVD shaper.
Figure 4. Swing angle response curves with and without ZVD shaper.
Applsci 13 09637 g004
Figure 5. Swing angle response curves under ZVD shaper obtained using different techniques.
Figure 5. Swing angle response curves under ZVD shaper obtained using different techniques.
Applsci 13 09637 g005
Figure 6. Curves of pulse amplitudes of shapers.
Figure 6. Curves of pulse amplitudes of shapers.
Applsci 13 09637 g006
Figure 7. Curves of pulse times of shapers.
Figure 7. Curves of pulse times of shapers.
Applsci 13 09637 g007
Figure 8. Curves of fitness functions.
Figure 8. Curves of fitness functions.
Applsci 13 09637 g008
Figure 9. Structure of adaptive input-shaping control system.
Figure 9. Structure of adaptive input-shaping control system.
Applsci 13 09637 g009
Figure 10. Swing angle curves of the payload in case of Group 1.
Figure 10. Swing angle curves of the payload in case of Group 1.
Applsci 13 09637 g010
Figure 11. Amplitude optimization curves of adaptive IWCPSO-ZV in case of Group 1.
Figure 11. Amplitude optimization curves of adaptive IWCPSO-ZV in case of Group 1.
Applsci 13 09637 g011
Figure 12. Amplitude optimization curves of adaptive IWCPSO-ZVD in case of Group 1.
Figure 12. Amplitude optimization curves of adaptive IWCPSO-ZVD in case of Group 1.
Applsci 13 09637 g012
Figure 13. Time optimization curve of adaptive IWCPSO-ZV in case of Group 1.
Figure 13. Time optimization curve of adaptive IWCPSO-ZV in case of Group 1.
Applsci 13 09637 g013
Figure 14. Time optimization curves of adaptive IWCPSO-ZVD in case of Group 1.
Figure 14. Time optimization curves of adaptive IWCPSO-ZVD in case of Group 1.
Applsci 13 09637 g014
Figure 15. Swing angle curves of the payload in case of Group 2.
Figure 15. Swing angle curves of the payload in case of Group 2.
Applsci 13 09637 g015
Figure 16. Amplitude optimization curves of adaptive IWCPSO-ZV in case of Group 2.
Figure 16. Amplitude optimization curves of adaptive IWCPSO-ZV in case of Group 2.
Applsci 13 09637 g016
Figure 17. Amplitude optimization curves of adaptive IWCPSO-ZVD in case of Group 2.
Figure 17. Amplitude optimization curves of adaptive IWCPSO-ZVD in case of Group 2.
Applsci 13 09637 g017
Figure 18. Time optimization curve of adaptive IWCPSO-ZV in case of Group 2.
Figure 18. Time optimization curve of adaptive IWCPSO-ZV in case of Group 2.
Applsci 13 09637 g018
Figure 19. Time optimization curves of adaptive IWCPSO-ZVD in case of Group 2.
Figure 19. Time optimization curves of adaptive IWCPSO-ZVD in case of Group 2.
Applsci 13 09637 g019
Table 1. The steady-state values of the optimized ZVD shaper parameters.
Table 1. The steady-state values of the optimized ZVD shaper parameters.
NamePSOIWCPSO
A 1 0.3000.292
A 2 0.4950.497
A 3 0.2050.211
t 2 0.3610.373
t 3 0.7220.746
Table 2. Variation range of l and m in parameter perturbation experiment.
Table 2. Variation range of l and m in parameter perturbation experiment.
Group Variation Range of the Rope Length l (m)Variation Range of the Load m (kg)
1(−0.01, 0)(0, +0.05)
2(−0.02, 0)(0, +0.10)
Table 3. Comparison of swing angle suppression performance.
Table 3. Comparison of swing angle suppression performance.
GroupAlgorithmMaximum Angle (rad)Residual Vibration Range (rad)
1IWCPSO-ZV0.059(−0.012, 0.011)
Adaptive IWCPSO-ZV0.056(−0.003, 0.003)
Adaptive IWCPSO-ZVD0.051(−0.001, 0.001)
2IWCPSO-ZV0.070(−0.021, 0.022)
Adaptive IWCPSO-ZV0.061(−0.008, 0.009)
Adaptive IWCPSO-ZVD0.053(−0.002, 0.002)
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tang, W.; Ma, R.; Wang, W.; Gao, H. Optimization-Based Input-Shaping Swing Control of Overhead Cranes. Appl. Sci. 2023, 13, 9637. https://doi.org/10.3390/app13179637

AMA Style

Tang W, Ma R, Wang W, Gao H. Optimization-Based Input-Shaping Swing Control of Overhead Cranes. Applied Sciences. 2023; 13(17):9637. https://doi.org/10.3390/app13179637

Chicago/Turabian Style

Tang, Weiqiang, Rui Ma, Wei Wang, and Haiyan Gao. 2023. "Optimization-Based Input-Shaping Swing Control of Overhead Cranes" Applied Sciences 13, no. 17: 9637. https://doi.org/10.3390/app13179637

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop