Skip to main content
. 2024 Dec 16;24(24):8026. doi: 10.3390/s24248026
Algorithm 4 DRL (deep reinforcement learning) Algorithm
  • Input: 

    Cache pool B, batch size nb, population P(q)EA.

  • Output: 

    Population P(q)DRL.

  •  1:

    Randomly retrieve C={(St,at,rt,St+1)}nb of size nb from the cache pool B;

  •  2:

    Calculating L(W1,W2) by Equation (17);

  •  3:

    Calculating Δ(W1,W2) of L(W1,W2) by Equation (18);

  •  4:

    Based on Δ(W1,W2), reverse update (W1,W2) corresponding to the most favorable population P(q)EA, thus obtaining a new population P(q)DRL;