program to find global maxima
Objective: First of all we have to create random initial vector. we can call it as population vector. Then by using random vector algorithm creats another randome pair of number. to creat new pairs or population. By calculating fitness value called raw fitness scores. Scale the raw fitness score to convert them into a more usable range…