SlideShare a Scribd company logo
1
DEEP LEARNING & SOFT COMPUTING
UNIT 4: Soft Computing: Genetic Algorithm (GN)
➢ Evolution of Genetic Algorithms (GA):
1) Inspiration from Darwin's Theory:
Genetic Algorithms are inspired by the process of natural selection and evolution
proposed by Charles Darwin. They simulate the survival of the fittest to find optimal
solutions.
2) Initial Development:
John Holland is credited with developing the concept of genetic algorithms in the
1960s as part of his research in artificial intelligence.
3) Key Concepts:
GA introduced concepts like chromosomes (solution representations), genes
(parameters), selection, crossover, mutation, and fitness evaluation, which mimic
genetic processes in living organisms.
4) Applications:
Genetic algorithms have been used in various fields, including optimization, machine
learning, robotics, and finance.
5) Continuous Development:
Over time, GA techniques have evolved and diversified over time into various types,
such as binary, real-valued, and hybrid GA, to suit different problem domains.
➢ Basic GA Framework and Different GAArchitectures:
1) Initialization:
A population of potential solutions (chromosomes) is randomly generated.
2) Selection:
Chromosomes are selected based on their fitness, with higher-fitness chromosomes
more likely to be chosen.
3) Crossover:
Pairs of selected chromosomes exchange genetic information to create offspring.
2
4) Mutation:
Random changes are introduced into some chromosomes to add diversity to the
population.
5) Fitness Function:
A function that evaluates how well each chromosome solves the problem is defined.
6) Termination Condition:
The algorithm stops when a termination criterion is met (e.g., a certain number of
generations or a fitness threshold).
7) Real-world Example: Optimal Job Scheduling
Imagine a factory that needs to schedule jobs on machines to minimize production
time. Each chromosome represents a possible job schedule, and the fitness function
calculates the total production time. Genetic algorithms can optimize the schedule by
evolving better solutions over generations.
➢ GA Operators: Crossover, Selection, Mutation, Fitness Function:
1) Crossover:
Involves merging genetic information from two parent chromosomes to create
offspring. It promotes combining good traits from parents.
2) Selection:
Determines which chromosomes will become parents for the next generation. It favors
higher-fitness chromosomes but allows some diversity.
3) Mutation:
Introduces random changes in chromosomes to explore new solutions. It maintains
genetic diversity in the population.
4) Fitness Function:
Evaluates how well a chromosome performs the task. It assigns a fitness value to each
chromosome, guiding the selection process.
5) Real-world Example: Traveling Salesman Problem
In the Traveling Salesman Problem, GA operators can be used to find the shortest
route that visits a set of cities exactly once. Crossover combines routes from two
parents, mutation introduces small changes in the routes, and the fitness function
measures the total distance.
3
➢ Convergence Working Principle:
1) Convergence:
Convergence in GA refers to the point at which the algorithm finds a satisfactory
solution or gets close to an optimal one.
2) Working Principle:
As generations progress, the algorithm tends to converge by producing increasingly
better solutions, refining the population towards optimal or near-optimal solutions.
3) Real-world Example: Neural Network Training
In training neural networks using GA, convergence occurs when the algorithm finds
a set of weights and biases that minimize the error on a given dataset. The algorithm
iteratively improves the network's performance until it converges to a good solution.
➢ Encoding Methods and Bitwise Operations in GA:
1) Encoding Methods:
Representing solutions as chromosomes requires encoding. Common encoding
methods include binary encoding, real-valued encoding, permutation encoding, and
tree-based encoding.
2) Bitwise Operations:
In binary encoding, bitwise operations like crossover and mutation are applied to
manipulate the binary strings representing the chromosomes.
3) Real-world Example: Image Compression
In image compression using GA, encoding methods may represent the compression
parameters (e.g., compression ratio) in a binary format. Bitwise operations can then
be used to evolve and optimize these parameters for efficient compression.
➢ Multilevel Optimization:
1) Multilevel Optimization:
GA can be extended to solve complex optimization problems by using a hierarchical
approach. Multiple levels of GA can be used to optimize various parameters
simultaneously.
2) Real-world Example: Aircraft Design
In aircraft design, multilevel optimization using GA can simultaneously optimize the
aircraft's wing shape, engine placement, and structural design, considering different
levels of complexity and constraints.
4
➢ Applications of GA in Machine Learning:
1. Feature Selection:
GA can be used to select the most relevant features for a machine learning model,
improving its performance and reducing overfitting.
2. Neural Network Architecture Search:
GA can explore different neural network architectures, such as the number of layers
and nodes, to find optimal configurations.
3. Hyperparameter Tuning:
GA can optimize hyperparameters like learning rates, batch sizes, and dropout rates
to enhance the performance of machine learning algorithms.
4. Clustering:
Genetic algorithms can be employed to optimize clustering algorithms, helping
discover meaningful data patterns.
5. Game Playing:
GA has been used to train agents in games, such as evolving strategies for game-
playing AI.
6. Robotics:
Genetic algorithms can be used for robot path planning and control to optimize robot
movements in complex environments.
Genetic Algorithms (GAs) in soft computing are inspired by the principles of natural
selection and evolution. They follow a framework involving population initialization,
selection, crossover, mutation, and fitness evaluation to evolve optimal solutions. GAs
have evolved over time, offering various architectures and encoding methods, including
bitwise operations for binary encoding. They aim to converge towards optimal solutions
by iteratively improving generations. GAs find applications in diverse domains, such as
job scheduling, the Traveling Salesman Problem, neural network training, and multilevel
optimization. They are also utilized in machine learning for feature selection,
hyperparameter tuning, clustering, and robotics, showcasing their versatility in solving
complex optimization problems.

