Evaluation of alternatives based on multiple criteria using TOPSIS method.
Project description
Topsis_Pranav_102003432
TOPSIS
Submitted By: Pranav Singh - 102003432.
Type: Package.
Title: TOPSIS method for multiple-criteria decision making (MCDM).
Version: 1.0.0.
Date: 2022-01-22.
Author: Pranav Singh.
Maintainer: Pranav Singh psingh2_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-Pranav-102003432
In Command Prompt
>> Topsis-Pranav-102003432 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_Pranav_102003432-0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07222ec79363b257af6160c5bfefb42815036b20c63071dcc4b76deca6582b0a |
|
MD5 | 58fb75381a3fc3be1a37ae04f8a6cfac |
|
BLAKE2b-256 | 4f6284d103b978a78574d2e50f780ab8fc99e015c4521c86802adf1b11d20498 |
Hashes for Topsis_Pranav_102003432-0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d92720d58e7f67305100de84f39f6464113a85e703ce06014c28233873cb2a08 |
|
MD5 | 263936ad00165eae4ddeb6d030a257f6 |
|
BLAKE2b-256 | edcb0d4adfe4a277807aa0215ac30e90f5ed63bf22dce5cef2e130a46004ec5d |