Wizard Book


Programming Python, Web, Android

Python : Sistem Pendukung Keputusan Simple Additive Weighting (SPK SAW)

Perhitungan Rumus SPK SAW (Simple Additive Weighting) Menggunakan Class Python SAW

from saw_contohprogram_com import SAW_

objsaw = SAW_()
hsl = objsaw.calculate_(
    ["Galaxy", "iPhone", "BB", "Lumia"],
    ["Harga", "Kualitas", "Fitur", "Populer", "Purna Jual", "Keawetan"],
    ["cost", "benefit", "benefit", "benefit", "benefit", "benefit"],
    [0.2, 0.25, 0.2, 0.125, 0.125, 0.1],
    [
        [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(objsaw.step_())
print(hsl)

Demo SAW Python Online

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