-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
43 lines (31 loc) · 1.72 KB
/
README
File metadata and controls
43 lines (31 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/***************************************************************************
README - description
-------------------
begin : Fri Jun05 13:03:34 BST 2009
copyright : (C) 2002-2009 by Craig Nicol
email : craig.nicol@gmail.com
url : http://craignicol.github.io/geneticalgorithmtemplates
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
QUICK START : G++
-------------------
To see an example of a ga in action:
make -f Makefile.MG happyfaces && ./happy_faces_opt
(fitness is based on number of moves to complete puzzle, anything 25
or higher is a completed puzzle, the higher the fitness, the faster
the chromosome completed the puzzle)
To see an example result from the ga (and to see the puzzle in action):
make -f Makefile.MG happysolution && ./happy_faces_solution
To see a suite of ga examples:
make -f Makefile.MG fast && ./gat7o
and see the main.cpp file to see how to use it.
Poor ducomentation is a known issue.
Tested on Ubuntu / Gcc 4.x
Untested on other platforms