3.1. Simulation Setup
In this section, we designed numerical simulations to validate the effectiveness of the proposed method, and comparative simulations to verify the advancement and innovation of the system. In detail, to ensure the reliability of the simulation experiment, we made efforts in two ways. On the one hand, the actual parameters of ship’s the own gyrostabilizer are used as the simulation conditions, and the parameters of the boat made in the laboratory are used as the simulation carrier parameters. On the other hand, both regular and irregular long-crested wave environments are simulated and tested. The detailed parameters of the ship and gyrostabilizer are shown in
Table 1. And all parameters are based on experimental measurements.
Firstly, we conducted numerical simulations under regular wave conditions to verify the effectiveness of the proposed method under ideal conditions. Wave-induced forces under regular wave conditions can be calculated as follows:
where
,
,
represent the amplitude and frequency of the wave-induced torque under regular wave conditions, respectively.
In addition, to validate the effectiveness of the proposed method in a real ocean environment, we computed the response amplitude operator (RAO) for wave-induced moments using potential flow theory. The ship model and computational results are shown in
Figure 3.
According to the above results, the wave-induced moment in beam sea conditions can be calculated as
where
denotes the number of wave frequencies.
denotes the difference between two neighbouring frequencies.
denotes the random initial phase.
and
denote the real and imaginary parts of the wave moment RAO of the ship.
denotes the wave frequency component.
denotes the wave spectrum. In this paper, the ITTC two-parameter wave spectrum is used:
where
is the significant wave height,
is the spectral peak period of the irregular wave, and
is the frequency band for simulation. In order to minimize the self-repetition of irregular waves,
is sampled from the frequency range
with unequal intervals.
More importantly, in order to enhance the credibility of the simulation and further verify the effectiveness of the method, we carried out simulations in a beam sea environment with regular and irregular waves. Furthermore, wave parameters were based on typical sea conditions in the North Atlantic [
36], as shown in
Table 2.
The simulation results for the effects of wave-induced moments on the ship’s roll axis in beam seas are shown in
Figure 4.
Under the above conditions, we designed two simulations:
- (1)
Linear prediction simulation. The effectiveness of the global linear predictor is verified by comparison with the classical linear prediction algorithm (Algorithm 1).
- (2)
Controller comparative simulation. In different wave environments, the control stability and accuracy of the proposed system (Algorithm 2) and the other two classical systems are verified by comparing the three performance indicators.
The abbreviations of the proposed method and other compared methods are listed in
Table 3.
3.2. Linear Predict Simulation
In order to evaluate the effectiveness of the proposed method on system state predictions, we compare its prediction properties with LLP, which is commonly used. Firstly, we construct training datasets and testing datasets under different parameter settings as follows:
Training: The sampling interval of the training data is set to 0.01 s, step stride is 100, and the sampling period is 10 s. The control data is generated by a sine wave with an amplitude ranging from [1, 10] and a period ranging from [0.35 s, 1.55 s]. The moment applied to the roll axis of the ship, which is calculated using this control data, covers the range of waves-induced moments for the six typical sea conditions shown in
Table 2. The state data are obtained from Equation (
5) with random initial values.
Testing: The sampling interval of testing data is set to 0.01 s, step stride is 300, and the sampling period is 3 s. The settings of other parameters are consistent with those of the training phase. Notably, to simulate sensor noise, we added normally distributed noise with standard deviations of [0.02, 0.01, 0.02, 0.01, 0.05] to the testing set during the prediction phase.
In order to verify the sensitivity of various lifting functions to the performance of the predictor, we conducted numerical simulations using Gaussian, polynomial, trigonometric, and mixed observers, respectively. We define the original state variables of the system as
. The lifting functions are expressed as follows:
where
represent the
i-th (
) Gaussian observer, polynomial observer, trigonometric observer, and mixed observer, respectively.
denotes the center of the kernel function for the
i-th lifting function.
denotes the power-index vector of the
j-th (
) primitive state in the
i-th lifting function.
denotes the periodicity feature of the
j-th primitive state in the
i-th lifting function.
In addition, the state lifting dimension is also one of the important parameters of GLP, as it directly affects the predictor’s sensitivity to a nonlinear dynamical system. As is well known, the average RMSE between the predicted state and the true state can effectively be used to characterize the accuracy of the linear predictor. Therefore, we conducted ablation simulation experiments to test the state RMSE performance of system prediction under different parameter settings. The parameter range of the state lifting dimension was set from 10 to 100, with unequal interval sampling. We ran 100 experiments for each parameter and recorded the average RMSE of the repeated simulation experiments, as shown in
Table 4.
It can be observed from
Table 4 that the prediction performance of all GLP-based predictors is significantly superior to that of LLP under all tested parameter settings. Regardless of the lifting dimension, the average RMSE of the four lifting-function configurations remains substantially lower than that of LLP, demonstrating the effectiveness of the proposed lifting-based linear prediction framework in capturing the nonlinear dynamics of the roll stabilization system. Furthermore, as the lifting dimension N increases, the average prediction RMSE generally exhibits a decreasing trend, although the reduction is not strictly monotonic for every lifting function. This indicates that a larger lifted state space provides richer observable information and enables the predictor to characterize the underlying nonlinear dynamics more accurately.
Comparing different lifting functions, the Gaussian observer consistently achieves the best prediction accuracy among all tested configurations. Its average RMSE decreases from 4.90% at to 3.10% at , indicating that Gaussian radial basis functions possess strong local approximation capability for nonlinear roll dynamics. The trigonometric observer provides the second-best performance, suggesting that periodic basis functions are effective in describing the oscillatory characteristics of ship roll motion. Although the polynomial observer can partially capture the nonlinear restoring moments of the system, its prediction accuracy is inferior to Gaussian and trigonometric observers, especially at lower lifting dimensions. The mixed observer combines multiple basis-function types and achieves stable prediction performance over different lifting dimensions, but its accuracy does not surpass that of the Gaussian observer in the considered case. Based on the above results, in the subsequent numerical simulation phase, we selected the Gaussian observer as the lifting function. Simultaneously, the state lifting dimension was set to 100.
Furthermore, we conduct a comparison experiment between the proposed algorithm and the commonly used LLP. We select the ship rolling angle error (
), rolling angular velocity error (
), gyro precession angle error (
), precession angular velocity error (
) and motor current error (
) for estimating accuracy comparison parameters. The simulation experiment results are shown in
Figure 5.
As can be seen from the figure, the prediction error of the GLP algorithm is lower than that of the LLP algorithm for all five state variable estimates, which indicates that the prediction results of the GLP algorithm are closer to the true values. This is because the LLP algorithm typically expands linearly around the system’s equilibrium point and ignores higher-order subterms, which cannot accurately represent the system behavior when the system deviates from the equilibrium point, while the GLP algorithm achieves accurate modeling of nonlinear systems through the behavioral data of the nonlinear system in all state spaces, and thus can characterize the system more accurately. Therefore, the algorithm’s state estimation results perform better regardless of the system’s arbitrary position in the state space.
3.3. Controller Comparative Simulation Experiment
In order to further evaluate the accuracy of the proposed algorithm in ship rolling control, we constructed a GMPC controller using the GLP algorithm (see Algorithm 2 and
Figure 2 for details), and carried out control simulations in beam sea environments (including regular and irregular waves), respectively.
where
denotes the standard deviation of the ship’s free rolling (without gyrostabilizers) angle and
denotes the standard deviation of the ship’s rolling angle with controlled gyrostabilizers.
In addition, we constructed LMPC and NMPC for comparison simulations under the same control parameters to verify the advantages of GMPC in terms of control accuracy and real-time performance. Both GMPC and LMPC are solved by the open source quadratic programming tool in MATLAB 2024a, while NMPC is solved using the CASAdi toolkit [
37]. The controller parameter settings are shown in
Table 5.
Notice that the parameters of the four controllers in
Table 5 are the same except for the weight matrices
Q and
P. Since the state vector used for rolling optimization in GMPC is concatenated by the original state vector
, the lifted state vector
, and the control vector
(see (
13) for details). Therefore, the dimension of the state vector is set to be 106 (i.e.,
), which is different from the other two controllers. In order to maintain maximum consistency of the parameters, we set the parameters related to the original system state (the first 5) in the
Q and
P weight matrices of the GMPC to the same values as those used in the other two controllers.
With the above parameter settings, the simulations were carried out under the six wave environments (including regular and irregular waves) shown in
Table 2. Where the regular wave represents the ideal wave environment, while the irregular wave represents the real sea conditions. We chose the moment error (
), the gyro precession angular velocity (
), and the ship roll angle (
) to characterize the accuracy of the controller. Here,
represents the absolute value of the difference between the wave excitation moment and the gyro stabilizing moment. Hence, its periodic characteristics will be distinct from those of other curves in the figure. These parameters can characterize the control robustness of the system in different environments, and lower torque error, larger gyro precession angular velocity, and smaller ship roll angle indicate stronger resistance to wave interference and higher stability of the system. The simulation results in the regular wave environment are shown in
Figure 6.
As can be seen in
Figure 6, when the ship without gyrostabilizers is operating in a regular wave environment, the ship’s free rolling angle can be up to 4 degrees (black solid line in
Figure 6d). And with the controller, the torque error is reduced, the gyro precession angular velocity is increased, and the system stability is improved. The gyro precession angular velocity is positively correlated with its output stabilizing torque (see (
2) for details), its increase improves the system’s ability to resist wave disturbances and thus reduces the torque error. The rolling angle of the ship is obviously reduced (
Figure 6d), which indicates that the stabilizing torque generated by the gyrostabilizer cancels out part of the system disturbance. Consequently, the actual disturbance to the ship is smaller than that of the ambient wave disturbance, and the ship’s motion is smoother.
Moreover, It can be seen from
Figure 6a that the control moments generated by the three controllers exhibit the same shape and trend as the wave-induced moment, yet the moment generated by the GMPC is closer to the wave-induced moment. This is also evident in
Figure 6b, where the GMPC exhibits a smaller moment error of less than 5 Nm. This is primarily because, under the influence of the GMPC, the gyro produced a higher precession angular velocity (
Figure 6c). This indicates that the gyrostabilizer based on the GMPC algorithm has better efficacy and ship motion stability. As can be seen from
Figure 6d, the rolling angle of the ship of GMPC controller fluctuates around 0 degrees with small amplitudes, the gyrostabilizer produces accurate stabilizing torque, and the ship realizes small amplitude rolling motion in a regular wave environment. From the combined results in
Figure 6, it is clear that the GLP proposed in Algorithm 1 does provide accurate state predictions for the controller. Although the physical significance of the system states that are mapped into the higher-dimensional space is not clear, these results confirm that the proposed algorithm’s mapping relationship from the lower-dimensional nonlinear space to the higher-dimensional linear space is correct.
We verified the control accuracy in irregular wave environments that are closer to the real sea conditions. The parameters of the irregular wave environments are shown as Case 2 to Case 6 in
Table 2, which represents typical sea conditions from Level I and Level V, respectively.
Figure 7a shows the wave-induced moment and control moment under irregular wave conditions (Case 4). Compared to regular wave conditions, the amplitude and frequency of the wave disturbance moment vary over time under irregular wave conditions. Nevertheless, the gyro-stabilizing moment of the GMPC remains close to the wave-induced moment. In Case 4, the error between the gyro stabilization moments of NMPC and LMPC and the wave disturbance moments increases, exceeding 150 Nm. While the algorithm in this paper maintains global robustness, as shown in the local magnification of
Figure 7c, the GMPC-controlled gyrostabilizer generates a larger precession angular velocity, thereby producing a larger stabilization moment. Even during the period of most severe disturbance (40–42 s), the GMPC is still able to maintain control accuracy. Furthermore,
Figure 7d reports the ship’s roll angle under irregular wave disturbances, showing that the GMPC exhibits a much smaller roll angle amplitude and consistently maintains a high stabilization efficiency.
Furthermore, to analyze the robustness of the proposed method, we conducted multiple numerical simulations over a wider range of wave parameters and used the response amplitude operator to characterize the rolling behavior of uncontrolled and controlled ships under various irregular wave conditions. The results are shown in
Figure 8.
Figure 8 presents the roll responses of the ship under five regular-wave conditions with different wave parameters. It can be clearly observed that the roll motion of the uncontrolled ship increases significantly as the sea state becomes more severe. Specifically, the rolling RAO rises continuously from Sea State 1 to Sea State 5, indicating that stronger wave excitation introduces larger external disturbance moments to the vessel. Such excessive roll motion not only degrades mission performance but also poses a serious threat to navigation safety and onboard operational reliability.
When the control systems are activated, all three controllers effectively suppress the roll motion to different extents. Compared with the uncontrolled case, the TMPC, NMPC, and GMPC controllers all achieve considerable reductions in rolling amplitude under every sea-state condition, demonstrating their capability to mitigate wave-induced disturbances. More importantly, even under the harshest sea conditions, the controlled roll angles remain below 5 deg, indicating that the active stabilization system can maintain satisfactory roll performance throughout the entire operating range considered in this study.
A further comparison among the three control strategies reveals that the proposed GMPC consistently achieves the lowest rolling RAO under all wave conditions. As the wave intensity increases, the superiority of GMPC becomes increasingly evident. This result indicates that the Koopman-based predictor can capture the nonlinear roll dynamics more accurately than the linear predictor employed by TMPC, while simultaneously avoiding the high computational burden associated with the nonlinear optimization process of NMPC. Consequently, the GMPC controller generates more effective control actions and provides superior roll attenuation performance across a wide range of sea states.
Overall, the results demonstrate that the proposed GMPC not only preserves the robustness of model predictive control under varying wave environments but also achieves the best roll reduction performance among the considered control strategies. Therefore, it provides an effective solution for ship roll stabilization in both moderate and severe sea conditions.Moreover, the performance gap between GMPC and the other controllers becomes more pronounced as the sea state increases, suggesting that the proposed Koopman-based predictor possesses stronger disturbance-rejection capability and better adaptability to highly nonlinear roll dynamics under severe wave conditions.
Finally, we conducted a comprehensive and systematic simulation. Ship motion and computational time consumption in the six wave environments are recorded in
Table 6, where the data are the average numerical results of 10 repeated simulations with random wave slices and random state initial values. As can be seen, under different wave environments, compared with the free rolling motion of the ship, the amplitude and standard deviation of the ship’s rolling angle based on the three control methods are reduced to different degrees, and the stability of the ship’s motion is improved. In particular, the amplitude and standard deviation of the ship’s roll angle under GMPC are significantly lower than those of the remaining two, and the control efficiency is significantly improved.
Table 6 summarizes the roll stabilization performance and computational efficiency of different controllers under six wave conditions. The reported values are the average results of 10 independent simulations with randomly selected wave segments and random initial states. To further evaluate the practical applicability of the controllers, measurement noise was introduced into the feedback states during the simulations.
It can be observed that all three control strategies significantly reduce the roll motion compared with the uncontrolled case. As the wave environment becomes more severe, the rolling standard deviation of the uncontrolled ship increases continuously from 3.80 deg in Case 1 to 12.71 deg in Case 6, indicating that stronger wave disturbances lead to larger roll motions and deteriorate ship stability. After the controllers are activated, the rolling standard deviations are substantially reduced under all sea conditions, demonstrating the effectiveness of active roll stabilization.
From the perspective of control efficiency, the proposed GMPC consistently achieves the best performance among all considered methods. In the regular-wave environment (Case 1), GMPC attains a roll reduction efficiency of 91.75%, which is higher than that of LMPC (90.06%) and significantly higher than that of NMPC (75.17%). More importantly, when transitioning from the regular-wave condition to the irregular-wave conditions (Cases 2–Case 6), the control efficiencies of LMPC and NMPC exhibit noticeable degradation. This phenomenon can be attributed to the combined influence of irregular environmental disturbances and measurement noise, which introduces larger prediction errors and reduces control accuracy. In contrast, the proposed GMPC maintains a control efficiency of approximately 90% across all irregular-wave conditions, indicating strong robustness against both wave uncertainty and sensor noise.
The computational results further highlight the advantages of GMPC for real-time implementation. The average computational cost of GMPC remains below 0.5 ms per control step for all test cases, which is comparable to that of LMPC and significantly lower than that of NMPC. Specifically, the average computation time of NMPC exceeds 20 ms in all scenarios, whereas the control sampling interval adopted in this study is only 10 ms. Consequently, the nonlinear optimization problem cannot be solved within a single control cycle, resulting in delayed control actions and degraded stabilization performance. This explains why NMPC achieves lower control efficiency despite explicitly considering the nonlinear dynamics of the system.
In contrast, by transforming the nonlinear roll dynamics into a lifted linear prediction model through the Koopman operator, GMPC preserves the computational efficiency of linear MPC while retaining the capability to characterize nonlinear system behavior. Therefore, the proposed method simultaneously achieves superior roll suppression performance, strong robustness to disturbances and measurement noise, and real-time computational capability, making it particularly suitable for practical ship roll stabilization applications.
In summary, the GMPC algorithm provides effective state estimation and real-time performance, which meets the requirements of practical applications.