Mathematical Problems in Engineering Improved CNP-Method-Based Local Real-Time Cooperative Task Allocation of Heterogeneous Multi-UAV in Communication-Constrained Environment
Algorithm 2
Resource consumption allocation method based on Gini coefficient.
(1)
initialize
(2)
for various types of resources for the do
(3)
for all do
(4)
add all to array
(5)
from array to traverse combination
(6)
for all do
(7)
calculate remaining resources
(8)
calculate the Gini coefficient
(9)
if the Gini coefficient of is closest to the G value, then