edited by
2,613 views
0 0 votes

Assume the function is defined as $f(x,y)=x^2+y^2-4xy$, and $1\leq x \leq 4,1\leq y \leq 4$.  The Genetic Algorithm is selected to maximize the function. If the first population for pairs of $(x,y)$ is defined as $S=\{A=(1,2), B=(2,1), C=(2,2), D=(2,3), E=(3,1) \}$.  

a) Calculate the fitness of each of individuals (A,B,C,D,E) in population if:   $\text{fitness function}=f(x,y)$  
b) Calculate the probability of each individual and sort them in descending order. Which individual has the maximum fitness (probability)? $p_{i}=\frac{f_{i}}{\sum_{j=1}^{N} f_{j}}$
c) Draw the roulette wheel and calculate the boundaries for each individual
d) If we use two individuals and their arithmetic mean for crossover each time, and for mutation, we add 0.1 to x and subtract 0.1 from y for each individual created after crossover, what will be the next population with five members?
For part (d), use the following random numbers in order whenever you need them in the selection process:
$\text{random numbers} =  \{0.780,0.220,0.776,0.507,0.822,0.765,0.288,0.881,0.895,0.421\}$
 

50% Accept Rate Accepted 31 answers out of 62 questions

1 Answer

Best answer
0 0 votes

The solution for the problem is as follows:

Related questions

0 0 votes
1 answers 1 answer
3.6k
3.6k views
tofighi asked Dec 1, 2021
3,587 views
NASA wants to be able to discriminate between Martians (M) and Humans (H) based on thefollowing characteristics: Green ∈{N, Y }, Legs ∈{2, 3}, Height ∈{S, T}, Smelly ∈{N,...
5 5 votes
1 answers 1 answer
9.1k
9.1k views
tofighi asked Jun 26, 2019
9,102 views
Assume we have a $5\times5$ px RGB image with 3 channels respectively for R, G, and B. IfR2000012001201021210101020G0212211100002202002002111B0100111201102021011012112 We...
3 3 votes
1 answers 1 answer
6.0k
6.0k views
tofighi asked Aug 10, 2020
6,004 views
The goal of backpropagation is to optimize the weights so that the neural network can learn how to correctly map arbitrary inputs to outputs.Assume for the following neur...
2 2 votes
1 answers 1 answer
6.6k
6.6k views
tofighi asked Aug 10, 2020
6,575 views
We have data on 1000 pieces of fruit. The fruit being a Banana, Orange or some Other fruit and imagine we know 3 features of each fruit, whether it’s long or not, sweet o...
2 2 votes
1 answers 1 answer
14.3k
14.3k views
tofighi asked Jan 27, 2020
14,277 views
In the following example, calculate Accuracy, Precision, Recall or F1?https://i.imgur.com/OezFpqC.png