21.07.2013 Views

Eight Queens with Evolutionary Computing

Eight Queens with Evolutionary Computing

Eight Queens with Evolutionary Computing

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Eight</strong> <strong>Queens</strong> Algorithm Description<br />

Representation Permutations<br />

Recombination ”Cut-and-crossfill” crossover<br />

Recombination probability 100 pc<br />

Mutation Swap<br />

Mutation probability 80 pc<br />

Parent selection Best 2 out of random 5<br />

Survival selection Replace worst<br />

Population size 100<br />

Number of offspring 2<br />

Initialisation Random<br />

Termination condition Solution of 10,000 fitness evaluation<br />

4.3 Evocom<br />

The author has written a computer program called evocom and implemented<br />

the evolutionary algorithm given in Section 3.7. Evocom is a Python command<br />

line application that has various options to adjust configuration parameters.<br />

coruh-imac:evocom ergun$ python evocom.py -h<br />

evocom started.<br />

Usage: evocom.py [options]<br />

Options:<br />

-h, --help show this help message and exit<br />

-p POPULATION, --population=POPULATION<br />

-t TRIALS, --trials=TRIALS<br />

-r RUNS, --runs=RUNS<br />

-b BESTFITS, --bestfits=BESTFITS<br />

-m MUTATION, --mutation=MUTATION<br />

-s SELECTFROM, --selectfrom=SELECTFROM<br />

-v, --verbose<br />

Population: Initial size of the population. Default is 100.<br />

Trials: Maximum iterations to terminate the program in case search fails.<br />

Default is 10000.<br />

Runs: Number of runs. This parameter is needed to find the average performance<br />

as each run finishes in different number of iterations. Default is 10.<br />

Best fits: Number of fittest individuals to find before breaking the iteration.<br />

Default is 5.<br />

Select from: Number of parents randomly chosen from the population to pick<br />

the fittest two to mate. Default is 5.<br />

8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!