Skip to main content

It's a package that calcuates Topsis score and ranks accordingly

Project description

topsis_dilmanpreet_101903506

TOPSIS

Submitted By: Dilmanpreet Singh.
Roll Number: 101903506.
Type: Package.
Title: TOPSIS for multiple-criteria decision making (MCDM).
Version: 1.0.
Date: 2022-2-24.

Description: Evaluation of alternatives based on multiple criteria using TOPSIS method..


What is TOPSIS?

TOPSIS or Technique for Order Preference by Similarity to Ideal Solution is a method of compensatory aggregation that compares a set of alternatives by identifying weights for each criterion, normalising scores for each criterion and calculating the geometric distance between each alternative and the ideal alternative, which is the best score in each criterion.


How to install this package:

>> pip install topsis-dilmanpreet-101903506

In Command Prompt

>> topsis data.csv "1,1,2,1,1" "+,-,+,+,-" result.csv

Process

First we create an evaluation matrix which consists of m alternatives and n criterias, with the intersection of each alternative and criteria. Then we move to the preprocessing phase. We then normalize the matrix using norm. Weighted normalised decision matrix is then calculated. We then determine the best and worst alternatives. After that, we calculate the euclidean distance between the target alternative and the worst condition. Finally, the similarity to the worst condition checked and the alternatives are ranked according to the final performance scores, awarding lower rank to higher performance score.

Input file (data.csv)

input


Output -- (result.csv)

result


The output file contains columns of input file along with two additional columns for 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_dilmanpreet_101903506-1.2.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file topsis_dilmanpreet_101903506-1.2.tar.gz.

File metadata

  • Download URL: topsis_dilmanpreet_101903506-1.2.tar.gz
  • Upload date:
  • Size: 4.4 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.4 CPython/3.9.6

File hashes

Hashes for topsis_dilmanpreet_101903506-1.2.tar.gz
Algorithm Hash digest
SHA256 04fbc98d97c7671776dc350a8f21eda39cf6c578a24559b272f6639b059b32c9
MD5 0e66f73627a2956dbbb9d3efde3fbb93
BLAKE2b-256 bdc6347964b293232f178561f46c17b14f2b71ff6e620083d3685226032618f5

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