Abstract
For the offshore wave compensation control system, its controller setting will directly affect the platform's compensation effect. In order to study the wave compensation control system and optimization strategy, we build and simulate the wave compensation control model by using particle swarm optimization (PSO) to optimize the controller's control parameters and compare the results with other intelligent algorithms. Then we compare the response errors of the wave compensation platform under different PID controllers; and compare the particle swarm algorithm's response results and the genetic algorithm to the system controller optimization. The results show that the particle swarm algorithm is 63.94% lower than the genetic algorithm overshoot, and the peak time is 0.26 s lower, the adjustment time is 1.4 s lower than the genetic algorithm. It shows that the control effect of the wave compensation control system has a great relationship with the controller's parameter selection. Meanwhile, the particle swarm optimization algorithm's optimization can set the wave compensation PID control system, and it has the optimization effect of small overshoot and fast response time. This paper proposes the application of the particle swarm algorithm to the wave compensation system. It verifies the superiority of the method after application, and provides a new research reference for the subsequent research on the wave compensation control systems.
Similar content being viewed by others
Introduction
It is tough to use the equipment for transportation on the ocean, especially on some seas with more complicated sea conditions. When it is necessary to lift or carry some cargo, wave compensation technology is usually used to reduce the ship's attitude changes caused by waves. In the past few decades, wave compensation technology has been extensively developed. Wave compensation technology plays a crucial role in the exploration of marine resources. Various offshore cranes with wave compensation functions are widely used in marine-related operations1,2,3.
According to the wave compensation principle, it can be divided into passive wave compensation systems, active wave compensation systems, and compound wave compensation system. According to different compensation degrees of freedom, it can be divided into two degrees of freedom, three degrees of freedom, and six degrees of freedom wave compensation systems. Among them, the six-degree-of-freedom wave compensation system has received more and more attention because of its advantages in compensation effects. It can completely compensate for the relative movement between the two ships, and it not only can avoid collisions between the cargo and the ship being supplied, but also can accurately supply the cargo to the designated location4,5,6. Among them, the design and optimization of the control system play an extremely important role in the quality of wave compensation7,8,9,10,11,12.
In terms of controller design of wave compensation system, PID controller is the earliest proposed controller based on feedback, with simple structure and wide applicability, and it is widely used in compensation control systems. For the determination of the controller parameters, the classic tuning methods are mainly the Z-N method, etc., but these traditional methods lack flexibility and sometimes cause oscillation and large overshoot.
For the above reasons, many new optimization methods have been developed13,14,15,16,17, such as a fuzzy-based PID18,19,20,21,22, a neural network-based PID23,24,25. Among them, particle swarm optimization algorithms have the characteristics of simple operation, high accuracy, and fast convergence and are widely used26,27,28,29. Xia et al. have done a lot of research on the improvement and application of particle swarm algorithm30,31,32. The reason why particle swarm algorithm has gained so much attention is due to its unique advantages. The PID controller based on the particle swarm algorithm can optimize the factors of the controller to realize the intelligent adjustment of PID parameters. For the controllers of wave compensation platforms, optimization strategies based on intelligent algorithms have received more and more attention and development.
The paper is organized as follows. First, the principle and application of PSO are introduced in “Particle swarm algorithm process” section; then, in “PID controller of ship wave compensation system” section, the authors apply PID to the wave compensation system of a ship and explain the parameters therein. In “Wave compensation platform control system and simulation” section, the simulation is performed, and the effect of PID parameters on the wave compensation system is obtained. The PSO algorithm is compared with other intelligent algorithms, and the resulting image is obtained in “Intelligent algorithm optimization and comparison of wave compensation control system” section. Finally, In “Conclusion” section the full text is summarized, and the future outlook is presented.
Particle swarm algorithm process
The PSO algorithm has made considerable progress. Ghooi et al.33 have combined the Kronecker summation method and a modified PSO search technique, gives an optimal or approximately optimal controller that is quite successful in comparison to classical techniques and even numerous modern control techniques. For the wave compensation platform under the PID controller, when the particle swarm algorithm is used to solve the optimization problem, the particles are the values of PID parameters Kp, Ki, Kd, and the optimal solution of the problem corresponds to the position of the particle in the search space. Each particle has speed and position and fitness value.
The flow of the particle swarm algorithm is as follows:
At first, initialize the particle swarm and initialize each particle randomly.
Determine the dimension N of the parameter, the initial position of the parameter of the PID controller of the wave compensation control system, the iterative velocity and position of the particle can be determined by the following formula:
The flow of particle swarm optimization algorithm is shown in Fig. 1.
PID controller of ship wave compensation system
The history of PID control is very early. In current process control, many control loops have a PID structure, and many of them are based on PID control. The fundamental reason why it can be widely used is that it has a simple structure, clear logic, and it can adapt to many occasions and is robust. Nevertheless, for PID controllers, the use of different proportional coefficients, integral time constants, and derivative time constants has a great influence on the effect of the control system. Therefore, whether the optimal value of the parameter can be determined is very important to the control effect of the entire system. It can also be said that the optimization of PID parameters is the core of control system design.
Figure 2 is a schematic diagram of the ship's wave compensation platform structure, which is divided into an upper platform and a lower platform, connected by six driving cylinders. The lower platform is placed on the ground, and the upper computer controls the movement of the upper platform by controlling the elongation of each drive cylinder. Figure 3 is a block diagram of the PID control principle of the ship wave compensation system. The control system is composed of a PID controller and a controlled object. The controlled object is each drive cylinder of the designed wave compensation mechanism.
The PID control of the ship wave compensation system is a linear controller, which constitutes a control deviation according to the given value r(t) and the actual output value y(t):
The PID control law of ship wave compensation system is:
The form of its transfer function:
Among them, \(K_{p}\) is the proportional coefficient, \(T_{i}\) is the integral time constant, and \(T_{d}\) is the derivative time constant. The functions of each correction link in the PID controller of the ship wave compensation system are as follows:
-
1.
The proportional link of the ship wave compensation system (proportional coefficient \(K_{p}\)): it reflects the error in a certain proportion. Once an error occurs, it is controlled immediately to reduce the error.
-
2.
Integral link of ship wave compensation system (integration time constant \(T_{i}\)): to eliminate static error, the smaller the value of \(T_{i}\), the stronger the integral effect; the larger the value of \(T_{i}\), the weaker the integral effect.
-
3.
Differential link of ship wave compensation system (differential time constant \(T_{d}\)): reflect the rate of change of deviation, add a parameter adjusted in advance to the compensation system, the smaller the value of \(T_{d}\), the stronger the differential effect; the larger the value of \(T_{d}\), the greater the differential effect weak.
The influence of PID parameters on controller performance is shown in Table 1.
Wave compensation platform control system and simulation
For the wave compensation platform, the control system can be shown in Fig. 4. Where the controller is a PID controller, as shown in Fig. 5. The upper platform is established as a dynamic coordinate system, and the lower platform is a static coordinate system. The position and posture of the upper platform are known, and the elongation of each cylinder is obtained by the inverse solution method. After that, the driving signal is input to the PID controller, and then into the platform system established by Sim Mechanics. The system outputs the position and sensor signals as Pos and Vel signals, which are fed back to the controller to form a closed loop control. The platform system Plant in the figure is established according to the structure of the wave compensation platform in Fig. 2. PID controller adjusts through feedback to reduce the existence of error. Because the PID parameters of different wave compensation platforms are different, we build a ship wave compensation system based on PID control. In order to show that the selection of its parameters will have an impact on the control effect, we select two groups of different parameters to show the difference. By adjusting the PID parameters, the error image of the model simulation is obtained. The specific values of the PID parameters used in the experiment are shown in Table 2 below, and the resulting image is shown in Fig. 6.
Each curve in Fig. 6 represents the elongation error of a driving cylinder of the ship's wave compensation platform. When the PID parameters are 2,000,000, 10,000, 45,000, the error is obviously smaller than the error value when the parameters are 20,000, 100, 450. It can be seen that The parameters of PID controller are of great significance to the control accuracy of the wave compensation platform.
As shown in Fig. 7, the six-degree-of-freedom wave compensation platform servo system. The control signal of the microcomputer system is converted into an analog voltage signal to control the servo valve through digital-to-analog conversion. The servo valve then converts the voltage signal into a signal that drives the drive cylinder. The position signal output of the drive cylinder passes the position sensor output voltage signal, which is converted into a digital signal through analog-to-digital conversion and transmitted to the microcomputer control system.
For the six-degree-of-freedom wave compensation platform, its single-channel drive transfer function can finally be transformed into a third-order transfer function. For the wave compensation control system, this paper uses a simplified transfer function to express:
In addition, it is necessary to define a performance index as an objective function to evaluate the fitness of individual particles in the algorithm. The indicators for measuring a control system have three aspects: stability, accuracy, and speed. When adjusting PID parameters, we usually pay attention to the overshoot, rise time, adjustment time, peak time of the response curve. The combination of these parameters is used as an evaluation function. The smaller the evaluation function, the better the parameters obtained by simulation.
The error performance index selects ITAE (Integrated Time and Absolute Error) index:
The performance index of time multiplied by the integral of absolute value of error (ITAE) is a kind of control system performance evaluation index with good engineering practicality and selectivity. It is a performance index expressed by the integral expression of the function of the deviation between the expected output of the system and the actual output or the main feedback signal, and it is a measure of the excellent performance of the control system.
Then we set up the control diagram in Simulink, as shown in Fig. 8.
Intelligent algorithm optimization and comparison of wave compensation control system
The particle swarm algorithm is used to optimize the design of the PID controller, and the algorithm is used to adjust the gain of the controller. By taking the three parameters of the controller as the position of a particle in the algorithm, the parameter optimization problem of the controller can be easily transformed into a three-dimensional algorithm. Set up a control block diagram in the Simulink model, and connect the particle of the PID controller parameter to the performance index of the control system corresponding to the particle.
The optimization process is shown in Fig. 9: the particle swarm generates a particle swarm (it can be an initialized particle swarm or an updated particle swarm), and the particles in the particle swarm are assigned to the parameters Kp, Ki, Kd of the PID controller in turn, And then run the Simulink model of the control system to obtain the performance index corresponding to the set of parameters, which is passed to the particle swarm as the fitness value of the particle, and finally, it is judged whether it can exit the algorithm.
Particle swarm algorithm related parameter settings: speed range: [− 1,1], PID parameter range: [0,300]. In addition, the inertia factor, acceleration constant, acceleration constant, maximum number of iterations, minimum fitness value, and population size of the particle swarm algorithm are shown in Table 3.
We can get the controller's proportional coefficient, integral time constant, derivative time constant and fitness value parameter iteration curve as shown in Fig. 10. As shown in Fig. 10a, after 10 iterations, the value of Kp reaches a stable value. As shown in Fig. 10b, after 12 iterations, the value of Ki reaches a stable value. As shown in Fig. 10c, after 23 iterations, Kd reaches a stable level. As shown in Fig. 10d, after 25 iterations, the fitness function converges.
The optimized parameters of particle swarm (PSO) are shown in Table 4, and the response curve is shown in Fig. 10e. At the same time, for the same model, genetic algorithm (GA) is used to optimize the parameters, and the numerical results are shown in Table 4, and the response curve is shown in Fig. 10f.
Bringing the obtained values into the system, we can get the wave compensation platform system response. The response curve comparison is shown in Fig. 11.
The analysis shows that for step input, the response overshoot obtained by the genetic algorithm is 64.49%, the peak time is 1.6194 s, and the adjustment time is 2.8 s; the step response obtained by the particle swarm algorithm, the overshoot is 0.55%, and the peak time is 1.3593 s, the adjustment time is 1.4 s. The overshoot particle swarm algorithm is 63.94% lower than the genetic algorithm, the peak time is 0.26 s lower, and the adjustment time is 1.4 s lower. The result is shown in Fig. 11a. The wave signal can be seen as a superposition of multiple sinusoidal signals. Using the same type of sinusoidal signal input in the third section of the simulation, the response curve shown in Fig. 11b is obtained. In summary, it can be seen that the system response obtained by particle swarm optimization, it has a smaller overshoot, a faster response speed, and a good control effect.
Conclusion
This paper uses particle swarm optimization to optimize PID parameters and obtains the wave compensation control system's response curve. It is concluded that the control effect of the wave compensation control system is closely related to the controller's parameter selection. At the same time, the particle swarm optimization algorithm can tune the wave compensation PID control system. The effect of particle swarm optimization has a small overshoot and a fast response speed. Compared with other intelligent algorithms, it has obvious advantages. It has reference value for the optimization of wave compensation control systems.
PSO is an optimization algorithm based on iteration. The system is initialized to a group of random solutions, and then the optimal value is searched by iteration. The advantage of PSO is that it is simple and easy to implement, and there are not many parameters to adjust. But the PSO algorithm also has some shortcomings, such as the determination of some weight coefficients is not easy to choose. Therefore, other algorithms can be integrated into PSO algorithm in the future. Through appropriate adjustment, the advantages of each algorithm can be brought into play to improve the optimization ability of the algorithm. Mutation operation can be added to prevent premature algorithm, and improve the global optimization ability of PSO algorithm.
References
Woodacre, J. K., Bauer, R. J. & Irani, R. A. A review of vertical motion heave compensation systems. Ocean Eng. 104, 140–154 (2015).
Carral, L. et al. Winch control gear for CTD sampling with a system to compensate vertical motion heave when manoeuvring in rough seas. Ocean Eng. 135, 246–257 (2017).
Li, S. et al. Nonlinear robust prediction control of hybrid active–passive heave compensator with extended disturbance observer. IEEE Trans. Ind. Electron. 64, 6684–6694 (2017).
Halvorsen, H. S. et al. Wave motion compensation in dynamic positioning of small autonomous vessels. J. Mar. Sci. Technol. 1–20 (2020).
Richter, M. et al. Experimental validation of an active heave compensation system: Estimation, prediction and control. Control. Eng. Pract. 66, 1–12 (2017).
Huang, L. et al. Semi-active drilling draw works heave compensation system. Pet. Explor. Dev. 40, 665–670 (2013).
Woodacre, J. K., Bauer, R. J. & Irani, R. Hydraulic valve-based active-heave compensation using a model-predictive controller with non-linear valve compensations. Ocean Eng. 152, 47–56 (2018).
Li, M. et al. Study on the system design and control method of a semi-active heave compensation system. Ships Offshore Struct. 13, 43–55 (2018).
Fang, Y. et al. Dynamics analysis and nonlinear control of an offshore boom crane. IEEE Trans. Ind. Electron. 61, 414–427 (2013).
Ramli, L. et al. Control strategies for crane systems: A comprehensive review. Mech. Syst. Signal Process. 95, 1–23 (2017).
Cao, Y. & Li, T. Review of antiswing control of shipboard cranes. IEEE/CAA J. Autom. Sin. 7, 35–43 (2020).
Qian, Y., Fang, Y. & Lu, B. Adaptive robust tracking control for an offshore ship-mounted crane subject to unmatched sea wave disturbances. Mech. Syst. Signal Process. 114, 556–570 (2018).
Pongfai, J. et al. Optimal PID controller autotuning design for MIMO nonlinear systems based on the adaptive SLP algorithm. Int. J. Control Autom. Syst. 19, 1–12 (2020).
Sun, N. et al. Transportation control of double-pendulum cranes with a nonlinear quasi-PID scheme: Design and experiments. IEEE Trans. Syst. Man. Cybern. Syst. 49, 1408–1418 (2018).
Oliveira, P. W. & Barreto, G. A. A general framework for optimal tuning of PID-like controllers for minimum jerk robotic trajectories. J. Intell. Robot. Syst. 99, 467–486 (2020).
Da Silva, L. R., Flesch, R. C. & Normey-Rico, J. E. Controlling industrial dead-time systems: When to use a PID or an advanced controller. ISA Trans. 99, 339–350 (2020).
Al Gizi, A. J. H. A particle swarm optimization, fuzzy PID controller with generator automatic voltage regulator. Soft. Comput. 23, 8839–8853 (2019).
Feng, Y. et al. A fuzzy PID controller with nonlinear compensation term for mold level of continuous casting process. Inf. Sci. 539, 487–503 (2020).
Raj, R. & Mohan, B. M. Modeling and analysis of the simplest fuzzy PID controller of Takagi-Sugeno type with modified rule base. Soft Comput. 22, 5147–5161 (2018).
Zhu, Z. Q. et al. Nonlinear-dynamic-analysis based fuzzy PID control approach for complex hydraulic driving process. Int. J. Precis. Eng. Manuf. 19, 947–958 (2018).
Ghosh, B. B., Sarkar, B. K. & Saha, R. Realtime performance analysis of different combinations of fuzzy–PID and bias controllers for a two degree of freedom electrohydraulic parallel manipulator. Robot. Comput. Integr. Manuf. 34, 62–69 (2015).
Shi, L., Li, H. & Wang, Z. Positioning and anti-swing control system based on fuzzy adaptive PID controller for bridge crane. Mech. Eng. Autom. 5, 70 (2014).
Suh, J. H. et al. Anti-sway position control of an automated transfer crane based on neural network predictive PID controller. J. Mech. Sci. Technol. 19, 505–519 (2005).
Ho, S. J. et al. An automatic travel control of a container crane using neural network predictive PID control technique. Int. J. Precis. Eng. Manuf. 7, 35–41 (2006).
Zhang, H. & Yuan, X. An improved particle swarm algorithm to optimize PID neural network for pressure control strategy of managed pressure drilling. Neural Comput. Appl. 32, 1581–1592 (2020).
Ab Talib, M. H. et al. Vibration control of semi-active suspension system using PID controller with advanced firefly algorithm and particle swarm optimization. J. Ambient Intell. Human. Comput. 12, 1–19 (2020).
Yu, Y. et al. Adsorption control of a pipeline robot based on improved PSO algorithm. Complex Intell. Syst. 4, 1–7 (2020).
Long, Z. et al. A novel approach to control of piezo-transducer in microelectronics packaging: PSO-PID and editing trajectory optimization. IEEE Trans. Compon. Packag. Manuf. Technol. 10, 795–805 (2020).
Xiang, Z. et al. A simple PID-based strategy for particle swarm optimization algorithm. Inf. Sci. 502, 558–574 (2019).
Xia, X. et al. Triple archives particle swarm optimization. IEEE Trans. Cybern. 99, 4862–4875 (2019).
Wei, B. et al. Multiple adaptive strategies based particle swarm optimization algorithm. Swarm Evol. Comput. 57, 100731 (2020).
Xia, X. et al. An expanded particle swarm optimization based on multi-exemplar and forgetting ability. Inf. Sci. 508, 6184 (2019).
Ghooi, M., Jain, S. & Hote, Y. V. Proportional integral derivative controller tuning via Kronecker summation and modified particle swarm optimization with experimental validation. Eng. Optim. 3, 1–21 (2020).
Acknowledgements
This work was supported in part by the National Natural Science Foundation of China under Grant 82004259, in part by the GuangDong Basic and Applied Basic Research Foundation under Grant 2020A1515110503, in part by the Guangzhou Basic and Applied Basic Research Project under Grant 202102020674, in part by the Young Talent Training Project of Guangzhou University of Chinese Medicine under Grant QNYC20190110.
Funding
This work was supported in part by the National Natural Science Foundation of China under Grant 82004259, in part by the GuangDong Basic and Applied Basic Research Foundation under Grant 2020A1515110503, in part by the Guangzhou Basic and Applied Basic Research Project under Grant 202102020674, in part by the Young Talent Training Project of Guangzhou University of Chinese Medicine under Grant QNYC20190110.
Author information
Authors and Affiliations
Contributions
Conceptualization: G.T., P.L., X.H., and S.M.; software: P.L.; Validation: P.L.; resources: P.L. and G.T.; writing: G.T., P.L. and S.M.; visualization: Peng Lu; supervision: G.T.; project administration: G.T., X.H.; All authors have read and agreed to the published version of the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Tang, G., Lu, P., Hu, X. et al. Control system research in wave compensation based on particle swarm optimization. Sci Rep 11, 15316 (2021). https://doi.org/10.1038/s41598-021-93973-4
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-021-93973-4
This article is cited by
-
Optimization of X-axis servo drive performance using PSO fuzzy control technique for double-axis dicing saw
Scientific Reports (2023)
-
Quantum-behaved particle swarm optimization based on solitons
Scientific Reports (2022)
-
Optimizing BLDC motor drive performance using particle swarm algorithm-tuned fuzzy logic controller
SN Applied Sciences (2022)
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.