Skip to main content

This is a topsis package of version 0.2

Project description

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

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_Kunal_102053007-0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Kunal_102053007-0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file Topsis_Kunal_102053007-0.2.tar.gz.

File metadata

  • Download URL: Topsis_Kunal_102053007-0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for Topsis_Kunal_102053007-0.2.tar.gz
Algorithm Hash digest
SHA256 e745964bbe9bf299a51eaf29898f8908ea23fa234105e19a4fe98db96481d8b4
MD5 2acb55ae54fe066c2fd5dfab2074dc5b
BLAKE2b-256 59be771edde4c393b9972fd2ead8502afc50823946440255ea55e194bcbb0045

See more details on using hashes here.

File details

Details for the file Topsis_Kunal_102053007-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Kunal_102053007-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fde5e8084bc9c20a8acc5a704e6f08900a16a9f516edcae25fd5c59052cbe554
MD5 044ad6b63612564fa0fea9cc33c97012
BLAKE2b-256 c12078cd61f1d30b219dfd3780baa81165f8e8c9f28e27cab6e268d5866aeabb

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