Skip to main content
. 2022 Aug 14;22(16):6068. doi: 10.3390/s22166068
Algorithm 2. BENS-Agent Learning Algorithm (BENS-AL).
  1. Input: BENS structure, simulation of environment parameters, and QoS parameters of end applications.

  2. Initialize: Every agent in observation stage S;

  3. Learning transfer: If found new agent/service;

  4. Identify the neighbors of agent and transfer information;

  5. Analyze If the information exist

  6.  Identify Expert Agent EA;

  7. Extract EA information;

  8.  Check and do database update Dt;

  9.  Set transmission rate µ;

  10. Select an appropriate action At;

  11.  Cooperative learning: Every group CG share actions and observed data;

  12.  Aggregate the group data CGD;

  13.  Set join policy πg(CGg) and aggregated value Ag(CGg, bg), and Set aggregated action AGg;

  14.  Execute action AGg, receive reward RWg;

  15. end if.

  16. End BENS-AL