Skip to main content

Topsis package for Multiple Criteria Decision Making problems(MCDM) problems

Project description

Decision Making Using TOPSIS

By: Saksham Khetarpal Roll no: 102003039

Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) is a multi-criteria-based decision-making method. TOPSIS chooses the alternative of shortest the Euclidean distance from the ideal solution and greatest distance from the negative ideal solution.

Installation

Use the package manager pip to install Topsis-Saksham-102003039.

pip install Topsis-Saksham-102003039

Usage

Enter csv input filename followed by .csv extentsion, then enter the weights with values separated by commas, followed by the impacts with comma separated signs (+,-) and finally the name of the output file followed by .csv extension.

topsis input.csv "1,1,1,1" "+,+,-,+" output.csv

Example

A csv file showing data for different mobile handsets having varying features (input.csv).

Model Storage Space(gb) Camera(MP) Price($) 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 = "1,1,1,1"

impacts ="+,+,-,+"

Input:

topsis input.csv "1,1,1,1" "+,+,-,+" output.csv

Output:

The output is a csv file (output.csv) with the following 2 columns appended to the original input file.

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

License

MIT

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-Saksham-102003039-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Topsis_Saksham_102003039-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Saksham-102003039-1.0.0.tar.gz.

File metadata

File hashes

Hashes for Topsis-Saksham-102003039-1.0.0.tar.gz
Algorithm Hash digest
SHA256 53f43ba6a0ebd41b33586633ad29091ccbcdb9f2ff53f4a77e5b3501a4aba702
MD5 55d69dcf098d7b4eab5794d4464bdb4c
BLAKE2b-256 e477de568fb86a32be616f1030d1cbba92178c0ea8db155b1e27eeb7be444146

See more details on using hashes here.

File details

Details for the file Topsis_Saksham_102003039-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Saksham_102003039-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7f4847f97f42376172566b60a10105439880da109b9bd487d10aa2e1f8f2a7e
MD5 d8587786f2ce510a26c166e7bf53f35e
BLAKE2b-256 d40f2a01ba2c833bd39e5b3f80704ba309c48fb417dd5b844f43e88c8c892065

See more details on using hashes here.

Supported by

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