This is a topsis package of Deepankar Varma version 0.16
Project description
Topsis_Deepankar_Varma_102003431
TOPSIS
Submitted By: Deepankar Varma-102003431.
Type: Package.
Title: TOPSIS method for multiple-criteria decision making (MCDM).
Version: 0.0.7.
Date: 2022-01-29.
Author: Deepankar Varma.
Maintainer: Deepankar Varma satwikdpshrit@gmail.com.
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 pip install topsis-Deepankar-102003431==0.0.1
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.7 | 0.71 | 6.7 | 42.1 | 12.59 |
M2 | 0.8 | 0.83 | 7 | 31.7 | 10.11 |
M3 | 0.7 | 0.62 | 4.8 | 46.7 | 13.23 |
M4 | 0.9 | 0.61 | 6.4 | 42.4 | 12.55 |
M5 | 0.9 | 0.88 | 3.6 | 62.2 | 16.91 |
M6 | 0.9 | 0.77 | 6.5 | 51.5 | 14.91 |
M7 | 0.9 | 0.44 | 5.3 | 48.9 | 13.83 |
M8 | 0.9 | 0.86 | 3.4 | 37 | 10.55 |
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 (result.csv)
Model | P1 | P2 | P3 | P4 | P5 | Topsis Score | Rank |
---|---|---|---|---|---|---|---|
M1 | 0.7 | 0.5 | 7 | 37 | 11.3 | 0.28016 | 5 |
M2 | 0.8 | 0.6 | 7 | 46 | 13.4 | 0.8292 | 1 |
M3 | 0.7 | 0.5 | 7 | 48 | 14 | 0.17536 | 8 |
M4 | 0.9 | 0.8 | 7 | 44 | 13.2 | 0.25 | 7 |
M5 | 0.9 | 0.9 | 5 | 37 | 11.1 | 0.56483 | 3 |
M6 | 0.9 | 0.6 | 3 | 67 | 18 | 0.27313 | 6 |
M7 | 0.9 | 0.5 | 7 | 39 | 11.8 | 0.55075 | 4 |
M8 | 0.9 | 0.9 | 5 | 46 | 13.2 | 0.65029 | 2 |
The output file contains columns of input file along with two additional columns having *Topsis_score* and *Rank*
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
Built Distribution
Hashes for Topsis_Deepankar_Varma_102003431-0.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b30dadb21b1322b167b9843f1e6592232c6ab5c62da4486ac786e648d39945c2 |
|
MD5 | e8f6a2c18aa131d7c8a44b9afef6a79b |
|
BLAKE2b-256 | f432a0b37605f281a2fa1d79161d202de0fbc89c0a6db8b1196cc36ae2e9a4c2 |
Hashes for Topsis_Deepankar_Varma_102003431-0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bea35bba390bac60e3943530843623a7c8b29ada9a8f756fd9ded2a028b78098 |
|
MD5 | 593b49c99fa9a7c994c0def83410d9c5 |
|
BLAKE2b-256 | 432dc26558f38c20f92b29869eb12e29aff43882904e8abb67473a465d04f6ad |