Research Article
PCB Drill Path Optimization by Combinatorial Cuckoo Search Algorithm
Pseudocode 3
Pseudocode for fitness evaluation.
Input: | ~, sol = sort(); | sol = sol, sol(1); | fitness = 0; | longest = 0; | For : number of holes | fitness = fitness + distance between holes and ; | if longest < distance between holes and | longest = distance between holes and ; | position = ; | end if | end for | if position number of holes | sequence = sol(position + : end − 1), sol(1: position); | else | sequence = sol (1: end − 1); | end if |
|