CS 8625 High Performance Computing Dr. Hoganson Copyright © 2003, Dr. Ken Hoganson 7-13-05- CS8625 Class Will Start Momentarily… CS8625 High Performance.

Slides:



Advertisements
Similar presentations
Exact and heuristics algorithms
Advertisements

Student : Mateja Saković 3015/2011.  Genetic algorithms are based on evolution and natural selection  Evolution is any change across successive generations.
Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
On the Genetic Evolution of a Perfect Tic-Tac-Toe Strategy
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
Biologically Inspired AI (mostly GAs). Some Examples of Biologically Inspired Computation Neural networks Evolutionary computation (e.g., genetic algorithms)
Genetic Algorithms Representation of Candidate Solutions GAs on primarily two types of representations: –Binary-Coded –Real-Coded Binary-Coded GAs must.
Non-Linear Problems General approach. Non-linear Optimization Many objective functions, tend to be non-linear. Design problems for which the objective.
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.
A new crossover technique in Genetic Programming Janet Clegg Intelligent Systems Group Electronics Department.
Introduction to Genetic Algorithms Yonatan Shichel.
Iterative Improvement Algorithms
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Optimization via Search CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Genetic Programming.
Genetic Algorithm.
Evolutionary Intelligence
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
Boltzmann Machine (BM) (§6.4) Hopfield model + hidden nodes + simulated annealing BM Architecture –a set of visible nodes: nodes can be accessed from outside.
What is Genetic Programming? Genetic programming is a model of programming which uses the ideas (and some of the terminology) of biological evolution to.
The Generational Control Model This is the control model that is traditionally used by GP systems. There are a distinct number of generations performed.
Applying Genetic Algorithm to the Knapsack Problem Qi Su ECE 539 Spring 2001 Course Project.
Genetic Algorithms Introduction Advanced. Simple Genetic Algorithms: Introduction What is it? In a Nutshell References The Pseudo Code Illustrations Applications.
Today’s Topics Read –For exam: Chapter 13 of textbook –Not on exam: Sections & Genetic Algorithms (GAs) –Mutation –Crossover –Fitness-proportional.
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
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.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Genetic Algorithms. The Basic Genetic Algorithm 1.[Start] Generate random population of n chromosomes (suitable solutions for the problem) 2.[Fitness]
Waqas Haider Bangyal 1. Evolutionary computing algorithms are very common and used by many researchers in their research to solve the optimization problems.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
In the name of ALLAH Presented By : Mohsen Shahriari, the student of communication in Sajad institute for higher education.
Local Search. Systematic versus local search u Systematic search  Breadth-first, depth-first, IDDFS, A*, IDA*, etc  Keep one or more paths in memory.
GAIA (Genetic Algorithm Interface Architecture) Requirements Analysis Document (RAD) Version 1.0 Created By: Charles Hall Héctor Aybar William Grim Simone.
Neural Networks And Its Applications By Dr. Surya Chitra.
1 Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations Genetic Algorithm (GA)
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.
►Search and optimization method that mimics the natural selection ►Terms to define ٭ Chromosome – a set of numbers representing one possible solution ٭
Genetic Algorithms. Overview “A genetic algorithm (or GA) is a variant of stochastic beam search in which successor states are generated by combining.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Genetic Algorithm(GA)
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Eight Queens Problem The problem is to place 8 queens on a chess board so that none of them can attack the other. A chess board can be considered a plain.
March 1, 2016Introduction to Artificial Intelligence Lecture 11: Machine Evolution 1 Let’s look at… Machine Evolution.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Genetic Algorithm (Knapsack Problem)
Using GA’s to Solve Problems
Optimization via Search
Genetic Algorithms.
CS Fall 2016 (Shavlik©), Lecture 12, Week 6
An evolutionary approach to solving complex problems

CS621: Artificial Intelligence
Dept. of Electrical and Computer Engineering
CS Fall 2016 (Shavlik©), Lecture 12, Week 6
EE368 Soft Computing Genetic Algorithms.
Searching for solutions: Genetic Algorithms
GA.
Presentation transcript:

CS 8625 High Performance Computing Dr. Hoganson Copyright © 2003, Dr. Ken Hoganson CS8625 Class Will Start Momentarily… CS8625 High Performance and Parallel Computing Dr. Ken Hoganson Genetic algorithms

