Skip to main content

Package to calculate Topsis Score and Rank them accordingly

Project description

Topsis_Ritwik

TOPSIS

Created By: Ritwik Khanna. Type: Package.

Title: TOPSIS method for multiple-criteria decision making (MCDM).

Version: 1.2.0.

Author: Ritwik Khanna.

Maintainer: Ritwik Khanna khannaritwik.rk@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 Topsis-Ritwik-101917131

In Command Prompt

>> python topsis.py data.csv "1,1,1.5,1,2" "+,+,-,+,-" 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.84 0.71 6.7 42.1 12.59
M2 0.91 0.83 7.0 31.7 10.11
M3 0.79 0.62 4.8 46.7 13.23
M4 0.78 0.61 6.4 42.4 12.55
M5 0.94 0.88 3.6 62.2 16.91
M6 0.88 0.77 6.5 51.5 14.91
M7 0.66 0.44 5.3 48.9 13.83
M8 0.93 0.86 3.4 37.0 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.84 0.71 6.7 42.1 12.59 0.4295 5
M2 0.91 0.83 7.0 31.7 10.11 0.5055 4
M3 0.79 0.62 4.8 46.7 13.23 0.5358 3
M4 0.78 0.61 6.4 42.4 12.55 0.4185 6
M5 0.94 0.88 3.6 62.2 16.91 0.5616 2
M6 0.88 0.77 6.5 51.5 14.91 0.3983 8
M7 0.66 0.44 5.3 48.9 13.83 0.4134 7
M8 0.93 0.86 3.4 37.0 10.55 0.7332 1

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

Topsis-Ritwik-101917131-1.2.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Topsis_Ritwik_101917131-1.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Ritwik-101917131-1.2.0.tar.gz.

File metadata

  • Download URL: Topsis-Ritwik-101917131-1.2.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.3

File hashes

Hashes for Topsis-Ritwik-101917131-1.2.0.tar.gz
Algorithm Hash digest
SHA256 1000afbbc77e8d09c0fc69952d7a3d8254c5d0b073c4079652ffb8016edbafa3
MD5 35acb3d4e5a1e04f98b3333484208ead
BLAKE2b-256 32238459e89bf3779f400c61ef555e398af397b0f7802e450d2e34f4e5ea2737

See more details on using hashes here.

File details

Details for the file Topsis_Ritwik_101917131-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: Topsis_Ritwik_101917131-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.3

File hashes

Hashes for Topsis_Ritwik_101917131-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cde806e511d31defe579e696e2cb3b54e669e3136251879aeec3d76fa2f28e28
MD5 46d6d40768b8c9dbf7910829d929184c
BLAKE2b-256 b1acdab3c9ba6699ea027fb58122aa59d1bdc92c2384e6b26bc52767ddf01e43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page