Patent ID: 11941553
Assignee: HEFEI UNIVERSITY OF TECHNOLOGY
Field: IT methods for management (Electrical engineering)
Classification: CPC G | IPC G

Claim 4:
5. The method of claim 4, wherein the operation S4 includes:
S41, by updating the positions of the discoverers based on a discoverer position calculation formula, determining current positions of the discoverers;
S42, by updating the positions of the followers based on a follower position calculation formula, determining current positions of the followers;
S43, by updating the positions of the vigilantes based on a vigilante position calculation formula, determining current positions of the vigilantes;
S44, by a termination condition, that is, respectively comparing updated positions of the discoverers, the followers and the vigilantes with their corresponding initial positions,
in response to that the routes between the current positions and the initial positions are shorter than the routes between the positions before the update and the initial positions, recording the current positions as final positions;
in response to that the routes between the current positions and the initial positions are not shorter than the routes between the positions before the update and the initial positions, recording the positions before the update as the final positions; and
determining the flying distance and the fitness value corresponding to each sparrow based on the final positions;
S45, determining a flying time based on the flying distance of the sparrow, substituting the flying time into the navigation time optimization target function for calculation, and obtaining a flying time optimization target function of the sparrow;
determining the navigation risk based on the sparrow's fitness value, the navigation risk being the coefficient αM indicating an influence level of a flying height of the sparrow on its flying risk and the coefficient βM indicating an influence level of the wind speed on the flight risk; substituting the two coefficients into the ship route risk assessment function to obtain a sparrow route risk assessment function;
S46, combining the flying time optimization target function and the sparrow route risk assessment function to form a sparrow total cost assessment function, and determining a cost value corresponding to the iteration;
S47, repeating the operations S41 to S46 for multiple iterations until finding out a discoverer, follower or vigilante who has the shortest distance from the current position to the initial position, determining a corresponding fitness value of the discoverer, follower or vigilante, obtaining a target sparrow corresponding to the minimum value of the sparrow total cost assessment function, determining the flying route corresponding to the target sparrow as the optimal ship route.