CS 8625 High Performance Computing Dr. Hoganson Copyright © 2003, Dr. Ken Hoganson Genetic Programming Concept: For problems with very large number of possible solutions, and no direct computational mechanism to obtain solution, genetic programming can be used to search for a solution. Example problem: Maximize f(w,x,y,x)= -w w-x 2 -40x-y 2 +80y-z z For values (w,x,y,z) from [–4999  +5000] How many possible solutions? 10,000 values for each variable 4 variables  10,000 4 = (10 4 ) 4 = ,000,000,000,000,000 possible combinations to search!

CS 8625 High Performance Computing Dr. Hoganson Copyright © 2003, Dr. Ken Hoganson Genetic Algorithm 10,000,000,000,000,000 possible combinations to search! Say 10gigahertz machine Assume 1 operation per cycle Each operation takes 1/10billionth of a second 1/10,000,000,000 = 1/10 10 = second Assume evaluating the function takes 100 operations (10 2 ) One evaluation takes 10 2 * = seconds 100,000,000 (10 8 )evaluations per second / 10 8 = 10 8 seconds = 100,000,000 seconds (31,536,000 seconds in a year) 3 years to check every solution!

CS 8625 High Performance Computing Dr. Hoganson Copyright © 2003, Dr. Ken Hoganson Rather than check every combination of variables by evaluating function for that combination, Use genetic algorithm instead. SubSet of (random) initial combinations of w,x,y,z Combine the subset wxyz-combinations in a way that favors the solution interested in (crossover). (natural selection favors reproduction of the most “fit” parents, producing more “fit” offspring) Repeat for multiple generations, which should tend toward an optimal solution. Can also allow for random mutations (the random subset of wxyz combinations may include values close to the optimal)

CS 8625 High Performance Computing Dr. Hoganson Copyright © 2003, Dr. Ken Hoganson Implementation Values for w,x,y,z: lets restrict to values from –4095 to two’s complement or sign-magnitude in 13 bits So, have 4 variables of 13 bits each = 52 bits total Crossover: children are combinations of variables from two parents, ie a child of A and B could have w from A, x from B, y from A, z from B

CS 8625 High Performance Computing Dr. Hoganson Copyright © 2003, Dr. Ken Hoganson Implemenation Start with 64 random combinations of (w,x,y,z) Organized in 8 subsets of 8 combinations Each iteration, the best 4 (w,x,y,z) in each set combine with a best (w,x,y,z) from other sets to produce: A new “generation” of 64 children The “worst’ 4 (w,x,y,z) in each set do not reproduce, and ‘die’ and are eliminated from the subset, and replaced by offspring from the successful and reproducing combinations. The reproducing parents are also eliminated, replaced by the “new offspring”

CS 8625 High Performance Computing Dr. Hoganson Copyright © 2003, Dr. Ken Hoganson Implementation To allow for random mutations: In each iteration, allow random mutations, which we will model as a bit “flip” (reversal, complementation) Eight mutations per generation offspring (8 out of the new 64 child combinations of w,x,y,z)

CS 8625 High Performance Computing Dr. Hoganson Copyright © 2003, Dr. Ken Hoganson Design guidance Just a command line kind of interface, but show something of the changing w,x,y,z each generation as they converge toward the maximum. Use Java threads, one per subset (8 threads) to do the evaluations of the best combinations, and exchange “DNA” with other threads.

CS 8625 High Performance Computing Dr. Hoganson Copyright © 2003, Dr. Ken Hoganson Convergence? What is the solution? This example chosen because we can find a solution. Example problem: Maximize f(w,x,y,x)= -w w-x 2 -40x-y 2 +80y-z z For values (w,x,y,z) from [–4999  +5000] Algebra – completing the square for each variable yields: (w-50) 2 -(x+20) 2 -(y-40) 2 -(z+100) 2 Since all squared terms subtract from the 14500, the maximum is where each variable term is zero: W=50, x=-20, y=40, z=-100

CS 8625 High Performance Computing Dr. Hoganson Copyright © 2003, Dr. Ken Hoganson Final Exam Project This project will be your final exam! Turn in: –a description of your software design –source code –and your experimental results from running your algorithm. Due date not set, but probably first day of finals. Class time will be given for this project. Perhaps only a couple more lectures this semester.

CS 8625 High Performance Computing Dr. Hoganson Copyright © 2003, Dr. Ken Hoganson End of Lecture End Of Today’s Lecture.