Table 2.

The algorithm process of collision-avoidance strategy for ASs based on the DDPG algorithm

Initialise critic and actor network parameters: θQ and θμ
Initialise the critic and actor network target networks and directly copy parameters: θQ′θQ,θμ′θμ
Initialise the experience pool R
1: For episode = 1, M:
2: Initialise random process N
3: Obtain the initial state of the AS s1
4: For t = 1, T:
5: Choose an action based on the current policy and random noise: at=μ(st|θμ)+Nt
6: Perform action at, get instant reward rt and next state st+1
7: Store state/action pairs (st, at, rt, st+1) into experience pool R
8: Randomly sample K state/action pairs (st, at, rt, st+1) from the experience pool R
9: Compute the ‘label value’ of the critical network: yi=ri+γQ(si+1,μ(si+1θμ′)θQ′)
10: Calculate the error of the critical network L=1Ki(yiQ(si,aiθQ))2 and use gradient descent to update critical network parameters
11: Calculate the gradient of the actor network and update the actor network parameters using gradient ascent:
θμJ1KiaQ(s,aθQ)|s=si,a=μ(si)θμμ(sθμ)|si
12: Update the parameters of the critic and actor network target network:
θQ′τθQ+(1τ)θQ′θπ′τθπ+(1τ)θπ′
13: End for
14: End for

or Create an Account

Close Modal
Close Modal