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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Topsis-Saksham-102003039-1.0.0.tar.gz.
File metadata
- Download URL: Topsis-Saksham-102003039-1.0.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53f43ba6a0ebd41b33586633ad29091ccbcdb9f2ff53f4a77e5b3501a4aba702
|
|
| MD5 |
55d69dcf098d7b4eab5794d4464bdb4c
|
|
| BLAKE2b-256 |
e477de568fb86a32be616f1030d1cbba92178c0ea8db155b1e27eeb7be444146
|
File details
Details for the file Topsis_Saksham_102003039-1.0.0-py3-none-any.whl.
File metadata
- Download URL: Topsis_Saksham_102003039-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7f4847f97f42376172566b60a10105439880da109b9bd487d10aa2e1f8f2a7e
|
|
| MD5 |
d8587786f2ce510a26c166e7bf53f35e
|
|
| BLAKE2b-256 |
d40f2a01ba2c833bd39e5b3f80704ba309c48fb417dd5b844f43e88c8c892065
|