Topsis_Kunal_102053007
TOPSIS
Submitted By: Kunal Madan - 102053007.
Type: Package.
Title: TOPSIS method for multiple-criteria decision making (MCDM).
Version: 1.0.0.
Date: 2022-01-22.
Author: Kunal Madan.
Maintainer: Kunal Madan kmadan_bemba20@thapar.edu.
Description: Evaluation of alternatives based on multiple criteria using TOPSIS method..
What is TOPSIS?
Technique for **Order **Preference by **Similarity to **Ideal **Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method. TOPSIS chooses the alternative of shortest Euclidean distance from the ideal solution, and greatest distance from the negative-ideal solution.
How to install this package:
pip install Topsis-Kunal-102053007
In Command Prompt
topsis data.csv "1,1,1,1,1" "+,+,-,+,-" result.csv
Input file (data.csv)
The decision matrix should be constructed with each row representing a Model alternative, and each column representing a criterion like Accuracy, R2, Root Mean Squared Error, Correlation, and many more.
| Model | P1 | P2 | P3 | P4 | P5 |
|---|---|---|---|---|---|
| M1 | 0.66 | 0.44 | 4.9 | 32.9 | 9.73 |
| M2 | 0.65 | 0.42 | 5 | 44.5 | 12.64 |
| M3 | 0.61 | 0.37 | 3.3 | 41.1 | 11.35 |
| M4 | 0.62 | 0.38 | 6.5 | 64.1 | 17.9 |
| M5 | 0.83 | 0.69 | 6.4 | 34.4 | 10.58 |
| M6 | 0.88 | 0.77 | 6.7 | 34.8 | 10.79 |
| M7 | 0.63 | 0.4 | 4.5 | 39.1 | 11.16 |
| M8 | 0.8 | 0.64 | 4.4 | 45.7 | 12.89 |
Weights (weights) is not already normalised will be normalised later in the code.
Information of benefit positive(+) or negative(-) impact criteria should be provided in impacts.
Output file (out.csv)
| Model | P1 | P2 | P3 | P4 | P5 | Topsis Score | Rank |
|---|---|---|---|---|---|---|---|
| M1 | 0.66 | 0.44 | 4.9 | 32.9 | 9.73 | 0.21189353869415917 | 6 |
| M2 | 0.65 | 0.42 | 5 | 44.5 | 12.64 | 0.3271776939542866 | 5 |
| M3 | 0.61 | 0.37 | 3.3 | 41.1 | 11.35 | 0.15153299377397803 | 8 |
| M4 | 0.62 | 0.38 | 6.5 | 64.1 | 17.9 | 0.5850881941527206 | 1 |
| M5 | 0.83 | 0.69 | 6.4 | 34.4 | 10.58 | 0.49092824102735394 | 3 |
| M6 | 0.88 | 0.77 | 6.7 | 34.8 | 10.79 | 0.5427136027309007 | 2 |
| M7 | 0.63 | 0.4 | 4.5 | 39.1 | 11.16 | 0.2008035122309426 | 7 |
| M8 | 0.8 | 0.64 | 4.4 | 45.7 | 12.89 | 0.48154813555267983 | 4 |
The output file contains columns of input file along with two additional columns having Topsis_score and Rank
Metadata
Release files for Topsis-Kunal-102053007 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Topsis_Kunal_102053007-0.3.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Topsis_Kunal_102053007-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / Topsis_Kunal_102053007-0.3.tar.gz
| Download URL | Topsis_Kunal_102053007-0.3.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bac5046ab013ac53b5bc8265d9e35e7c020e15536ab41119faf3bc18a5606134
|
|
BLAKE2b-256 checksum How to use checksums |
953fba01527a16f1519974b9f31c5c01c3206e4cfa3855b555534f59162f78d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|
Release files / Topsis_Kunal_102053007-0.3-py3-none-any.whl
| Download URL | Topsis_Kunal_102053007-0.3-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8923f8783dfd5b5b1dba306d02618cb389baa074eb00cbc4329d0c5de8c89fe6
|
|
BLAKE2b-256 checksum How to use checksums |
cb46d82f00a1bb32db101dd5714f7ae7bd2572a780248397749cd52e73774d15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|