Lab 4: 26 th March 2012. Exercise 1: Evolutionary algorithms



Similar documents
A Robust Method for Solving Transcendental Equations

College of information technology Department of software

Introduction To Genetic Algorithms

ISSN: ISO 9001:2008 Certified International Journal of Engineering Science and Innovative Technology (IJESIT) Volume 2, Issue 3, May 2013

Genetic Algorithms commonly used selection, replacement, and variation operators Fernando Lobo University of Algarve

Evolutionary SAT Solver (ESS)

Modified Version of Roulette Selection for Evolution Algorithms - the Fan Selection

Original Article Efficient Genetic Algorithm on Linear Programming Problem for Fittest Chromosomes

A Non-Linear Schema Theorem for Genetic Algorithms

Genetic Algorithms for Bridge Maintenance Scheduling. Master Thesis

Practical Applications of Evolutionary Computation to Financial Engineering

CHAPTER 6 GENETIC ALGORITHM OPTIMIZED FUZZY CONTROLLED MOBILE ROBOT

Overview. Swarms in nature. Fish, birds, ants, termites, Introduction to swarm intelligence principles Particle Swarm Optimization (PSO)

Genetic Algorithm. Based on Darwinian Paradigm. Intrinsically a robust search and optimization mechanism. Conceptual Algorithm

The Binary Genetic Algorithm

A Brief Study of the Nurse Scheduling Problem (NSP)

A Genetic Algorithm Processor Based on Redundant Binary Numbers (GAPBRBN)

Model-based Parameter Optimization of an Engine Control Unit using Genetic Algorithms

Comparison of Major Domination Schemes for Diploid Binary Genetic Algorithms in Dynamic Environments

International Journal of Software and Web Sciences (IJSWS)

Memory Allocation Technique for Segregated Free List Based on Genetic Algorithm

A Fast Computational Genetic Algorithm for Economic Load Dispatch

Cellular Automaton: The Roulette Wheel and the Landscape Effect

Solving Banana (Rosenbrock) Function Based on Fitness Function

A Comparison of Genotype Representations to Acquire Stock Trading Strategy Using Genetic Algorithms

Genetic Algorithm Performance with Different Selection Strategies in Solving TSP

Keywords revenue management, yield management, genetic algorithm, airline reservation

New Modifications of Selection Operator in Genetic Algorithms for the Traveling Salesman Problem

GA as a Data Optimization Tool for Predictive Analytics

Management of Software Projects with GAs

Grammatical Differential Evolution

CHAPTER 3 SECURITY CONSTRAINED OPTIMAL SHORT-TERM HYDROTHERMAL SCHEDULING

Numerical Research on Distributed Genetic Algorithm with Redundant

Volume 3, Issue 2, February 2015 International Journal of Advance Research in Computer Science and Management Studies

Vol. 35, No. 3, Sept 30,2000 ملخص تعتبر الخوارزمات الجينية واحدة من أفضل طرق البحث من ناحية األداء. فبالرغم من أن استخدام هذه الطريقة ال يعطي الحل

6 Creating the Animation

Alpha Cut based Novel Selection for Genetic Algorithm

Information Theory and Coding Prof. S. N. Merchant Department of Electrical Engineering Indian Institute of Technology, Bombay

Using Excel (Microsoft Office 2007 Version) for Graphical Analysis of Data

Holland s GA Schema Theorem

A Study of Crossover Operators for Genetic Algorithm and Proposal of a New Crossover Operator to Solve Open Shop Scheduling Problem

COMPARISON OF GENETIC OPERATORS ON A GENERAL GENETIC ALGORITHM PACKAGE HUAWEN XU. Master of Science. Shanghai Jiao Tong University.

The Dynamics of a Genetic Algorithm on a Model Hard Optimization Problem

ECONOMIC GENERATION AND SCHEDULING OF POWER BY GENETIC ALGORITHM

Evolutionary Detection of Rules for Text Categorization. Application to Spam Filtering

MATLAB Code APPENDIX II

APPLICATION OF ADVANCED SEARCH- METHODS FOR AUTOMOTIVE DATA-BUS SYSTEM SIGNAL INTEGRITY OPTIMIZATION

PROCESS OF LOAD BALANCING IN CLOUD COMPUTING USING GENETIC ALGORITHM

Evaluation of Crossover Operator Performance in Genetic Algorithms With Binary Representation

