Skip to main content

A Python package to find TOPSIS for MCDM (Multi-Criteria Decision Analysis Method)

Project description

Topsis

TOPSIS( Technique for order for preference by similarity to Ideal solution ) for MCDM (Multiple criteria decision making) in Python compiled by Pulkit Sanan, 102103239, TIET, Patiala.

Installation

Use the package manager pip to install. pip install topsis_Pulkit_102103239

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 (+,-) and enter the output file name followed by .csv extension.

python [InputDataFile as .csv] [Weights as a string] [Impacts as a string] [ResultFileName as .csv]

Example

topsis_Pulkit_102103239 sample.csv "1,1,1,1" "-,+,+,+" output.csv

Please Note That"

The first column and first row are removed by the library before processing, in attempt to remove indices and headers. So the csv MUST follow the format as shown in sample.csv shown in the Example section. The input data file MUST contain three or more columns. The second to last columns of the data file MUST contain NUMERIC values. The number of weights, impacts and columns (second to last) MUST be SAME. Impacts MUST either be '+' or '-'. Impacts and Weights MUST be separated by , (comma).

License

© 2024 Pulkit Sanan

This reopsitory is licensed under MIT License. See LICENSE for details.

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_Pulkit_102103239-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

topsis_Pulkit_102103239-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file topsis_Pulkit_102103239-1.0.0.tar.gz.

File metadata

  • Download URL: topsis_Pulkit_102103239-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for topsis_Pulkit_102103239-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e27539c3457b2fd5594e802ecab4b41e069cc9da81d67a8fda3376f72dd53087
MD5 27ef7be30b54dbca582849857dfb677a
BLAKE2b-256 248ba05f343ee0717f44968f36f17e99e5c9798810fe1cda01df4e3a8f7e3c42

See more details on using hashes here.

File details

Details for the file topsis_Pulkit_102103239-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_Pulkit_102103239-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69bb152576ed8ae9b6b14f77c106c93eeec8797e8e12c08ad62d7e3d6df8d6a7
MD5 cbcebc4b4e8344ed0a0ae54d91106ca0
BLAKE2b-256 63bff0304be3c782d177c7990024b57ba4d07d99da75e1222b8e840a302db84f

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