GENESIS <ul><li>Overview </li></ul><ul><li>Access </li></ul><ul><li>Setup </li></ul><ul><li>Execution </li></ul><ul><li>Re...
GENESIS – Overview <ul><li>GENESIS is GA code written in C </li></ul><ul><li>Written by John J. Grefenstette in 1990 </li>...
GENESIS - Access <ul><li>Download genesis.tgz from  http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/areas/genetic/ga...
GENESIS - Setup <ul><li>Genesis by default prepared to work on unix environment.  For that we need to Modify some files to...
GENESIS - Execution <ul><li>To Execute Genesis we need a Command Prompt go c:genesis  </li></ul><ul><li>Genesis have six t...
GENESIS – Setup Parameter 1 <ul><li>the suffix for file names []:  it’s optional parameter to append it to all output file...
GENESIS – Setup Parameter 2 <ul><li>the population size [50]: </li></ul><ul><li>the length of the structures in bits [30]:...
GENESIS - Hints <ul><li>You really want to read the Users Guide </li></ul><ul><li>Look at the source code if you are curio...
FAQ <ul><li>How do use GENESIS? </li></ul><ul><ul><li>A Users Guide to GENESIS (genesis.txt) </li></ul></ul><ul><li>How do...
Upcoming SlideShare
Loading in …5
×

Genetic Algorithms Genesis Execution Guide

1,246 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,246
On SlideShare
0
From Embeds
0
Number of Embeds
113
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Genetic Algorithms Genesis Execution Guide

  1. 1. GENESIS <ul><li>Overview </li></ul><ul><li>Access </li></ul><ul><li>Setup </li></ul><ul><li>Execution </li></ul><ul><li>Reporting </li></ul><ul><li>Hints </li></ul><ul><li>FAQ </li></ul>Presented by Anas Obeidat Dr.Alaa Sheta
  2. 2. GENESIS – Overview <ul><li>GENESIS is GA code written in C </li></ul><ul><li>Written by John J. Grefenstette in 1990 </li></ul><ul><li>It is easy to use </li></ul><ul><li>It comes with a Users Guide genesis.doc </li></ul><ul><li>Read genesis.doc at least once all the way through, it is not long </li></ul><ul><li>Presentation continues assuming Dos Environment under Windows Operation System </li></ul><ul><li>The genesis written to prompt the study of genetic algorithms for function minimization. </li></ul>
  3. 3. GENESIS - Access <ul><li>Download genesis.tgz from http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/areas/genetic/ga / systems/genesis/ </li></ul><ul><li>And you can Download genesis.tgz from the Yahoo Group BAU_AI_2008 </li></ul><ul><li>We need Turbo C to Compile Genesis Source Files, you can Download it from Yahoo Group above. </li></ul><ul><li>Decompress TC.zip file to C:TC </li></ul><ul><li>Decpmpress genesis.tgz to C:genesis </li></ul>
  4. 4. GENESIS - Setup <ul><li>Genesis by default prepared to work on unix environment. For that we need to Modify some files to work on Dos environment </li></ul><ul><li>Modify Header File define.h #define TURBOC 1 //(Turbo C is Active) #define UNIX 0 //(Unix Env. Is inactive) </li></ul><ul><li>GENESIS comes with a Three make files makefile // (Unix environment makefile) makefile.dos // (Dos environment makefile) makefile.unx // (Unix environment makefile) </li></ul><ul><li>Delete makefile and rename makefile.dos to makefile </li></ul><ul><li>Set Turbo C Path “C:TCBIN” in System Environment Path 1 - Go to control Panel and open System. 2 - Click on Advanced Tab and then click on “Environment Variables” to new Dialog. 3 - In System Variables Table double Click on path variable to open edit dialog. 4 – Append “ ;C:TCBIN ” to the end on variable Value and then click OK. </li></ul><ul><li>Type “CMD” in Run Dialog to run Command Prompt </li></ul><ul><li>Go to C:genesis Folder using Command Prompt </li></ul><ul><li>In genesis Folder type the following to Compile Genesis Source Code C:genesis make install Three Files will generated (ga.exe, report.exe, setup.exe) </li></ul>
  5. 5. GENESIS - Execution <ul><li>To Execute Genesis we need a Command Prompt go c:genesis </li></ul><ul><li>Genesis have six test functions exist in c:genesis est.fns the default is f1.c f1.c, f2.c, f3.c, f4.c, f5.c, f6.c </li></ul><ul><li>To Execute any function you must put the function in c:genesis folder and make sure just one function in genesis folder. </li></ul><ul><li>In command prompt c:genesis follow the following steps: 1 > c:genesissetup (to configure genesis parameters) - Tow files will generated ( TEMPLATE.[suffix] , IN.[suffix] ) 2 > c:genesisgo [suffix] (suffix input in setup stage) </li></ul><ul><li>- Four files will generated (log.[suffix], min.[suffix],out.[suffix],rep.[suffix]) </li></ul>
  6. 6. GENESIS – Setup Parameter 1 <ul><li>the suffix for file names []: it’s optional parameter to append it to all output files </li></ul><ul><li>Floating point representation [y] by default it’s true to disable Floating Point write “n” </li></ul><ul><li>number of genes: you must specify the number of genes (positive number), and fill min, max and values (must be a power of 2) for each gene. </li></ul><ul><li>format string: the desired output format for this gene (using printf format, e.g., %7.2f) </li></ul><ul><li>repetition: repetition count, meaning that there a number of genes with the same range, granularity, and output format. </li></ul><ul><li>the number of experiments [1]: This is the number of independent optimizations of the same function. </li></ul><ul><li>the number of trials per experiment [1000]: </li></ul>
  7. 7. GENESIS – Setup Parameter 2 <ul><li>the population size [50]: </li></ul><ul><li>the length of the structures in bits [30]: </li></ul><ul><li>the crossover rate [0.60]: </li></ul><ul><li>the mutation rate [0.001]: </li></ul><ul><li>the generation gap [1.0]: </li></ul><ul><li>the scaling window [5]: </li></ul><ul><li>Report Interval [100]: </li></ul><ul><li>Structures Saved [10]: </li></ul><ul><li>Max Gens w/o Eval [2]: </li></ul><ul><li>Dump Interval [0]: </li></ul><ul><li>Dumps Saved [0] </li></ul><ul><li>Options [cefgl]: </li></ul><ul><li>Random Seed [123456789]: </li></ul><ul><li>Rank Min [0.75]: </li></ul>
  8. 8. GENESIS - Hints <ul><li>You really want to read the Users Guide </li></ul><ul><li>Look at the source code if you are curious, beware of becoming fascinated by it </li></ul>
  9. 9. FAQ <ul><li>How do use GENESIS? </li></ul><ul><ul><li>A Users Guide to GENESIS (genesis.txt) </li></ul></ul><ul><li>How do I use Unix? </li></ul><ul><ul><li>Using unix on Windows http://www.cygwin.com/ </li></ul></ul><ul><li>How do I use a computer? http://www.google.com/ </li></ul><ul><li>I can’t get GENESIS to run on my PC </li></ul><ul><ul><li>Please contact me [email_address] </li></ul></ul>

×