-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (58 loc) · 2.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>🐜 Ant colony optimization</title>
</head>
<body class="grid-container">
<header>
<h2>🐜 Ant colony optimization algorithm</h2>
</header>
<main>
<canvas height="750" width="750" style="border: black 1px solid;"></canvas>
<div id="settings">
<h3>Colony settings:</h3>
<div class="inputs">
<label>Ants: <br><input id="ants" type="number" value="100" min="10" autocomplete="off"></label>
<label>Nodes: <br><input id="nodes" type="number" value="50" min="10" autocomplete="off"></label>
<label>Iterations: <br><input id="iterations" type="number" value="200" min="100"
autocomplete="off"></label>
</div>
<h3>Control settings <a href="https://github.com/UltimateDoge5/ACO-TS/blob/master/README.md" target="_blank" title="More in readme">(?)</a></h3>
<div class="inputs">
<label>Alpha: <br><input id="alpha" type="number" value="1" min="1" autocomplete="off"></label>
<label>Beta: <br><input id="beta" type="number" value="2" min="2" autocomplete="off"></label>
<label>Pher: <br><input id="pher" type="number" value="1" min="0.1" autocomplete="off"></label>
<label>Pho: <br><input id="pho" type="number" value="0.1" step="0.1" autocomplete="off"> </label>
<label>Q: <br><input id="Q" type="number" value="1" autocomplete="off"></label>
</div>
<div id="progress">
<p id="iterationsText">0 / 200 iterations</p>
<progress value="0"></progress>
</div>
<divs style="display: flex;justify-content: space-around;">
<button id="run">Run</button>
<button id="generate">Generate</button>
</div>
<div id="table">
<table>
<tr>
<th>Iteration</th>
<th>Time</th>
<th>Path cost</th>
</tr>
</table>
</div>
</main>
<footer>
<a href="https://github.com/UltimateDoge5" target="_blank">Github</a>
</footer>
</body>
<script src="build/colony.js"></script>
<script src="build/index.js"></script>
</html>