The application discloses a
sardine optimization solving method and
system and a storage mechanism, relates to the technical field of
environmental monitoring, and comprises the following steps: acquiring a monitoring range of a sensor, obtaining a current position of each
sardine according to the monitoring range and a preset random function; calculating an
adaptive value of each
sardine according to the current position of the sardine
population, and obtaining a first optimal position of the sardine
population; calculating according to a current iteration number and a preset iteration number, and obtaining a current
physical strength of each sardine; determining a current stage of the sardine according to the current
physical strength; calculating according to the current stage, the current
physical strength, the current position and the first optimal position, and obtaining an updated position of each sardine; taking the updated position as an updated current position, recalculating the first optimal position according to the updated current position, and updating the updated position. The application can consider the influence of the iteration number on the updated position, and improve the accuracy of the
algorithm.