Review of objects  overview overview. Class of objects  Attributes/ methods.

Slides:



Advertisements
Similar presentations
Genetic Algorithms Chapter 3. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Genetic Algorithms GA Quick Overview Developed: USA in.
Advertisements

Algorithm Design Techniques
CS6800 Advanced Theory of Computation
Tetris – Genetic Algorithm Presented by, Jeethan & Jun.
Tetris and Genetic Algorithms Math Club 5/30/2011.
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.
A GENETIC ALGORITHM APPROACH TO SPACE LAYOUT PLANNING OPTIMIZATION Hoda Homayouni.
Data Mining CS 341, Spring 2007 Genetic Algorithm.
Using Classes Lisp also supports the Object-Oriented paradigm. The process of defining classes in Lisp is similar to how you you define structures. The.
Chapter 10: Algorithm Design Techniques
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Evolutionary Computation Application Peter Andras peter.andras/lectures.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
An Evolutionary Approach To Space Layout Planning Using Genetic Algorithm By: Hoda Homayouni.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Genetic Programming.
Genetic Algorithm.
Evolutionary Intelligence
Introduction to Genetic Algorithms and Evolutionary Computation
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
Scatology. Scatology Study of output Study of output Also called coprology Also called coprology From what comes out you get a pretty good idea of what.
Artificial Intelligence Lecture No. 31 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
More on Heuristics Genetic Algorithms (GA) Terminology Chromosome –candidate solution - {x 1, x 2,...., x n } Gene –variable - x j Allele –numerical.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Fuzzy Genetic Algorithm
Evolving Virtual Creatures & Evolving 3D Morphology and Behavior by Competition Papers by Karl Sims Presented by Sarah Waziruddin.
FINAL EXAM SCHEDULER (FES) Department of Computer Engineering Faculty of Engineering & Architecture Yeditepe University By Ersan ERSOY (Engineering Project)
Derivative Free Optimization G.Anuradha. Contents Genetic Algorithm Simulated Annealing Random search method Downhill simplex method.
EE459 I ntroduction to Artificial I ntelligence Genetic Algorithms Kasin Prakobwaitayakit Department of Electrical Engineering Chiangmai University.
G ENETIC A LGORITHMS Ranga Rodrigo March 5,
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
Probabilistic Algorithms Evolutionary Algorithms Simulated Annealing.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Intelligence Musical and Otherwise.  Huh? Huh? Webster’s definition  Intelligence:  The ability to reason.
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.
Innovative and Unconventional Approach Toward Analytical Cadastre – based on Genetic Algorithms Anna Shnaidman Mapping and Geo-Information Engineering.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
Contribution of second order evolution to evolutionary algorithms Virginie LEFORT July 11 th.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
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.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Overview Last two weeks we looked at evolutionary algorithms.
Advanced AI – Session 6 Genetic Algorithm By: H.Nematzadeh.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
Genetic Algorithms and Evolutionary Programming A Brief Overview.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Genetic (Evolutionary) Algorithms CEE 6410 David Rosenberg “Natural Selection or the Survival of the Fittest.” -- Charles Darwin.
Genetic Algorithm (Knapsack Problem)
Using GA’s to Solve Problems
Genetic Algorithm in TDR System
Selected Topics in CI I Genetic Programming Dr. Widodo Budiharto 2014.
Genetic Algorithms.
Cellular automata.
Teaching a machine a simple taxonomy
USING MICROBIAL GENETIC ALGORITHM TO SOLVE CARD SPLITTING PROBLEM.
Allegro CL Certification Program
CLOS CSC 358/
An evolutionary approach to solving complex problems
Basics of Genetic Algorithms (MidTerm – only in RED material)
Basics of Genetic Algorithms
EE368 Soft Computing Genetic Algorithms.
Presentation transcript:

Review of objects  overview overview

Class of objects  Attributes/ methods

Object  Instance of an class

Method  A function that acts on objects of a class

Message passing  Object to object

Inheritance  Objects inheriting attributes and methods of superclasses as well as having their own attributes and methods

Abstraction  Many to the few

Encapsulation  Hide the complexities

Polymorphism  Methods of same name can mean different things as they are tied to their own classes

GAs

Genetic Algorithms  Definition  a computer simulation in which a population of abstract representations (called chromosomes, genotype, or genome) of candidate solutions (called individuals, creatures, or phenotypes) to an optimization problem evolves toward better solutions.  Basics  A genetic representation of the solution domain,  A fitness function to evaluate the solution domain.  Along the way  crossover and mutation  Fitness tests  Until  a solution is found that satisfies minimum criteria

Interesting  Example Example

Karl Sims  Evolved Virtual Creatures  Not an animation  Evolved objects in motion  Encased in various media (water, air, etc.)  With gravity

Evolved Virtual Creatures

In lisp  Creating a very simple genetic algorithm for producing melodies of a certain type

Step 1  1. program a class of objects that have music melodies as attributes

Step 2  2. create a whole bunch, say 100, of instances of this object class (initial population)

Step 3  3. give the objects a (fitness test) based on overall interval direction, say 9 [stop when fulfilled]

Step 4  4. the ones closest survive (selection), the rest are discarded

Step 5  5. the remaining ones (mate)

Step 6  6. their offspring inherit (crossover) the general shape of the parents combined melodies

Step 7  7. maybe a (mutation) creeps in

Step 8  8. return to step 3

 1. program a class of objects that have music melodies as attributes  2. create a whole bunch, say 100, of instances of this object class (initial population)  3. give the objects a (fitness test) based on overall interval direction, say 9 [stop when fulfilled]  4. the ones closest survive (selection), the rest are discarded  5. the remaining ones (mate)  6. their offspring inherit (crossover) the general shape of the parents combined melodies  7. maybe a (mutation) creeps in  8. return to step 3

Variables  ;;;variables  (defvar *mutation*  (defvar *allowable-deviation*

Object  ;;;class of object with one attribute (a melody)  (defclass individual ()  ((melody :initarg :melody :initform nil :accessor melody))  (:documentation "Our objects in the evolutionary potboiler."))

Functions  ;;;functions  (defun melody  (defun fitness  (defun mate  (defun inherit  (defun mutation

Top level  ;;;top-level  (defun produce-crossover-melodies

MGC  ;;;use MGC to quickly turn into a midi file  (mgc "GA-1.mid" :ontimes '() :pitches '() :durations '() :channels '() :dynamics '())

 (defvar *mutation*  (defvar *allowable-deviation*  (defclass individual () ((melody :initarg :melody :initform nil :accessor melody)) ((melody :initarg :melody :initform nil :accessor melody)) (:documentation "Our objects in the evolutionary potboiler.")) (:documentation "Our objects in the evolutionary potboiler."))  (setf i-1 (make-instance 'individual))  (defun melody  (defun fitness  (defun mate  (defun inherit  (defun mutation  (defun produce-crossover-melodies  (mgc "GA-1.mid" :ontimes '() :pitches '() :durations '() :channels '() :dynamics '())