More Related Content

Similar to 4: Soft Computing: Genetic Algorithm (GN) (20)

3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf
3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf
3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf
ssuser8d8cfc1
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
Dr. C.V. Suresh Babu
 
Genetic algorithms full lecture
Genetic algorithms full lectureGenetic algorithms full lecture
Genetic algorithms full lecture
sadiacs
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
bhuvaneshwariA5
 
Genetic algorithms
Genetic algorithms Genetic algorithms
Genetic algorithms
Pradeep Kumar
 
Introduction to genetic algorithms
Introduction to genetic algorithmsIntroduction to genetic algorithms
Introduction to genetic algorithms
shadanalam
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
Amna Saeed
 
MACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMMACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHM
Puneet Kulyana
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data Mining
Atul Khanna
 
slidesgo-exploring-the-fundamental-operators-of-genetic-algorithms-mechanisms...
slidesgo-exploring-the-fundamental-operators-of-genetic-algorithms-mechanisms...slidesgo-exploring-the-fundamental-operators-of-genetic-algorithms-mechanisms...
slidesgo-exploring-the-fundamental-operators-of-genetic-algorithms-mechanisms...
huntergrave9
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
Sadhana Singh
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
Premsankar Chakkingal
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
SEKHARREDDYAMBATI
 
WIX3001 Lecture 6 Principles of GA.pptx
WIX3001 Lecture 6 Principles of GA.pptxWIX3001 Lecture 6 Principles of GA.pptx
WIX3001 Lecture 6 Principles of GA.pptx
KelvinCheah4
 
Introduction to Genetic Algorithms 2014
Introduction to Genetic Algorithms 2014Introduction to Genetic Algorithms 2014
Introduction to Genetic Algorithms 2014
Aleksander Stensby
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
DEEPIKA T
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
Vanessa Camilleri
 
ga-2.ppt
ga-2.pptga-2.ppt
ga-2.ppt
sayedmha
 
Optimization technique genetic algorithm
Optimization technique genetic algorithmOptimization technique genetic algorithm
Optimization technique genetic algorithm
Uday Wankar
 
09 genetic algorithms by Priyesh Marvi
09 genetic algorithms by Priyesh Marvi09 genetic algorithms by Priyesh Marvi
09 genetic algorithms by Priyesh Marvi
priyeshmarvi
 
3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf
3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf
3_GO_Olesya_Genetic_AlgorithmsOPTIMZTION.p.pdf
ssuser8d8cfc1
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
Dr. C.V. Suresh Babu
 
Genetic algorithms full lecture
Genetic algorithms full lectureGenetic algorithms full lecture
Genetic algorithms full lecture
sadiacs
 
Introduction to genetic algorithms
Introduction to genetic algorithmsIntroduction to genetic algorithms
Introduction to genetic algorithms
shadanalam
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
Amna Saeed
 
MACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHMMACHINE LEARNING - GENETIC ALGORITHM
MACHINE LEARNING - GENETIC ALGORITHM
Puneet Kulyana
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data Mining
Atul Khanna
 