Asexual Versus Sexual Reproduction in Genetic Algorithms 1

Stock price prediction using genetic algorithms and evolution strategies

New binary representation in Genetic Algorithms for solving TSP by mapping permutations to a list of ordered numbers

Genetic Algorithm Evolution of Cellular Automata Rules for Complex Binary Sequence Prediction

Genetic Algorithm TOOLBOX. For Use with MATLAB. Andrew Chipperfield Peter Fleming Hartmut Pohlheim Carlos Fonseca. Version 1.2.

HYBRID GENETIC ALGORITHM PARAMETER EFFECTS FOR OPTIMIZATION OF CONSTRUCTION RESOURCE ALLOCATION PROBLEM. Jin-Lee KIM 1, M. ASCE

The Influence of Binary Representations of Integers on the Performance of Selectorecombinative Genetic Algorithms

A Review And Evaluations Of Shortest Path Algorithms

Solving the Vehicle Routing Problem with Genetic Algorithms

Simulating the Multiple Time-Period Arrival in Yield Management

A Genetic Algorithm to Price an European Put Option Using the Geometric Mean Reverting Model

Operations and Supply Chain Management Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

A Fast and Elitist Multiobjective Genetic Algorithm: NSGA-II

Optimization of sampling strata with the SamplingStrata package

A Parallel Processor for Distributed Genetic Algorithm with Redundant Binary Number

USING GENETIC ALGORITHM IN NETWORK SECURITY

Design of Web Ranking Module using Genetic Algorithm

An evolutionary learning spam filter system

Spatial Interaction Model Optimisation on. Parallel Computers

Estimation of the COCOMO Model Parameters Using Genetic Algorithms for NASA Software Projects

Using Adaptive Random Trees (ART) for optimal scorecard segmentation

Section 1.5 Linear Models

SIMULATING CANCELLATIONS AND OVERBOOKING IN YIELD MANAGEMENT

STUDY ON APPLICATION OF GENETIC ALGORITHM IN CONSTRUCTION RESOURCE LEVELLING

Two-locus population genetics

Algorithmic Trading with MATLAB Martin Demel, Application Engineer

ESQUIVEL S.C., GATICA C. R., GALLARD R.H.

Santa Fe Artificial Stock Market Model

GASolver-A Solution to Resource Constrained Project Scheduling by Genetic Algorithm

Genetic Algorithms and Sudoku

A Method of Cloud Resource Load Balancing Scheduling Based on Improved Adaptive Genetic Algorithm

ENHANCED CONFIDENCE INTERPRETATIONS OF GP BASED ENSEMBLE MODELING RESULTS

OPTIMIZATION PROBLEM FORMULATION AND SOLUTION TECHNIQUES

1 Review of Newton Polynomials

Optimization of Machining Parameters to Minimize Tool Deflection in the End Milling Operation Using Genetic Algorithm

THE TWO major steps in applying any heuristic search algorithm

Software Engineering and Service Design: courses in ITMO University

Optimizing Machine Allocation in Semiconductor Manufacturing Capacity Planning using. Bio-Inspired Approaches

Transcription:

Lab 4: 26 th March 2012 Exercise 1: Evolutionary algorithms 1. Found a problem where EAs would certainly perform very poorly compared to alternative approaches. Explain why. Suppose that we want to find the maximum of a differentiable function f(x) that we know. In this case we can simply use an analytical method: calculate the values x1,, xn for which f (x) is zero and then select the xi for which f(xi) is maximum. An evolutionary algorithm would most probably also find the solution, but it would take much longer. 2. How big is the phenotype space in the 8-queen problem? The phenotype space contains all the possible configurations. In the most general version of the 8-queen problem, a configuration is valid if each queen is put on a different square, with no other restrictions. Therefore, the size of the phenotype space is "#$ " 8 8 that is, the number of combinations of 8 squares taken from the 64 squares in the chessboard. In general, if the number of queens is n and the chess board has n*n squares the size of the phenotype space is "#$ " In the version of the problem presented in the slides there are some additional constraints on the configurations: There is exactly one queen per row There is exactly one queen per column So size(ps) is much smaller, and in case of 8 queens is "#$ " 8 because there are 8 possible positions of first queen on the first row, 8-1 possible positions for the second queen in the second row, and so on. In the general case (n queens), the size of the phenotype space is "#$ "

