1 Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations Genetic Algorithm (GA)

Slides:



Advertisements
Similar presentations
1 Tabu Search Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Advertisements

Population-based metaheuristics Nature-inspired Initialize a population A new population of solutions is generated Integrate the new population into the.
Genetic Algorithm.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Using Parallel Genetic Algorithm in a Predictive Job Scheduling
Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Genetic Algorithms Representation of Candidate Solutions GAs on primarily two types of representations: –Binary-Coded –Real-Coded Binary-Coded GAs must.
1 IOE/MFG 543 Chapter 14: General purpose procedures for scheduling in practice Section 14.5: Local search – Genetic Algorithms.
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Evolutionary Computational Intelligence
Data Mining CS 341, Spring 2007 Genetic Algorithm.
Genetic Algorithm for Variable Selection
EAs for Combinatorial Optimization Problems BLG 602E.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
7/2/2015Intelligent Systems and Soft Computing1 Lecture 9 Evolutionary Computation: Genetic algorithms Introduction, or can evolution be intelligent? Introduction,
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Genetic Algorithm.
© Negnevitsky, Pearson Education, CSC 4510 – Machine Learning Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Genetic Algorithms Michael J. Watts
Genetic algorithms Charles Darwin "A man who dares to waste an hour of life has not discovered the value of life"
1 Simulated Annealing Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
More on Heuristics Genetic Algorithms (GA) Terminology Chromosome –candidate solution - {x 1, x 2,...., x n } Gene –variable - x j Allele –numerical.
Genetic Algorithms Siddhartha K. Shakya School of Computing. The Robert Gordon University Aberdeen, UK
1 Chapter 14 Genetic Algorithms. 2 Chapter 14 Contents (1) l Representation l The Algorithm l Fitness l Crossover l Mutation l Termination Criteria l.
1 Fuzzy Scheduling Contents 1. Introduction to Fuzzy Sets 2. Application of Fuzzy Sets to Scheduling Problems 3. A Genetic Algorithm for Fuzzy Flowshop.
1 Combinatorial Problem. 2 Graph Partition Undirected graph G=(V,E) V=V1  V2, V1  V2=  minimize the number of edges connect V1 and V2.
© Negnevitsky, Pearson Education, Lecture 9 Evolutionary Computation: Genetic algorithms Introduction, or can evolution be intelligent? Introduction,
1 Genetic Algorithms K.Ganesh Introduction GAs and Simulated Annealing The Biology of Genetics The Logic of Genetic Programmes Demo Summary.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
Genetic Algorithms An Example Genetic Algorithm Procedure GA{ t = 0; Initialize P(t); Evaluate P(t); While (Not Done) { Parents(t) = Select_Parents(P(t));
ECE 103 Engineering Programming Chapter 52 Generic Algorithm Herbert G. Mayer, PSU CS Status 6/4/2014 Initial content copied verbatim from ECE 103 material.
Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
Genetic Algorithms. The Basic Genetic Algorithm 1.[Start] Generate random population of n chromosomes (suitable solutions for the problem) 2.[Fitness]
Heuristic Methods for the Single- Machine Problem Chapter 4 Elements of Sequencing and Scheduling by Kenneth R. Baker Byung-Hyun Ha R2.
GENETIC ALGORITHM Basic Algorithm begin set time t = 0;
Genetic Algorithms Chapter Description of Presentations
1 Simulated Annealing Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Genetic Algorithms. Underlying Concept  Charles Darwin outlined the principle of natural selection.  Natural Selection is the process by which evolution.
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Agenda  INTRODUCTION  GENETIC ALGORITHMS  GENETIC ALGORITHMS FOR EXPLORING QUERY SPACE  SYSTEM ARCHITECTURE  THE EFFECT OF DIFFERENT MUTATION RATES.
1 Combinatorial Problem. 2 Graph Partition Undirected graph G=(V,E) V=V1  V2, V1  V2=  minimize the number of edges connect V1 and V2.
1 Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations Simulated Annealing (SA)
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Overview Last two weeks we looked at evolutionary algorithms.
1 Comparative Study of two Genetic Algorithms Based Task Allocation Models in Distributed Computing System Oğuzhan TAŞ 2005.
Genetic Algorithms. Solution Search in Problem Space.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm(GA)
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
General Purpose Procedures Applied to Scheduling
Genetic Algorithm (Knapsack Problem)
Chapter 14 Genetic Algorithms.
Genetic Algorithms.
An Evolutionary Approach
School of Computer Science & Engineering
Artificial Intelligence (CS 370D)
Genetic Algorithms CPSC 212 Spring 2004.
General Purpose Procedures Applied to Scheduling
Steady state Selection
Population Based Metaheuristics
GA.
Presentation transcript:

1 Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations Genetic Algorithm (GA)

2 1. Modern Heuristic Techniques for Combinatorial Problems, (Ed) C.Reeves 1995, McGraw-Hill. Chapter Scheduling, Theory, Algorithms, and Systems, Second Addition, Michael Pinedo, Prentice Hall, 2002, Chapter Genetic Algorithms in Search, Optimization & Machine Learning, David E. Goldberg, Addison Wesley, Literature

3 Basic Concepts TS, SA versusGA a single solution is carriedpopulation based method over from one iteration to the next Individuals (or members of population or chromosomes) individuals surviving from the previous generation Generation + children (offspring)

4 Fitness of an individual (a schedule) is measured by the value of the associated objective function Representation Example. the order of jobs to be processed can be represented as a permutation: [1, 2,...,n] Initialization How to choose initial individuals? High-quality solutions obtained from another heuristic technique can help a genetic algorithm to find better solutions more quickly than it can from a random start.

5 Reproduction Crossover: combine the sequence of operations in one parent schedule with a sequence of operations in another parent. Example 1. Ordinary crossover operator is not useful! Cut Point ↓ P1 = [2 1 3 | ] O1 = [ ] (infeasible) P2 = [4 3 1 | ]O2 = [ ] (infeasible)

6 Example 2. Partially Mapped Crossover (PMX) Cut Point 1 Cut Point 2 ↘ ↙ P1 = [2 1 | | 6 7] O1 = [ ] P2 = [4 3 | | 7 6] O2 = [ ]

7 Example 3. Preserves the absolute positions of the jobs taken from P1 and the relative positions of those from P2 Cut Point same seq. as P2 ↓ ↓ P1 = [2 1 | ]O1 = [ ] P2 = [4 3 | ]O2 = [ ]  same seq. as P1 Note: absolute or relative positions ?

8 Example 4. Similar to Example 3 but with 2 crossover points. Cut Point 1 Cut Point 2 ↘ ↙ P1 = [2 1 | | 6 7] O1 = [ ] P2 = [4 3 | | 7 6] O2 = [ ]

9 Mutation enables genetic algorithm to explore the search space not reachable by the crossover operator. Adjacent pairwise interchange in the sequence [1,2,...,n] [2,1,...,n] Exchange mutation: the interchange of two randomly chosen elements of the permutation Shift mutation: the movement of a randomly chosen element a random number of places to the left or right Scramble sublist mutation: choose two points on the string in random and randomly permuting the elements between these two positions.

10 Selection: Roulette wheel: the size of each slice corresponds to the fitness of the appropriate individual. Steps for the roulette wheel: 1. Sum the fitnesses of all the population members, TF 2. Generate a random number m, between 0 and TF 3. Return the first population member whose fitness added to the preceding population members is greater than or equal to m (Note: max. or min.)

11 Tournament selection: 1. Randomly choose a group of T individuals from the population. 2. Select the best one. How to guarantee that the best member of a population will survive? Elitist model: the best member of the current population is set to be a member of the next.

12 Algorithm Step 1. k=1 Select N initial schedules S 1,1,..., S 1,N using some heuristic. Evaluate each individual of the population. Step 2. Create new individuals by mating individuals in the current population using crossover and mutation. Delete members of the existing population to make place for the new members. Evaluate the new members and insert them into the population S k+1,1,..., S k+1,N.

13 Step 3. k = k+1. If stopping condition = true then return the best individual as the solution and STOP else go to Step 2.

14 Example: 1 || ΣT j j p j d j Population size: 3 Selection: in each generation the single most fit individual reproduces using adjacent pairwise interchange chosen at random; there are 4 possible children, each is chosen with probability 1/4 Duplication of children is permitted. Children can duplicate other members of the population.

15 Initial population: random permutation sequences. Generation 1 Individual: Cost: Selected individual: with offspring 13245, cost 20 Generation 2 Individual: Cost: Average fitness is improved, diversity is preserved Selected individual: with offspring 12354, cost 17

16 Generation 3 Individual: Cost: Selected individual: with offspring 12435, cost 11 Generation 4 Individual: Cost: Selected individual: This is an optimal solution.

17 Disadvantages of this algorithm: Since only the most fit member is allowed to reproduce (or be mutated) the same member will continue to reproduce unless replaced by a superior child.

18 Practical considerations: 1. Population size: small population run the risk of seriously under- covering the solution space, while large populations will require computational resources. Empirical results suggest that population sizes around 30 are adequate in many cases, but are more common. 2. Mutation is usually employed with a very low probability.

19 Summary: 1. Meta-heuristic methods are designed to escape local optima. 2. They work on complete solutions. However, they introduce parameters (such as tabu-list size, temperature, rate of reduction of the temperature, population size,...) How to choose the parameters? (design of experiment)