-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (47 loc) · 2 KB
/
Copy pathindex.html
File metadata and controls
48 lines (47 loc) · 2 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<title>Repairman Problem Calculator</title>
</head>
<body>
<div class="gear gear-1"></div>
<div class="gear gear-2"></div>
<div class="gear gear-3"></div>
<div class="gear gear-4"></div>
<div class="gear gear-5"></div>
<div class="gear gear-6"></div>
<div class="container">
<h1>Repairman Problem Calculation</h1>
<form method="POST" action="{{ url_for('calculate') }}">
<div class="input-group">
<label for="mean_breakdown">Mean Breakdown Time (T_B):</label>
<input type="number" id="mean_breakdown" name="mean_breakdown" required>
</div>
<div class="input-group">
<label for="std_breakdown">Std Dev Breakdown Time (σ_B):</label>
<input type="number" id="std_breakdown" name="std_breakdown" required>
</div>
<div class="input-group">
<label for="mean_repair">Mean Repair Time (T_R):</label>
<input type="number" id="mean_repair" name="mean_repair" required>
</div>
<div class="input-group">
<label for="std_repair">Std Dev Repair Time (σ_R):</label>
<input type="number" id="std_repair" name="std_repair" required>
</div>
<button type="submit">Calculate</button>
</form>
{% if results %}
<div class="results">
<h2>RESULTS</h2>
<p>Probability of Breakdown Before Repair: {{ results.prob_breakdown_before_repair }}</p>
<p>Expected Number of Events Until Halt: {{ results.expected_events }}</p>
<p>Expected Total Time Until Halt: {{ results.expected_time }}</p>
</div>
{% endif %}
</div>
</body>
</html>