Skip to main content
. 2025 Aug 4;27(8):826. doi: 10.3390/e27080826
Algorithm 1 CGRInfotaxis for Multi-Agent System
Input: Searching environment parameters, particle filter parameters, and agent parameters.
Output: Action of multi-agent and the position of predicted source
  • 1:

    for k=1,2,…kmax do

  • 2:

       for all agent n∈{1,2,…,N} do

  • 3:

       Observation: zk,n read multi-agent measurements;

  • 4:

       Share Sensor Measurements: Broadcast zk,n to all agents and receive zk={zk,1,zk,2,…,zk,N};

  • 5:

       end for

  • 6:

       w(k,n)(m)←w(k−1,n)(m) using Equations (30) and (31);

  • 7:

       if Meff<Mth then

  • 8:

       Resampling and set wk(m)=1M;

  • 9:

       end if

  • 10:

     Compute Initial Temporary Decisions for all Agents

  • 11:

     while not Decisions reach consensus do

  • 12:

        for all agent n∈{1,2,…,N} do

  • 13:

         Decision Sharing: Broadcast temporary decision and receive other agent decisions

  • 14:

         for all ak∈Ak do

  • 15:

          p(z^k+1|θk+1) for other agent decisions and ak using Equation (29)

  • 16:

          w(k+1,n)(m) using Equation (30);

  • 17:

          IRe´nyi_(ack) computation using Equation (25);

  • 18:

          G(ack) computation using Equation (26);

  • 19:

          J(ack) computation using Equation (33);

  • 20:

         end for

  • 21:

         a(ck,n)∗=max(J(ack))=max[(1−e−λk)∗Gcoo+e−λk∗Ire´nyi_] select the motion control;

  • 22:

         Update the decision of agent n

  • 23:

        end for

  • 24:

        Check consensus status:

  • 25:

        if Decisions reach consensus then

  • 26:

         output the action of multi-agent

  • 27:

         [xk+1,yk+1] of every agent computation using Equation (14)

  • 28:

        end if

  • 29:

       end while

  • 30:

       if source confirmation conditions reached then

  • 31:

         output the position of predicted source

  • 32:

         break

  • 33:

        end if

  • 34:

    end for