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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file Topsis-Tanishq-102003205-1.1.1.tar.gz.

File metadata

File hashes

Hashes for Topsis-Tanishq-102003205-1.1.1.tar.gz
Algorithm Hash digest
SHA256 899ddede7f12eec05792fdae0258e8ac7600d5b42368d96847458556366d97c5
MD5 0ad92812d11b51d7c1c1d78c98ae6e3a
BLAKE2b-256 5522f23051497054c7a8d33a03866d71cfbdf3de5fecd07416add29acdce0961

See more details on using hashes here.

File details

Details for the file Topsis_Tanishq_102003205-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Tanishq_102003205-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3441646758a60d5bda27efda9b84d75aedcccc20966dc5a65368f881727169a6
MD5 6aee522f20eb1ceb6a2f203c656333b1
BLAKE2b-256 e9516f85ade76d8599f0008494f231e93a24b528786152d4ae52a9235e63f509

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