This invention relates to a method and
system for real-time thrust allocation in
dynamic positioning of large ships, comprising the following steps: S1, establishing a six-degree-of-freedom dynamic model of the ship in three-dimensional space; S2, using a
sensor system to monitor external disturbances such as wind,
waves, and currents in real time, and
processing the monitoring information through a data fusion
algorithm to estimate the external disturbance forces acting on the ship; S3, integrating the maximum thrust limit, total power limit, and
turning angle limit of the propellers into a set of mathematical inequality constraints; S4, based on
model predictive control theory, combining the dynamic model, the estimated external disturbance forces, and the mathematical inequality constraints, constructing an
optimization problem with the objective of minimizing ship positioning error and
propeller energy consumption, and obtaining the optimal thrust allocation scheme for each
propeller in real time by solving this problem. This invention has the effects of improving positioning accuracy, improving power
system efficiency, enhancing the real-time performance and adaptability of the
system, and ensuring the safety of the power system.