Research Article
Multi-Item Multiperiodic Inventory Control Problem with Variable Demand and Discounts: A Particle Swarm Optimization Algorithm
Pseudocode 1
The pseudocode of MOPSO algorithm.
for to Pop | initialize position () | initialize velocity () | if position () and velocity () be a feasible candidate solution | penalty = 0 | else penalty = a positive number | end if | end for | | do while Iter <= Gen | for to Pop | Calculate new velocity of the particle | Calculate new position of the particle | best(iter) = min(best()) | end for | best(iter) = min(best) | )/iter_max) × iter | modifying the velocity and position of the particle | end while |
|