Skip to main content

Implementing TOPSIS

Project description

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

Table of Contents

  1. Description
  2. Installation
  3. Usage
  4. Example

Description

Topsis-Aaditya-102117021

for: Project-1(UCS654) submitted-by: Aaditya Vardhan Roll no: 102117021 Group: 3CS-1

Topsis-Aaditya-102117021 is a Python library for dealing with Multiple Criteria Decision Making(MCDM) problems by using Technique for Order of Preference by Similarity to Ideal Solution(TOPSIS)

Installation

Use the package manager pip to install Topsis-Aaditya-102117021

pip install Topsis-Aaditya-102117021

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 (+,-)

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.py 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-Aaditya-102117021-0.0.4.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

Topsis_Aaditya_102117021-0.0.4-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Aaditya-102117021-0.0.4.tar.gz.

File metadata

File hashes

Hashes for Topsis-Aaditya-102117021-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f0ca08c1cbf9825d7594e87bb3ba4e1a2d15d4a7a1351f1a00db7c460a7babe5
MD5 0fede107fdb1ce7ba1513468f59fd4d6
BLAKE2b-256 f8220855ee7a99424358ee11f0d4dce61fa142aa00e86b57b06f7bc9e644a137

See more details on using hashes here.

File details

Details for the file Topsis_Aaditya_102117021-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Aaditya_102117021-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 be04144699c6311f99acde258ab9f0e5e2f7fdc7c035502cfa9b59d614099619
MD5 918f36eeba76cad9cad6d79e51ebc755
BLAKE2b-256 87356caf44dff2707bc54e5a88724c5692dbcd8f1c48f32df31e0b87dc7cf662

See more details on using hashes here.

Supported by

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