slidesgo-exploring-the-fundamental-operators-of-genetic-algorithms-mechanisms...
slidesgo-exploring-the-fundamental-operators-of-genetic-algorithms-mechanisms...slidesgo-exploring-the-fundamental-operators-of-genetic-algorithms-mechanisms...
slidesgo-exploring-the-fundamental-operators-of-genetic-algorithms-mechanisms...
huntergrave9
 
WIX3001 Lecture 6 Principles of GA.pptx
WIX3001 Lecture 6 Principles of GA.pptxWIX3001 Lecture 6 Principles of GA.pptx
WIX3001 Lecture 6 Principles of GA.pptx
KelvinCheah4
 
Introduction to Genetic Algorithms 2014
Introduction to Genetic Algorithms 2014Introduction to Genetic Algorithms 2014
Introduction to Genetic Algorithms 2014
Aleksander Stensby
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
DEEPIKA T
 
Introduction to Genetic Algorithms
Introduction to Genetic AlgorithmsIntroduction to Genetic Algorithms
Introduction to Genetic Algorithms
Vanessa Camilleri
 
Optimization technique genetic algorithm
Optimization technique genetic algorithmOptimization technique genetic algorithm
Optimization technique genetic algorithm
Uday Wankar
 
09 genetic algorithms by Priyesh Marvi
09 genetic algorithms by Priyesh Marvi09 genetic algorithms by Priyesh Marvi
09 genetic algorithms by Priyesh Marvi
priyeshmarvi
 

Recently uploaded (20)

Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptxAnalysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Shrutidhara2
 
Strengthened Senior High School - Landas Tool Kit.pptx
Strengthened Senior High School - Landas Tool Kit.pptxStrengthened Senior High School - Landas Tool Kit.pptx
Strengthened Senior High School - Landas Tool Kit.pptx
SteffMusniQuiballo
 
"Hymenoptera: A Diverse and Fascinating Order".pptx
"Hymenoptera: A Diverse and Fascinating Order".pptx"Hymenoptera: A Diverse and Fascinating Order".pptx
"Hymenoptera: A Diverse and Fascinating Order".pptx
Arshad Shaikh
 
POS Reporting in Odoo 18 - Odoo 18 Slides
POS Reporting in Odoo 18 - Odoo 18 SlidesPOS Reporting in Odoo 18 - Odoo 18 Slides
POS Reporting in Odoo 18 - Odoo 18 Slides
Celine George
 
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKANMATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
How to Manage Allocations in Odoo 18 Time Off
How to Manage Allocations in Odoo 18 Time OffHow to Manage Allocations in Odoo 18 Time Off
How to Manage Allocations in Odoo 18 Time Off
Celine George
 
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptxPests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Arshad Shaikh
 
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptxSEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
PoojaSen20
 
Optimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptxOptimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptx
UrmiPrajapati3
 
Black and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdfBlack and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdf
AnnasofiaUrsini
 
june 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptxjune 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptx
roger malina
 
State institute of educational technology
State institute of educational technologyState institute of educational technology
State institute of educational technology
vp5806484
 
Pfeiffer "Secrets to Changing Behavior in Scholarly Communication: A 2025 NIS...
Pfeiffer "Secrets to Changing Behavior in Scholarly Communication: A 2025 NIS...Pfeiffer "Secrets to Changing Behavior in Scholarly Communication: A 2025 NIS...
Pfeiffer "Secrets to Changing Behavior in Scholarly Communication: A 2025 NIS...
National Information Standards Organization (NISO)
 
Nice Dream.pdf /
Nice Dream.pdf                              /Nice Dream.pdf                              /
Nice Dream.pdf /
ErinUsher3
 
Coleoptera: The Largest Insect Order.pptx
Coleoptera: The Largest Insect Order.pptxColeoptera: The Largest Insect Order.pptx
Coleoptera: The Largest Insect Order.pptx
Arshad Shaikh
 
Smart Borrowing: Everything You Need to Know About Short Term Loans in India
Smart Borrowing: Everything You Need to Know About Short Term Loans in IndiaSmart Borrowing: Everything You Need to Know About Short Term Loans in India
Smart Borrowing: Everything You Need to Know About Short Term Loans in India
fincrifcontent
 
How to Create a Stage or a Pipeline in Odoo 18 CRM
How to Create a Stage or a Pipeline in Odoo 18 CRMHow to Create a Stage or a Pipeline in Odoo 18 CRM
How to Create a Stage or a Pipeline in Odoo 18 CRM
Celine George
 
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
parmarjuli1412
 
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptxDiptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Arshad Shaikh
 
