Skip to main content

This package takes a .csv file as input and calculate topsis score of all entries and rank them according to the topsis score

Project description

TOPSIS implementation for Multi criteria decision making

The Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) is a multi-criteria decision analysis method, which is based on the concept that the chosen alternative should have the shortest geometric distance from the positive ideal solution (PIS)[4] and the longest geometric distance from the negative ideal solution (NIS).

The package (TOPSIS_KARTIK_101803702) contains the python script topsis.py and it further contains the function topsis_score which has to given 4 parameters -

1. Name of input .csv file.
2. Weights of all the attributes in the form of list.
3. Impact of all the parameters(either '+' or '-').
4. Name of output .csv file.

Note - All the column entries should be numeric only.

Example code :

import TOPSIS_KARTIK_101803702.topsis
topsis.topsis_score('inputFile.csv', [1,1,1,1], ['+','+','-','+',],'outputFile.csv')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

TOPSIS_KARTIK_101803702-0.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file TOPSIS_KARTIK_101803702-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: TOPSIS_KARTIK_101803702-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.2

File hashes

Hashes for TOPSIS_KARTIK_101803702-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4b290964ebc2c4641f66c8bf294b06b7a6872e5a50f7fc174249aed9630384a
MD5 845870ac2128f6914e5c55c1d0ba1bfd
BLAKE2b-256 7db341ae5cff5fff41c776e108d025533555bf96eb59381e5da111c693b33643

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