Algorithm 2: System performance evaluation |
Input: Number of lanes (L), initial number of vehicles (ni) in each lane lane, emergency vehicle position, emergency vehicle transmisson power (PE), vehicle transmisson power (Pv), channel fade coefficient (hEVN, hVNV1), different interfence devices, interference transmission power (PD, PC, Pvi), interference channel fade coefficient (hDV1, hCV1, hVV1), channel noise (N), path loss exponent (α), and the initial vehicle velocity (vi) Output: PDR, E2E, v, number of vehicles in each lane (n), poutLi, Pv 1: Establish the required 2: Establish L, ni, vi 3: for different values of PE, PD, PC, Pv, hEVN, hDVN, hCVN, hVVN, α, v, N do 4: Calculate the velocity of the vehicles in each lane after receiving the emergency message ; 5: Calculate required number of vehicles in each lane 6: Construct the Lagrange function 7: Calculate the partial derivatives ,, and 8: Let , , 9: Determine 𝛌, μ, poutLi, Pv 10: Calculate PDR 11: Calculate E2E 12: end for |