Hemiptera & Neuroptera: Insect Diversity.pptx
Hemiptera & Neuroptera: Insect Diversity.pptxHemiptera & Neuroptera: Insect Diversity.pptx
Hemiptera & Neuroptera: Insect Diversity.pptx
Arshad Shaikh
 
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptxAnalysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Shrutidhara2
 
Strengthened Senior High School - Landas Tool Kit.pptx
Strengthened Senior High School - Landas Tool Kit.pptxStrengthened Senior High School - Landas Tool Kit.pptx
Strengthened Senior High School - Landas Tool Kit.pptx
SteffMusniQuiballo
 
"Hymenoptera: A Diverse and Fascinating Order".pptx
"Hymenoptera: A Diverse and Fascinating Order".pptx"Hymenoptera: A Diverse and Fascinating Order".pptx
"Hymenoptera: A Diverse and Fascinating Order".pptx
Arshad Shaikh
 
POS Reporting in Odoo 18 - Odoo 18 Slides
POS Reporting in Odoo 18 - Odoo 18 SlidesPOS Reporting in Odoo 18 - Odoo 18 Slides
POS Reporting in Odoo 18 - Odoo 18 Slides
Celine George
 
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKANMATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
How to Manage Allocations in Odoo 18 Time Off
How to Manage Allocations in Odoo 18 Time OffHow to Manage Allocations in Odoo 18 Time Off
How to Manage Allocations in Odoo 18 Time Off
Celine George
 
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptxPests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Arshad Shaikh
 
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptxSEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
PoojaSen20
 
Optimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptxOptimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptx
UrmiPrajapati3
 
Black and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdfBlack and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdf
AnnasofiaUrsini
 
june 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptxjune 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptx
roger malina
 
State institute of educational technology
State institute of educational technologyState institute of educational technology
State institute of educational technology
vp5806484
 
Nice Dream.pdf /
Nice Dream.pdf                              /Nice Dream.pdf                              /
Nice Dream.pdf /
ErinUsher3
 
Coleoptera: The Largest Insect Order.pptx
Coleoptera: The Largest Insect Order.pptxColeoptera: The Largest Insect Order.pptx
Coleoptera: The Largest Insect Order.pptx
Arshad Shaikh
 
Smart Borrowing: Everything You Need to Know About Short Term Loans in India
Smart Borrowing: Everything You Need to Know About Short Term Loans in IndiaSmart Borrowing: Everything You Need to Know About Short Term Loans in India
Smart Borrowing: Everything You Need to Know About Short Term Loans in India
fincrifcontent
 
How to Create a Stage or a Pipeline in Odoo 18 CRM
How to Create a Stage or a Pipeline in Odoo 18 CRMHow to Create a Stage or a Pipeline in Odoo 18 CRM
How to Create a Stage or a Pipeline in Odoo 18 CRM
Celine George
 
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
THERAPEUTIC COMMUNICATION included definition, characteristics, nurse patient...
parmarjuli1412
 
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptxDiptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Arshad Shaikh
 
Hemiptera & Neuroptera: Insect Diversity.pptx
Hemiptera & Neuroptera: Insect Diversity.pptxHemiptera & Neuroptera: Insect Diversity.pptx
Hemiptera & Neuroptera: Insect Diversity.pptx
Arshad Shaikh
 
Ad

