Research Article
RFID Indoor Positioning Based on AP Clustering and Improved Particle Swarm Algorithm
Algorithm 2
RFID indoor positioning based on AP-PSO algorithm.
| Input: | | 1: Similarity matrix S,damping factor , | | 2: Number of particles O,Weighting w,,,,; | | Output: The optimal position of the particle ; | | 3: Divided tags area:after clustering by Algorithm 1, f clustering centers are obtained; | | 4: The RSSI value [] of the tag to be measured is divided into f classes based on similarity; | | 5: Improved PSO algorithm for location finding: | | 6: for each particle h do | | 7: Initialize velocity and position for particle h; | | 8: Evaluate particle h and set = | | 9: end for | | 10: = min; | | 11: while not stop do | | 12: for h to O do | | 13: Update the velocity and position of particle h using the improved and ; | | 14: Evaluate the particle h according to the fitness function | | 15: end for | | 16: ifthen | | 17: ; | | 18: ifthen | | 19: ; | | 20: end if | | 21: end if | | 22: end while | | 23: Output and get the coordinates corresponding to the RSSI value of , which is then the position of the tag to be measured. |
|