Skip to main content

TOPSIS Implementation

Project description

TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution)

Description

Topsis-Joyy-102117024

For: Assignment-1(UCS654) Submitted-by: Joyy Goswami Roll no: 102117024 Group: 3CS-1

Topsis-Joyy-102117024 is a Python package for dealing with Multiple Criteria Decision Making(MCDM) problems by using TOPSIS

Installation

Use the package manager pip to install Topsis-Joyy-102117024

pip install Topsis-Joyy-102117024

Usage

Enter csv filename followed by .csv extension, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma-separated signs (+,-)

bash python sample.py sample.csv "1,1,1,1,2" "+,+,-,+,+" sample-result.csv

Example

sample.csv

A csv file showing data for different mobile handsets having varying features

Model Storage space (in GB) Camera (in MP) Price (in $) Looks (out of 5)
M1 16 12 250 5
M2 16 8 200 3
M3 32 16 300 4
M4 32 8 275 4
M5 16 16 225 2

weights vector = [1, 1, 1, 1] impacts vector = [+,+,-,+]

Input:

python sample.csv "1,1,1,1" "+,+,-,+" sample-result.csv

Output:

Topsis-score Rank
0.534277 3
0.308368 5
0.691632 1
0.534737 2
0.401046 4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Topsis-Joyy-102117024-0.0.8.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

Topsis_Joyy_102117024-0.0.8-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page