Lab 06: Genetic Algorithm: Introducing the technique and write program to implement Geneti, Lecture notes of Artificial Intelligence

Objectives Introducing the technique and write program to implement the following: 1. Genetic Algorithm 2. Exercises

Typology: Lecture notes

2021/2022

Uploaded on 03/31/2023

javeria-noorani
javeria-noorani 🇵🇰

4 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lab 06: Genetic Algorithm: Introducing the technique and write program to
implement Genetic Algorithm
Objectives
Introducing the technique and write program to implement the following:
1. Genetic Algorithm
2. Exercises
Exercise
Exercise 1 (GAFx)
Using GA, it is required to find the maximum of a function, f(x) = ((x + 4y + 6z + 4w) - 30)
where x,y,z and w are genes to form a chromosome. Write a program to implement and show the
best individual, best fitness, average fitness, and poorest fitness against the generation. For
demonstration purposes, the following simple set of parameters is to be used to design the
algorithm.
Number of generations: 30
The population size: 6
The crossover rate : 1.0
The mutation rate: 0.1
Number of bits in each chromosome: 4
https://arxiv.org/ftp/arxiv/papers/1308/1308.4675.pdf

Partial preview of the text

Download Lab 06: Genetic Algorithm: Introducing the technique and write program to implement Geneti and more Lecture notes Artificial Intelligence in PDF only on Docsity!

Lab 06: Genetic Algorithm: Introducing the technique and write program to

implement Genetic Algorithm

Objectives

Introducing the technique and write program to implement the following:

  1. Genetic Algorithm
  2. Exercises

Exercise

Exercise 1 (GAFx) Using GA, it is required to find the maximum of a function, f(x) = ((x + 4y + 6z + 4w) - 30) where x,y,z and w are genes to form a chromosome. Write a program to implement and show the best individual, best fitness, average fitness, and poorest fitness against the generation. For demonstration purposes, the following simple set of parameters is to be used to design the algorithm.  Number of generations: 30  The population size: 6  The crossover rate : 1.  The mutation rate: 0.  Number of bits in each chromosome: 4 https://arxiv.org/ftp/arxiv/papers/1308/1308.4675.pdf