-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (93 loc) · 5.57 KB
/
index.html
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Genetic Algorithm</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" media="screen">
<link href="css/master.css" rel="stylesheet" media="screen">
</head>
<body>
<div class="content">
<div class="wrapper row clearfix">
<div class="col-md-12">
<div class="config col-md-6">
<form >
<fieldset>
<legend>Genetic Algorithm for Traveling Salesman Problem</legend>
<div class="col-md-6">
<div class="form-group">
<label>Population Size: </label>
<input type="text" name="popSize" class="form-control" value="100" />
</div>
<div class="form-group">
<label>Generations: </label>
<input type="text" name="generations" class="form-control" value="200" />
</div>
<div class="form-group">
<label>Elistists: </label>
<input type="text" name="elitists" class="form-control" value="2" />
</div>
<div class="form-group">
<label>Alleles: </label>
<input type="text" name="alleles" class="form-control" value="7" />
</div>
<div class="form-group">
<label>Min Allele Value: </label>
<input type="text" name="minAllele" class="form-control" value="1" />
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Max Allele Value: </label>
<input type="text" name="maxAllele" class="form-control" value="7" />
</div>
<div class="form-group">
<label>Extra Alleles: </label>
<input type="text" name="extraAlleles" class="form-control" value="2" />
</div>
<div class="form-group">
<label>Mutation Probability: </label>
<input type="text" name="mutationProb" class="form-control" value="20" />
</div>
<div class="form-group">
<label>Stat Frequency: </label>
<input type="text" name="statFreq" class="form-control" value="10" />
</div>
<div class="form-group">
<label>Wrong Route Value: </label>
<input type="text" name="wrongRoute" class="form-control" value="2000" />
</div>
</div>
<div class="form-group col-md-12">
<label>City Mapping: </label>
<textarea rows="10" class="form-control" name="cityArray" id="cityArray"></textarea>
<button type="button" class="btn btn-primary btn-block startGA"><i class="fa fa-cogs"></i> Start</button>
</div>
</fieldset>
</form>
<p>The minimum that I have found for my cities was 286. My cities are:<br />
City 1: Flint <br />
City 2: Saginaw<br />
City 3: Marlette<br />
City 4: Royal Oak<br />
City 5: Troy<br />
City 6: Pontiac<br />
City 7: Grand Rapids<br /></p>
</div>
<hr />
<div id="stats" class="col-md-6"></div>
</div>
</div>
</div>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="js/ga.js"></script>
</body>
</html>