Firefly algorithm optimization based WSN localization algorithm

Regarding the relatively big errors with running the DV-Hop localization algorithm in a network topology environment, with which the nodes were randomly distributed, the firefly algorithm(FA) was used to correct the position estimated by DV-Hop, a firefly optimization localization algorithm based on DV-Hop was proposed. The mathematical model was built with the smallest error for all of unknown nodes, and the firefly algorithm was used to obtain the optimal solution of the model without additional devices and increasing the traffic. The simulation results show that the average localization error of the FDV-Hop algorithm is significantly improved compared with the original algorithm.