Exercise 2: Genetic algorithms 1. Discuss whether there is the survival of the fittest in generational GAs. In generational GAs the entire population is replaced by the offspring at each generation. Therefore, the fittest individual at generation t survives at generation t+1 if It is selected for mating It is not destroyed by crossover and mutation Assuming fitness proportionate selection, the number of copies in the mating pool of the fittest is as higher as the fittest is outstanding in the population (its fitness is much higher than all other finesses). At least one of these copies should not be destroyed by crossover and mutation. This depends on the probabilities of crossover and mutation. 2. Calculate the probability that a binary chromosome of length L will not be changed by applying the usual bit-flip mutation with probability p m 1/L. The chromosome does not change if none of its bits is changed. The probability that no bits are changed is " (1 ) 3. Given the fitness function f(x)x 2, calculate the probability of selecting the individuals x1, x2, and x3, using roulette wheel selection. Calculate the probability of selecting the same individuals when the fitness function is f 1 (x)f(x)+10. Roulette wheel selection is done by giving to each individual xi a probability of being selected p(xi) ( ) ( ) Therefore 1 ( 1) ( ) 1 1 + 4 + 9 1 14 2 2 4 1 + 4 + 9 4 14 3 ( 3) ( ) 9 1 + 4 + 9 9 14 If we use the transposed fitness function f 1, then

( ( ) ) Therefore 1 ( 1) 11 11 ( ) 2 2 3 ( 3) ( ) 14 14 19 19 The selection pressure is lower because the probability values are closer. 4. A generational GA has a population size of 100 individuals; uses fitness proportional selection without elitisms; and after t generation has a mean population fitness of 76.0. There is one copy of the current best member, which has fitness 157.0. What is the expectation for the number of copies of the best individual in the mating pool? What it the probability that there will be no copies of the best individual in the mating pool? By simple calculation we can rewrite the formula for fitness proportional selection as where is the average fitness of the population. So the expected number of copies of the best individual is "#$ "#$ "#$ "#$ 157 2 76 The probability that there will be no copies of the best individual in the mating pool is the probability than all of the 100 individuals in the mating pool are different from the best. "#$ "# "#$ 1 157 1 100 76 "" 0.12 5. Write a computer program to implement a generational GA for the One-Max problem: Use the following parameters: Representation: binary strings of length L25; Initialization: random

Parent selection: fitness proportionate, implemented using roulette wheel; Recombination: one-point crossover with probability p c 0.7; Mutation: bit-flip with probability p m 1/L; Population size 100; Termination condition: 100 generation or optimum found. After every generation find the best, worst, and mean fitness in the population and (possibly) plot then on a graph with time (generation) on the x axis. Do 10 run and find the mean and standard deviation of the time (generations) taken to find the optimum. Given the specification of the problem, it is rather simple to write a Java program.

Exercise 2: Genetic programming 1. Give a suitable function and terminal set that allows the following expression is syntactically correct (x true) (( x y ) (z (x y))) F {,,, }, T{x,y,z,true} The s-expression corresponding to the formula is ( ( x true) ( ( x y) (z ( x y)))) 2. Implement a genetic programming that solves the symbolic regression problem presented in slide page 18, down of lecture 5. Given the specification of the problem, it is rather simple to write a Java program. 3. Design a GA for the credit-scoring problem (slides pages 9-10 of lecture 5). Discuss advantages and disadvantages of this GA versus a GP. A possible design of a GA for the credit-scoring problem is as follows: The individuals of the population bit strings of fixed length L. o The first L 1 bits represent different number of children. E.g., the 1 st bit is 1 if the applicant does not have children, the 2 nd bit is 1 if the application has 1 child, the 3 rd bit is 1 if (s)he has 2 children, etc. o The following L 2 bits represent ranges of salary. E.g., the L 1 +1 st bit is 1 is the salary is below 5000, the L 1 +2 st is 1 if the salary ranges from 5000 to 10000, etc. o The following L 3 bits are used to represent the marital status. E.g., the L 3 +1 st bit is 1 if the applicant is married, etc. It has to be noted that in well-formed chromosomes one and only one bit in each of the three parts has value 1. The fitness of an individual is the percentage of well-classified cases. The selection of the mating-pool is fitness proportional The recombination operators are mutation and one-point crossover. These operators should avoid creating bad-formed individuals. The main disadvantage of this GA versus GP is that the representation of the individuals is forced as we need to use fixed length bit strings.