Skip to content

Commit 3913b4a

Browse files
committed
Update
1 parent b48cabc commit 3913b4a

File tree

3 files changed

+77
-7
lines changed

3 files changed

+77
-7
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#Simple Genetic Algorithm
22

3+
## TODO
4+
* Implement Tests
5+
* Measure time spent in each iteration
6+
7+
## Summary
8+
**Uses matplotlib** <br/>
39
Run the script as `python main.py`<br/>
410

511
It will create a file named result.txt where the results are going to be logged <br/>
@@ -12,5 +18,3 @@ Run the script as `python main.py {\d}` to specify the number of iterations <br/
1218
Example: `python main.py 1` will run it once. <br/>
1319
If there's no argument then it will run it 50 times as default.
1420

15-
## AUTHOR
16-
Josue Balandrano Coronel

plot.png

43 Bytes
Loading

result.txt

Lines changed: 71 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,76 @@
11
GA log
2-
Generation number where we reached success: 161
2+
Generation number where we reached success: 67
33
Iteration 0
44

5-
Generation number where we reached success: 51
6-
Iteration 4
5+
Generation number where we reached success: 158
6+
Iteration 2
7+
8+
Generation number where we reached success: 179
9+
Iteration 5
10+
11+
Generation number where we reached success: 75
12+
Iteration 6
13+
14+
Generation number where we reached success: 138
15+
Iteration 8
16+
17+
Generation number where we reached success: 57
18+
Iteration 10
19+
20+
Generation number where we reached success: 62
21+
Iteration 12
22+
23+
Generation number where we reached success: 187
24+
Iteration 13
25+
26+
Generation number where we reached success: 65
27+
Iteration 14
28+
29+
Generation number where we reached success: 185
30+
Iteration 15
31+
32+
Generation number where we reached success: 55
33+
Iteration 17
34+
35+
Generation number where we reached success: 151
36+
Iteration 18
37+
38+
Generation number where we reached success: 52
39+
Iteration 20
40+
41+
Generation number where we reached success: 60
42+
Iteration 21
43+
44+
Generation number where we reached success: 28
45+
Iteration 23
46+
47+
Generation number where we reached success: 180
48+
Iteration 26
49+
50+
Generation number where we reached success: 49
51+
Iteration 28
52+
53+
Generation number where we reached success: 71
54+
Iteration 29
55+
56+
Generation number where we reached success: 55
57+
Iteration 33
58+
59+
Generation number where we reached success: 108
60+
Iteration 37
61+
62+
Generation number where we reached success: 113
63+
Iteration 38
64+
65+
Generation number where we reached success: 98
66+
Iteration 40
67+
68+
Generation number where we reached success: 47
69+
Iteration 41
70+
71+
Generation number where we reached success: 108
72+
Iteration 48
773

874
Maximum generation reached: [200, 1]
9-
Minimum generation reached: [51, 4]
10-
Average generation reached 162
75+
Minimum generation reached: [28, 23]
76+
Average generation reached 150

0 commit comments

Comments
 (0)