Research Article
Multiagent Task Allocation in Complementary Teams: A Hunter-and-Gatherer Approach
| (1) | function ChoosePartner (, , , , online_board) | | (2) | list and sort waiting hunters | | (3) | for each hunter in do | | (4) | the selected waiting hunter | | (5) | the task detected by | | (6) | generate a path to do and | | (7) | update with newly calculated costs | | (8) | if is not in state 3 for then | | (9) | | | (10) | for to do | | (11) | if then | | (12) | | | (13) | end if | | (14) | end for | | (15) | end if | | (16) | if validation_flag == true then | | (17) | | | (18) | break for | | (19) | end if | | (20) | end for | | (21) | return |
|