n16h7-h4wk / TeamSelection_GA

Algorithm written in R language to select a cricket team of 15 players from a pool of 30 players optimally.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TeamSelection_GA

OBJECTIVE-

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.

CONSTRAINTS-

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-

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

OUTPUTS-

Initial provided data:-

Plot of player ID vs their fitness values:-

Final selected team of 15 players:-

screenshot 66

screenshot 67

screenshot 68

About

Algorithm written in R language to select a cricket team of 15 players from a pool of 30 players optimally.


Languages

Language:R 100.0%