Research Article
Dynamic Sign Guidance Optimization for Crowd Evacuation considering Flow Equilibrium
Algorithm 4 Reproduction algorithm in Genetic algorithm.
(1) | Input: , , | (2) | Output: the next-generation population | (3) | Procedure REPRODUCTION(, , , , ) | (4) | Set , make sure no identical chromosomes are in . | (5) | For each chromosome in , do | (6) | Calculate the fitness value of the chromosome obtain the chromosome with maximum fitness value from | (7) | End for | (8) | Let , . | (9) | while , do | (10) | Randomly select chromosome and from | (11) | If | (12) | Then set | (13) | Else set | (14) | End if | (15) | Let , . | (16) | End while | (17) | Return | (18) | End procedure |
|