Order the answer to: Implement a simple GA with fitness-proportionate selection, roulette-wheel sampling, population…