Algorithm 2. BENS-Agent Learning Algorithm (BENS-AL). |
Input: BENS structure, simulation of environment parameters, and QoS parameters of end applications.
Initialize: Every agent in observation stage S;
Learning transfer: If found new agent/service;
Identify the neighbors of agent and transfer information;
Analyze If the information exist
Identify Expert Agent EA;
Extract
EA information;
Check and do database update Dt;
Set transmission rate µ;
Select an appropriate action At;
Cooperative learning: Every group CG share actions and observed data;
Aggregate the group data CGD;
Set join policy πg(CGg) and aggregated value Ag(CGg, bg), and Set aggregated action AGg;
Execute action AGg, receive reward RWg;
end if.
End BENS-AL
|