This is a topsis package of version 0.8
Project description
Topsis_Aditya_102003424
TOPSIS
Submitted By: Aditya Singh Rathore - 102003424.
Type: Package.
Title: TOPSIS method for multiple-criteria decision making (MCDM).
Version: 1.0.0.
Date: 2023-01-23.
Author: Aditya Singh Rathore.
Maintainer: Aditys Singh Rathore arathore_be20@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-Aditya-102003424
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.5 | 7 | 37 | 11.3 |
M2 | 0.8 | 0.6 | 7 | 46 | 13.4 |
M3 | 0.7 | 0.5 | 7 | 48 | 14 |
M4 | 0.9 | 0.8 | 7 | 44 | 13.2 |
M5 | 0.9 | 0.9 | 5 | 37 | 11.1 |
M6 | 0.9 | 0.6 | 3 | 67 | 18 |
M7 | 0.9 | 0.5 | 7 | 39 | 11.8 |
M8 | 0.9 | 0.9 | 5 | 46 | 13.2 |
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_Aditya_102003424-0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | feeddd3fe87fd9c93f1ad54bc16d4ac46a3e74d9186b8c76c974f46b0fd5bf2d |
|
MD5 | 877b636634a6f426d0d2836165221cb6 |
|
BLAKE2b-256 | 12eb4e5619b1b52a57bc4efff91aa1f03dda5944ebded3f21b4b15f547f486ba |
Hashes for Topsis_Aditya_102003424-0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aa8f810229d6ef0fe32c809aebc8d1489cac81965eb6316fad04eb3a3bdc187 |
|
MD5 | bb4b39f51bf7a44f49c9be6ab7d578a6 |
|
BLAKE2b-256 | 1dca05fefd6b99d09d324ece53f15a85068362687b1f51a7bff76dbe7969863c |