4: Soft Computing: Genetic Algorithm (GN)

  • 1. 1 DEEP LEARNING & SOFT COMPUTING UNIT 4: Soft Computing: Genetic Algorithm (GN) ➢ Evolution of Genetic Algorithms (GA): 1) Inspiration from Darwin's Theory: Genetic Algorithms are inspired by the process of natural selection and evolution proposed by Charles Darwin. They simulate the survival of the fittest to find optimal solutions. 2) Initial Development: John Holland is credited with developing the concept of genetic algorithms in the 1960s as part of his research in artificial intelligence. 3) Key Concepts: GA introduced concepts like chromosomes (solution representations), genes (parameters), selection, crossover, mutation, and fitness evaluation, which mimic genetic processes in living organisms. 4) Applications: Genetic algorithms have been used in various fields, including optimization, machine learning, robotics, and finance. 5) Continuous Development: Over time, GA techniques have evolved and diversified over time into various types, such as binary, real-valued, and hybrid GA, to suit different problem domains. ➢ Basic GA Framework and Different GAArchitectures: 1) Initialization: A population of potential solutions (chromosomes) is randomly generated. 2) Selection: Chromosomes are selected based on their fitness, with higher-fitness chromosomes more likely to be chosen. 3) Crossover: Pairs of selected chromosomes exchange genetic information to create offspring.
  • 2. 2 4) Mutation: Random changes are introduced into some chromosomes to add diversity to the population. 5) Fitness Function: A function that evaluates how well each chromosome solves the problem is defined. 6) Termination Condition: The algorithm stops when a termination criterion is met (e.g., a certain number of generations or a fitness threshold). 7) Real-world Example: Optimal Job Scheduling Imagine a factory that needs to schedule jobs on machines to minimize production time. Each chromosome represents a possible job schedule, and the fitness function calculates the total production time. Genetic algorithms can optimize the schedule by evolving better solutions over generations. ➢ GA Operators: Crossover, Selection, Mutation, Fitness Function: 1) Crossover: Involves merging genetic information from two parent chromosomes to create offspring. It promotes combining good traits from parents. 2) Selection: Determines which chromosomes will become parents for the next generation. It favors higher-fitness chromosomes but allows some diversity. 3) Mutation: Introduces random changes in chromosomes to explore new solutions. It maintains genetic diversity in the population. 4) Fitness Function: Evaluates how well a chromosome performs the task. It assigns a fitness value to each chromosome, guiding the selection process. 5) Real-world Example: Traveling Salesman Problem In the Traveling Salesman Problem, GA operators can be used to find the shortest route that visits a set of cities exactly once. Crossover combines routes from two parents, mutation introduces small changes in the routes, and the fitness function measures the total distance.
  • 3. 3 ➢ Convergence Working Principle: 1) Convergence: Convergence in GA refers to the point at which the algorithm finds a satisfactory solution or gets close to an optimal one. 2) Working Principle: As generations progress, the algorithm tends to converge by producing increasingly better solutions, refining the population towards optimal or near-optimal solutions. 3) Real-world Example: Neural Network Training In training neural networks using GA, convergence occurs when the algorithm finds a set of weights and biases that minimize the error on a given dataset. The algorithm iteratively improves the network's performance until it converges to a good solution. ➢ Encoding Methods and Bitwise Operations in GA: 1) Encoding Methods: Representing solutions as chromosomes requires encoding. Common encoding methods include binary encoding, real-valued encoding, permutation encoding, and tree-based encoding. 2) Bitwise Operations: In binary encoding, bitwise operations like crossover and mutation are applied to manipulate the binary strings representing the chromosomes. 3) Real-world Example: Image Compression In image compression using GA, encoding methods may represent the compression parameters (e.g., compression ratio) in a binary format. Bitwise operations can then be used to evolve and optimize these parameters for efficient compression. ➢ Multilevel Optimization: 1) Multilevel Optimization: GA can be extended to solve complex optimization problems by using a hierarchical approach. Multiple levels of GA can be used to optimize various parameters simultaneously. 2) Real-world Example: Aircraft Design In aircraft design, multilevel optimization using GA can simultaneously optimize the aircraft's wing shape, engine placement, and structural design, considering different levels of complexity and constraints.
  • 4. 4 ➢ Applications of GA in Machine Learning: 1. Feature Selection: GA can be used to select the most relevant features for a machine learning model, improving its performance and reducing overfitting. 2. Neural Network Architecture Search: GA can explore different neural network architectures, such as the number of layers and nodes, to find optimal configurations. 3. Hyperparameter Tuning: GA can optimize hyperparameters like learning rates, batch sizes, and dropout rates to enhance the performance of machine learning algorithms. 4. Clustering: Genetic algorithms can be employed to optimize clustering algorithms, helping discover meaningful data patterns. 5. Game Playing: GA has been used to train agents in games, such as evolving strategies for game- playing AI. 6. Robotics: Genetic algorithms can be used for robot path planning and control to optimize robot movements in complex environments. Genetic Algorithms (GAs) in soft computing are inspired by the principles of natural selection and evolution. They follow a framework involving population initialization, selection, crossover, mutation, and fitness evaluation to evolve optimal solutions. GAs have evolved over time, offering various architectures and encoding methods, including bitwise operations for binary encoding. They aim to converge towards optimal solutions by iteratively improving generations. GAs find applications in diverse domains, such as job scheduling, the Traveling Salesman Problem, neural network training, and multilevel optimization. They are also utilized in machine learning for feature selection, hyperparameter tuning, clustering, and robotics, showcasing their versatility in solving complex optimization problems.