Wizard Book


Programming Python, Web, Android

Python : Sistem Pendukung Keputusan Metode TOPSIS (SPK TOPSIS)

Perhitungan Rumus SPK TOPSIS(Technique For Others Reference by Similarity to Ideal Solution) Menggunakan Class Python TOPSIS

from topsis_contohprogram_com import TOPSIS_

objtopsis = TOPSIS_()
hsl = objtopsis.calculate_(
    ["Galaxy", "iPhone", "BB", "Lumia"],
    ["Harga", "Kualitas", "Fitur", "Populer", "Purna Jual", "Keawetan"],
    ["cost", "benefit", "benefit", "benefit", "benefit", "benefit"],
    [4, 5, 4, 3, 3, 2],
    [
        [3500, 70, 10, 80, 3000, 36],
        [4500, 90, 10, 60, 2500, 48],
        [4000, 80, 9, 90, 2000, 48],
        [4000, 70, 8, 50, 1500, 60]
    ]
)

print(objtopsis.step_())
print(hsl)

email : contohprogram.com@gmail.com
WA : +6289671400363