(PR5)
(PR5)
BHUTAN
JIGME NAMGYEL ENGINEERING
COLLEGE
Practical Report 5
Despite these strengths, genetic programming is not without its limitations. The computational
intensity of the method often necessitates substantial time and resources to yield optimal solutions.
Furthermore, the evolved programs can become intricate and convoluted, posing challenges in
terms of human interpretability. This lack of transparency in the evolved solutions may limit their
applicability in contexts where a clear understanding of the decision-making process is essential.
3) Procedure:
1) Initialization: Start with a population of random computer programs representing potential
solutions to the problem.
2
2) Evaluation: Assess the fitness of each program by measuring its performance against the
problem's criteria.
3) Selection: Choose programs with higher fitness to "reproduce" and create the next generation.
4) Crossover: Combine parts of selected programs to create new offspring, simulating genetic
crossover.
5) Mutation: Introduce random changes to the programs, emulating genetic mutations.
6) Replacement: Replace the old generation with the new one.
7) Termination: Repeat the process for multiple generations until a satisfactory solution is found or
a termination criterion is met.
4) Analytical method:
3
4
5) Simulation method:
5
6
6) Result and discussion:
The best solution represented in the result displays optimum value of x after going through
selection, crossover and mutation processes. f(x) value represents the fitness value of the optimum
value of x or in other words, maximum value of f(x).
6) Conclusion:
In conclusion, each iteration of the genetic algorithm introduces variability through the generation
of new initial solutions, the selection of different parent candidates for genetic operations, and the
diverse paths leading to solution convergence. The iterative nature of genetic algorithms allows for
the exploration of solution spaces by iteratively modifying solutions through processes like
crossover, mutation, and selection. The inherent variability in stochastic optimization techniques
enables the algorithm to traverse multiple regions within the solution space. To mitigate the
impact of unpredictability and enhance reproducibility, it is common practice to seed the random
number generator at the commencement of the algorithm.