| 1。lnitialize(,,,,) |
| 2。lnitialSolution(); |
| 3所示。而(可行的(x)= = FALSE) |
| 4所示。
InitialSoiution(); |
| 5。minDist =Dist (x); |
| 6。为(nCounts =;nCounts > 0;nCounts) |
| 7所示。为(nChanges =;nChanges > 0;nChanges) |
| 8。为(,;()& &());k+ +,) |
| 9。为(;;z+ +) |
| 10。
RandomNeighborSequence(x,nChanges); |
| 11。如果(可行的(y)= = TRUE) |
| 12。
minDist−Dist (y); |
| 13。如果()> 1.0) |
| 14。
; |
| 15。如果(RandomNumber([0,1])< =p) |
| 16。如果() |
| 17所示。
; |
| 18岁。minDist =Dist (x); |
|