Research on Genetic Algorithms for Fair Distribution of Resources