A list of 30 top currently playing list of cricketers is provided. Task is to optimally select a team of 15 players who will represent the country for the upcoming international matches.
In a team of 15 players selected optimally using genetic algorithm, there should be:-
- atleast 7 Batsman
- exactly 1 Wicketkeeper
- exactly 2 Allrounders
- atleast 5 Bowlers.
Fitness function(f) = ((1-(a/b))+c)/(1+c) where
- a = no. of matches lost,
- b = no. of matches played,
- c = no.of matches won
Initial provided data:-
Plot of player ID vs their fitness values:-
Final selected team of 15 players:-