# 计算智能代写 | Computational intelligence and its application

1. Consider the following function:

(a) The genetic algorithm is used to find the peak of the function f(x). Each solution
is represented as an 8-bit chromosome, and the number of individuals in a
population is 4. The initial population is given in the following table:

Determine the respective values x of the four individuals.

(b) It is given that f(x) > 0. Explain why f(x) can be used as the fitness function.
Assuming that the roulette wheel selection is adopted, complete the following
table.

(c) The one-point crossover operator is adopted, with crossover probability 𝑝𝑐 =
0.8. The mutation probability 𝑝𝑚 = 0.1. Four new individuals are generated for
the new generation. In the selection of a pair of parents for crossover, if the
second selected individual is the same as the first selected one, the selection
of the second individual is performed again. Determine the four individuals for
the next generation.

(d) If elitism is employed in (c), determine the four individuals in the next
generation.

(e) Repeat (c), if the tournament selection with 𝑘 = 2 is used, i.e., two distinct
individuals are selected randomly with uniform probability compete in any
tournament.

(f) The global best PSO is now used to find the peak of the function f(x). The
population size is still four, and the four initial particles are the four initial
individuals given in (a). The 𝑖-th particle is denoted as xi(𝑡), where 𝑖 = 1, 2, 3, 4
and 𝑡 = 1 initially. The initial velocity of all the particles is zero, i.e., vi(1) = 0.
The following parameters are given:
Inertia weight: w = 0.9,
Acceleration factors: c1 = 2, c2 = 2, and
Maximum number of iterations: 𝑁max = 2.
Determine the best solution obtained by the algorithm.

E-mail: itcsdx@outlook.com  微信:itcsdx