-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (92 loc) · 3.47 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title> vehicle routing problem</title>
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>
<!-- <input type="file" accept=".txt" id="file" />
<button onclick="go()">click</button> -->
<section class="main">
<div class="container">
<div class="github">
<a href="https://github.com/ismail-benlaredj/vehicle-routing-problem">
<div class="github_icon">
<img src="/assets/github.svg" alt="Github icon" />
source code
</div>
</a>
</div>
<div class="aside">
<div class="select-data">
<label for="data-btn">select data</label>
<!-- <input type="file" accept=".txt" id="data-btn"></input> -->
<select name="data" id="data-btn">
<option value="0">Select data</option>
<option value="c101">c101</option>
<option value="c201">c201</option>
<option value="r101">r101</option>
<option value="rc201">rc201</option>
</select>
<p id="data-notif">please select data.</p>
</div>
<form class="form">
<div class="input">
<label for="nbr-of-population"> give size of population</label>
<input type="number" max="1000" id="nbr-of-population" placeholder="ex: 200" />
</div>
<div class="input">
<label for="">crossover ratio </label>
<input type="number" id="crossover-ratio" placeholder="ex: 70%" maxlength="2" />
</div>
<div class="input">
<label for="">mutation rate</label>
<input type="number" id="mutation-rate" placeholder="ex 2 %" maxlength="3" />
</div>
<div class="input">
<label for="">number of generations</label>
<input type="number" id="nbr-of-generations" placeholder="1200" maxlength="4" />
</div>
</form>
<p id="input-notif">please give valid input.</p>
<button id="excute-btn" onclick="excute()">Execute</button>
<div id="results">
<h1>results</h1>
<p>distance : <span id="distance-result"></span></p>
<p>vehihucles used : <span id="vehicules-result"></span></p>
<p>Routes :</p>
<ol id="routes-result">
</ol>
<div id="routes"></div>
</div>
</div>
<div class="illust">
<canvas id="routes-canvas"></canvas>
<canvas id="canvas"></canvas>
</div>
</div>
<div id="notif">
<h3>Generation : <span id="gen"></span></h3>
<p id="proc-notif">please wait ...</p>
</div>
<div id="selected-route">
<p>route : <span id="num-route-result"></span></p>
<p>distance : <span id="distance-route-result"></span></p>
<p>load : <span id="vehicules-load-result"></span></p>
<p>capacity of vehicule : <span id="vehicules-capacity"></span></p>
</div>
<div id="selected-customer">
<p> customer ID : <span id="cust-id-result"></span></p>
<p> customer coordinates : <span id="cust-coord"></span></p>
<p>demande : <span id="demande-result"></span></p>
</div>
</section>
<script src="js/functions.js"></script>
<script src="js/customer.js"></script>
<script src="js/population.js"></script>
<script src="js/genes.js"></script>
<script src="main.js"></script>
</body>
</html>