ants=ranking(ants,4)#the ants in this generation are ranked based on their scores and the best 4 are selected
forlinants:#update the options list to ensure that good performing queue-rule combinations have increased representation and good chance of being selected in the next generation
formincollated.keys():#e.g. if using EDD gave good performance for Queue 1, then another 'EDD' is added to M1Options so there is a higher chance that it is selected by the next ants.