-
Notifications
You must be signed in to change notification settings - Fork 0
/
Playground.html
146 lines (142 loc) · 5.6 KB
/
Playground.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Manual GA</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</style>
<script src="library/p5.min.js"></script>
<script src="manualGA.js"></script>
<script src="stat.js"></script>
<script src="GA.js"></script>
<script src="BF.js"></script>
</head>
<!-- NAVBAR START -->
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
<div class="container">
<a class="navbar-brand" href="#">
<img src="./images/Logo 1.svg">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup"
aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav ml-auto">
<a class="nav-item nav-link active" href="index.html">Introduction <span class="sr-only">(current)</span></a>
<a class="btn btn-standout nav-item" href="Playground.html">Playground</a>
</div>
</div>
</div>
</nav>
<!-- NAVBAR END -->
<!-- CONTENT START -->
<div class="container" style="padding-top: 100px; padding-bottom: 100px;">
<div id="canvas">
</div>
<div class="row text-center pt-4">
<div class="col-lg"><a class="btn btn-standout btn-lg" href="#" onclick="startGA()">START TSP X GA</a></div>
</div>
<div class="title text-center"><span class="display-4">Result of Optimalization <small class="text-muted">(30 FPS)</small></span></div>
<div class="row">
<div class="col-lg align-self-center">
<div class="row pb-3">
<div class="col-sm-12 col-lg">
<center><h2><u>Detail GA</u></h2></center>
</div>
</div>
<div class="row pb-3">
<div class="col-sm-12 col-lg">
<b class="sm-result">Best Route</b>
</div>
<div class="col-sm-12 col-lg text-right">
<span id="bestRoute" class="sm-result">1-2-3-4-5-6-7-8</span>
</div>
</div>
<div class="row pb-3">
<div class="col-sm-12 col-lg">
<b style="color: blue;" class="sm-result">Best Distance</b>
</div>
<div class="col-sm-12 col-lg text-right">
<span id="bestDist" class="sm-result">170</span>
</div>
</div>
<div class="row pb-3">
<div class="col-sm-12 col-lg">
<b class="sm-result">Current Routes</b>
</div>
<div class="col-sm-12 col-lg text-right">
<span id="currRoute" class="sm-result">1-2-3-4-5-6-7-8</span>
</div>
</div>
<div class="row pb-3">
<div class="col-sm-12 col-lg">
<b style="color: red;" class="sm-result">Current Distance</b>
</div>
<div class="col-sm-12 col-lg text-right">
<span id="currDist" class="sm-result">Infinity</span>
</div>
</div>
</div>
<div class="col-lg align-self-center">
<div class="row pb-3">
<div class="col-sm-12 col-lg">
<center><h2><u>Detail BF</u></h2></center>
</div>
</div>
<div class="row pb-3">
<div class="col-sm-12 col-lg">
<b class="sm-result">Best Route</b>
</div>
<div class="col-sm-12 col-lg text-right">
<span id="BFBestRoute" class="sm-result">1-2-3-4-5-6-7-8</span>
</div>
</div>
<div class="row pb-3">
<div class="col-sm-12 col-lg">
<b style="color: blue;" class="sm-result">Best Distance</b>
</div>
<div class="col-sm-12 col-lg text-right">
<span id="BFBestDistance" class="sm-result">170</span>
</div>
</div>
<div class="row pb-3">
<div class="col-sm-12 col-lg">
<b class="sm-result">Current Routes</b>
</div>
<div class="col-sm-12 col-lg text-right">
<span id="BFCurrRoute" class="sm-result">1-2-3-4-5-6-7-8</span>
</div>
</div>
<div class="row pb-3">
<div class="col-sm-12 col-lg">
<b style="color: red;" class="sm-result">Current Distance</b>
</div>
<div class="col-sm-12 col-lg text-right">
<span id="BFCurrDistance" class="sm-result">Infinity</span>
</div>
</div>
</div>
</div>
<div class="row">
<div id="statGA" class="col-lg-6" style="background-color: #2F2E41; min-height: 200px; padding-left: 0px;">
<span style="color: #fff;font-size: 25px; padding-left: 1em;">Statistic GA</span><br>
</div>
<div id="statBF" class="col-lg-6" style="background-color: #2F2E41; min-height: 200px; padding-left: 0px;">
<span style="color: #fff;font-size: 25px; padding-left: 1em;">Statistic BF</span><br>
</div>
</div>
</div>
<!-- CONTENT END -->
<body>
</body>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</html>