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-RONAK-101803137) 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-RONAK-101803137.topsis
topsis.topsis('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 Distribution

TOPSIS-RONAK-101803137-0.0.1.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file TOPSIS-RONAK-101803137-0.0.1.tar.gz.

File metadata

  • Download URL: TOPSIS-RONAK-101803137-0.0.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3

File hashes

Hashes for TOPSIS-RONAK-101803137-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3bbc5152baca9f13fee54b22e2764e1a79aec2f0df5099e6ce10288e599245d6
MD5 f5fae08be08e8a401265784ad668f938
BLAKE2b-256 b5b8af18008ba6d4e391898358c0bde766ff06136666d2b5744742568db34cde

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