Research Article
A Genetic Simulated Annealing Algorithm to Optimize the Small-World Network Generating Process
| 1. Input: The initial network: G; The size of population: Spop; The mutation rate: Pm; The annealing temperature: T; | | The cooling coefficient of temperature: DELTA. | | 2. Choose an new chromosome from Spop; | | 3. Initialize an random number n in , if n < Pm, turn to 4; If n >= Pm, turn to 9; | | 4. Select a random integer from edges_encryption to replace one of numbers in the chromosome, thus produce | | an mutated chromosome; | | 5. Calculate by add edges with original chromosome and get with mutated chromosome; | | 6. ; | | 7. If , replace original chromosome by mutated chromosome and turn to 9; If Δf < 0, turn to 8; | | 8. , initialize a random number m in . If m <, replace original chromosome by mutated chromosome; | | 9. If all the number in the original chromosome have been selected then turn to 2, else turn to 3; | | 10. End. |
|