Research Article
Study on the Emergency Management System considering Victims’ Self-Rescue Abilities
Algorithm 1
A simple genetic algorithm for TSP.
| | // is a city-location matrix | | | // is the current iterations | | | initialize with chromosomes // is the pop size | | | while not (terminating condition) do | | | for to do | | | // is the fitness function | | | for to do | | | ← randomly choose with | | | ← recombine () with // is the crossover probability | | | ←mutate with // is the mutation probability | | | ← | | | |
|