Research Article
A Hyperheuristic for the Dial-a-Ride Problem with Time Windows
Listing 4
The pseudocode of the random permutation descent heuristic selection operator.
(1) function rpd_heuristic_selection | (2) set = null | (3) if is empty | (4) store a random permutation of in | (5) end if | (6) set = , = null | (7) for each low-level heuristic in | (8) = | (9) if > | (10) = | (11) end if | (12) end for | (13) if <= | (14) clear | (15) end if | (16) return | (17) end function |
|