Research Article
Reorganizing Complex Network to Improve Large-Scale Multiagent Teamwork
Algorithm 2
Agents coordination (modified part).
(1) for ( Messages) do | (2) if then | (3) if then | (4) if then | (5) OwnTasks.append(); | (6) (); | (7) (); | (8) end if | (9) end if | (10) end if | (11) end for | (12) for ( OwnTasks) do | (13) if ( is complete) then | (14) OwnTask.remove(); | (15) ; | (16) end if | (17) end for |
|