Skip to main content

A Python package to perform TOPSIS analysis

Project description

Topsis

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

Installation

pip install Topsis-Rohit-102203986

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

python 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

© 2025 Rohit Deepchandani

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_rohit_102203986-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Rohit_102203986-1.0.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file topsis_rohit_102203986-1.0.1.tar.gz.

File metadata

  • Download URL: topsis_rohit_102203986-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for topsis_rohit_102203986-1.0.1.tar.gz
Algorithm Hash digest
SHA256 faf4832064a33b03d586dab3f9197ec7988903dd9e4d914db3e480a770d59b93
MD5 f5ba1849a32a15a9be45e3bbff143edb
BLAKE2b-256 b38667b0f2ca318012adf2a29bf6c32343e9c3b7a9b6f350db7a5ace6ebe5fff

See more details on using hashes here.

File details

Details for the file Topsis_Rohit_102203986-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Rohit_102203986-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc64242e57f96071a78fd98961c22ff609ce6572751849456c0c4a0249d21eb2
MD5 64b9e3e1de795aeae418dd7e4bffa8c7
BLAKE2b-256 0b18bfb867e3ad09e0658f16de5498637d858d6da077b002fddf48c501cadf5b

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