From e4afdff49914b388345a7730536955e1fbea8e13 Mon Sep 17 00:00:00 2001 From: Tomek Date: Tue, 9 Jun 2020 14:06:20 +0200 Subject: [PATCH] Poprawa algorytmu mcda --- __pycache__/mcda.cpython-38.pyc | Bin 2766 -> 2665 bytes mcda.py | 13 +++---------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/__pycache__/mcda.cpython-38.pyc b/__pycache__/mcda.cpython-38.pyc index 5b843ed737f9dd1e5da3d7352ff5195e8d0f8e12..d832d8b26aea817a9703c572b9419246dbdc6ae6 100644 GIT binary patch delta 605 zcmY*VJxe4(5UuL&nH?7$7g1pq1y7SXI9Zd$k3jK*)x<;uIk*eXmi63o+36hxrH2g` z`~#C2Y3^U}FPNB_2u5yZU?3uD)jBR`HT7Oib#+a>x*BNp`fc2z+E?Eq_g!#W{{#X%LcfgHvv)Lm<1v;%`n3-%P>a}xIf+M!Tz6Q z&s**-QUXw+ORmsMF1?XPH|EeskB%!mG%HlG&1Ih^De%ab$m_cV5j1JoGQ`N5Eu@+Y zv9Ne1Em)C7W7%QR;UHIQ+|j57d76$qODm+EAgPw?&-kM)H|S~)_Mbr3 zW(o{b4C4&n2yUF3`CE+wX%_j*tsm5C|BjN^u8I5(CF(u_v=@-WN$e-tW-TdYXIvIe J;YqfHqwh-&eNzAc delta 726 zcmY*WJ&P1U5bf&j`Pji7mg5X|6Foh_0mU<$LqSkEQN%zIM9}0~7u`d5di&sn9yZv( z^k5>z;4Uz|pW+YLK*4NNLlb?~4`S9jIx#rn6i`O|JU6Ief9eSi6}dz>dS zr>2(-riWxRBWvxIkt1oZ7*%UWPC7NC8Qm2xOdb8pJ@@2wUjU=N7zz8uN42g>uS4Yl z;%b@I%j{}R*;coEamKVfJ)~AE*FM9wq15P+Mw7B-Z8;kK<>irfid#7*5{`GnpTYOS zM5UBh7I;qyYd?JeYk==kEgT)^#OK^vuKk-`JvISTXH(O~xnMY&$ z=ACQqrw^wk!h$r#FijaOh4p|v#9BNbvOUTX%jpcF8O1UsyMx+YKHzj|I1%g)Y;p*2 zVuq%Nq9((iWE@7dWLZ20n}+Ausg)Nj^jqbnkvB1AU>ZykJneE->6+xD6<@ 0.8: + if C[max] > 0.75: if C[max] == C[j]: products.append(allProducts[j]) - print(C[j]) number -= 1 if number == 0: break @@ -102,14 +101,8 @@ def choseProducts(): def selectedSupply(): products = choseProducts() supply = [] - product = ['-', '-', 0, '-', '-'] for i in range(len(products)): - product[0] = products[i].color - product[1] = products[i].shape - product[2] = products[i].mass - product[3] = products[i].size - supply.append(product) - product = ['-', '-', 0, '-', '-'] - supply.append(product) + supply.append([products[i].color, products[i].shape, products[i].mass, products[i].size, '-']) + supply.append(['-', '-', 0, '-', '-']) print(supply) return supply \ No newline at end of file