A Python package to find TOPSIS for multi-criteria decision analysis method
Project description
TOPSIS-Python
Submitted By: Sanyam Goyal 102297005
What is TOPSIS
Technique for Order Preference by Similarity to Ideal Solution (TOPSIS), is a decision-making method used in multi-criteria decision analysis. It is a mathematical technique that helps in ranking and selecting the best alternative from a set of options based on their proximity to an ideal solution. Check out more information here:wikipedia.
How to use this package:
TOPSIS-SANYAM_GOYAL-102297005 can be run as in the following example:
In Command Prompt to run the code:
python topsis input_data.csv "1,1,1,1" "+,+,-,+" output_data.csv
Sample dataset
The decision matrix (a) should be constructed with each row representing a ID, and each column representing a criterion like Features
| ID | Feature1 | Feature2 | Feature3 | Feature4 |
|---|---|---|---|---|
| 1 | 2 | 5 | 8 | 3 |
| 2 | 3 | 6 | 9 | 4 |
| 3 | 5 | 8 | 2 | 7 |
| 4 | 6 | 9 | 3 | 8 |
Output
ID,Feature1,Feature2,Feature3,Feature4,Topsis Score,Rank
1,2,5,8,3,0.33629008441513597,3
2,3,6,9,4,0.26542732311540135,4
3,5,8,2,7,0.7345726768845987,1
4,6,9,3,8,0.6637099155848639,2
The rankings are displayed in the form of a table using a package 'tabulate', with the 1st rank offering us the best decision, and last rank offering the worst decision making, according to TOPSIS method.
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-SANYAM_GOYAL-102297005-0.0.1.tar.gz.
File metadata
- Download URL: TOPSIS-SANYAM_GOYAL-102297005-0.0.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f4066f99595289373c7dfc7a47a1c797d98073005db378e52080b349561a61b
|
|
| MD5 |
c17dc6c554e5fcde291b893a52f0e0eb
|
|
| BLAKE2b-256 |
de93c54bedacab672d801bd39dcfb969225b8d3601530b0981780e9887ecc219
|
File details
Details for the file TOPSIS_SANYAM_GOYAL_102297005-0.0.1-py3-none-any.whl.
File metadata
- Download URL: TOPSIS_SANYAM_GOYAL_102297005-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5d09823432a2cc8ef37e5daa9c98b5b4fbbea794f424a6ebabba566e762491d
|
|
| MD5 |
8dc5c69fb48b34d76ca7b420da7d9b8b
|
|
| BLAKE2b-256 |
cb7b9de7049b29d19bc9c128479e7f90f36182390d87bdda2cdd692ac5b8eea6
|