Research Article
Modified Atom Search Optimization Based on Immunologic Mechanism and Reinforcement Learning
Algorithm 1
Pseudocode of the atom search optimization algorithm.
(1) | Randomly initialize a set of atoms X (solutions) and their velocity , and . | (2) | While the stop criterion is not satisfied do | (3) | For each atom do | (4) | Calculate the fitness value Fit; | (5) | If then | (6) | ; | (7) | ; | (8) | End If. | (9) | Calculate the massing using equations (2) and (3); | (10) | Determine its K neighbors using equation (4); | (11) | Calculate the interaction force and the constraint force using equations (11) and (12), respectively; | (12) | Calculate the acceleration using equation (14); | (13) | Update the velocity using equation (15); | (14) | Update the position using equation (16); | (15) | End For. | (16) | End While. | (17) | Find the best solution so far |
|