(distance_matrix)
| 28 | |
| 29 | # Function: Initial Seed |
| 30 | def seed_function(distance_matrix): |
| 31 | seed = [[],float('inf')] |
| 32 | sequence = random.sample(list(range(1, distance_matrix.shape[0]+1)), distance_matrix.shape[0]) |
| 33 | sequence.append(sequence[0]) |
| 34 | seed[0] = sequence |
| 35 | seed[1] = distance_calc(distance_matrix, seed) |
| 36 | return seed |
| 37 | |
| 38 | ############################################################################ |
| 39 |
no test coverage detected