Skip to main content

A Python package to implement Topsis

Project description

Topsis-Tanishq-102003205

Topsis analysis of a csv file in python

About Topsis

It 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. An assumption of TOPSIS is that the criteria are monotonically increasing or decreasing. Normalisation is usually required as the parameters or criteria are often of incongruous dimensions in multi-criteria problems.

Installation

pip install Topsis-Tanishq-102003205

Usage

Enter csv filename followed by .csv extentsion, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma separated signs (+,-).

topsis 102003205-data.csv "1,1,1,1,1" "+,+,+,+,+" output.csv

Rank 1 signifies best decision.

Other

The csv file (from 2nd column to last column) should not contain non-numeric values. The first column and first row are dropped in processing the data.

License

© 2023 Tanishq Singla MIT

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-Tanishq-102003205-1.1.1.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

Topsis_Tanishq_102003205-1.1.1-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

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