Research Article
Multiagent Task Allocation in Complementary Teams: A Hunter-and-Gatherer Approach
Algorithm 3
Decision-making outer-loop algorithm of
.| (1) | for do | | (2) | if hold = = false then | | (3) | explore the environment | | (4) | if a new task is detected then | | (5) | | | (6) | | | (7) | end if | | (8) | end if | | (9) | if hold == true then | | (10) | announce on the online board | | (11) | if one readiness message is received then | | (12) | bargain | | (13) | else if readiness messages >1 then | | (14) | hold an auction | | (15) | end if | | (16) | if the negotiation is succeeded then | | (17) | | | (18) | mark the task as accomplished | | (19) | end if | | (20) | end if | | (21) | end for |
|