This directory contains code for the genetic algorithms case study described in
chapter 10.

Primary Files:

   run.erl        - entry point to run either the serial or parallel code
   driver.erl     - main Erlang implementation of the case study routines
   testdata.dat   - test data points
   testouts.dat   - tes data values
   Makefile       - makefile to compile the code

Genetic Algorithm Library Files:

   express.erl, gaeval.erl, gagenome.erl gaops.erl, gaselect.er., worker.erl

To run the code:

1. Download and install the Erlang system from http://www.erlang.org  You
   will need a C compiler to build the Erlang compiler and shell.  We have
   tested the genetic algorithm code using Erlang version R13B02 on Mac OS X.

2. Type "make" to compile the genetic algorithm files.

3. Start the Erlang shell by typing "erl".  Then from the Erlang shell type
   "run:prun(NP)." where NP is the number Erlang processes you want to
   spawn.  Output from the program shows the current iteration and fitness
   of the best performing individual.
