-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
264 lines (239 loc) · 9.55 KB
/
Copy pathindex.html
File metadata and controls
264 lines (239 loc) · 9.55 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<html>
<head>
<title>Easy Online MCDM</title>
<script src="./target/scala-3.8.3/mcdm-fastopt.js" defer></script>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/png" href="favicon.png">
</head>
<body>
<table>
<tr>
<td width="150" height="100">
<img style="border-radius: 20px;" src="logo.jpg" alt="Logo" width="200" height="100"/>
</td>
<td>
<h3>Enter your data and go on!</h3>
</td>
</tr>
</table>
<hr />
<dialog id="dialog_messenger">
<div id="dialog_div_content">
Message Content
</div>
<hr />
<button id="dialog_button_ok">OK</button>
</dialog>
<fieldset>
<legend>
<button class="toggle-button" id="button_showhide_step1">-</button>
Step 1 - Generate the decision matrix content
</legend>
<div id="div_step1">
<p>
Please enter manually or copy & paste your data.
The first row includes criteria names. The first column
includes the names of the alternatives. You can separate values using commas or semicolons.
</p>
<p>The default directions
will set to max for all criteria. The default weights will be equal weights. The decimal
separator is a dot (.) for numbers.
</p>
<textarea id="textarea_strdecmat" placeholder="Enter and copy & paste the decision matrix content here"
rows="6" cols="40">
C1 , C2 , C3 , C4 , C5
A1,0.3, 0.4, 0.5, 0.6, 0.7
A2,0.2, 0.3, 0.4, 0.5, 0.6
A3,0.1, 0.2, 0.3, 0.4, 0.5
</textarea>
<label for="select_separator">Select the value separator</label>
<select id="select_separator">
<option value=",">Comma (,)</option>
<option value=";">Semicolon (;)</option>
</select>
<button id="button_generate_decmat">Generate Decision Matrix</button>
</div>
</fieldset>
<fieldset>
<legend>
<button class="toggle-button" id="button_showhide_step2">-</button>
Step 2 - Enter directions of optimization for each criterion
</legend>
<div id="div_step2">
<p>
Direction of optimization for each criterion. Use comma between directions.
Use "max" for maximization and "min" for minimization. Spaces can be used
before and after a comma but they are not necessary.
</p>
<input type="text" id="input_criteria_directions" value="max,max,min,max,min" />
<hr />
<button id="button_generate_directions">Generate Directions</button>
</div>
</fieldset>
<fieldset>
<legend>
<button class="toggle-button" id="button_showhide_step3">-</button>
Step 3 - Enter weights
</legend>
<div id="div_step3">
<p>
Please select a weighting method. If the weights are predefined then select the <b>Custom Weights</b>
option.
The default method is <b>Equal Weights</b>.
</p>
<label for="select_weight_method">Select weighting method:</label>
<select id="select_weight_method">
<option value="0">Equal weights</option>
<option value="1">Entropy method</option>
<option value="2">Critic method</option>
<option value="3">Standard deviation method (SD)</option>
<option value="4">Merec method</option>
<option value="5">Cilos method</option>
<option value="6">Idocriw method</option>
<option value="7">Lopcow method</option>
<option value="8">Custom weights</option>
</select>
<button id="button_generate_weights">Generate Weights</button>
</div>
</fieldset>
<fieldset>
<legend>
<button class="toggle-button" id="button_showhide_step4">-</button>
Step 4 - Select MCDM methods
</legend>
<div id="div_step4">
<p>
Please select the MCDM methods to be applied. If more than one method is selected
the results will be listed in the same order as the methods are selected.
</p>
<table>
<tr>
<td>
<label for="check_aras">Aras</label>
<input type="checkbox" id="check_aras" checked></input>
</td>
<td>
<label for="check_cocoso">Cocoso</label>
<input type="checkbox" id="check_cocoso"></input>
</td>
<td>
<label for="check_codas">Codas</label>
<input type="checkbox" id="check_codas" checked></input>
</td>
<td>
<label for="check_copras">Copras</label>
<input type="checkbox" id="check_copras" checked></input>
</td>
<td>
<label for="check_edas">Edas</label>
<input type="checkbox" id="check_edas"></input>
</td>
</tr>
<tr>
<td>
<label for="check_lmaw">Lmaw</label>
<input type="checkbox" id="check_lmaw" checked></input>
</td>
<td>
<label for="check_mabac">Mabac</label>
<input type="checkbox" id="check_mabac" checked></input>
</td>
<td>
<label for="check_mairca">Mairca</label>
<input type="checkbox" id="check_mairca"></input>
</td>
<td>
<label for="check_marcos">Marcos</label>
<input type="checkbox" id="check_marcos"></input>
</td>
<td>
<label for="check_moosra">Moosra</label>
<input type="checkbox" id="check_moosra"></input>
</td>
</tr>
<tr>
<td>
<label for="check_ocra">Ocra</label>
<input type="checkbox" id="check_ocra"></input>
</td>
<td>
<label for="check_piv">Piv</label>
<input type="checkbox" id="check_piv"></input>
</td>
<td>
<label for="check_psi">Psi</label>
<input type="checkbox" id="check_psi"></input>
</td>
<td>
<label for="check_ram">Ram</label>
<input type="checkbox" id="check_ram"></input>
</td>
<td>
<label for="check_row">Rov</label>
<input type="checkbox" id="check_rov"></input>
</td>
</tr>
<tr>
<td>
<label for="check_saw">Saw</label>
<input type="checkbox" id="check_saw"></input>
</td>
<td>
<label for="check_topsis">Topsis</label>
<input type="checkbox" id="check_topsis"></input>
</td>
<td>
<label for="check_waspas">Waspas</label>
<input type="checkbox" id="check_waspas"></input>
</td>
<td>
<label for="check_wpm">Wpm</label>
<input type="checkbox" id="check_wpm"></input>
</td>
<td>
<label for="check_nds">Nds</label>
<input type="checkbox" id="check_nds"></input>
</td>
</tr>
<tr>
<td>
<label for="check_copeland">Copeland</label>
<input type="checkbox" id="check_copeland"></input>
</td>
</table>
<button id="button_evaluate">Generate output</button>
</div>
</fieldset>
<fieldset>
<legend>
<button class="toggle-button" id="button_showhide_finaldecmat">-</button>
The final decision matrix
</legend>
<div id="div_final_decmat">
The decision matrix is empty. Please
<ol>
<li>Generate the content in Step 1</li>
<li>Generate the directions in Step 2</li>
<li>Generate the weights in Step 3</li>
<li>Select the methods to apply in Step 4</li>
</ol>
</div>
</fieldset>
<fieldset>
<legend>MCDM Methods' Output</legend>
<fieldset>
<legend>Scores</legend>
<div id="div_output_scores">
</div>
</fieldset>
<fieldset>
<legend>Ranks</legend>
<div id="div_output_ranks">
</div>
</fieldset>
</fieldset>
<footer style="text-align: center; margin-top: 20px;">
<p>Developed by Mehmet Hakan Satman - 2025</p>
</footer>
</body>
</html>