Skip to main content

Topsis package python

Project description

Topsis

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

Installation

Use the package manager pip to install.

pip install Topsis-Raghav-102103283 ``

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

© 2024 Raghav Garg

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_Raghav_102103283-0.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Raghav_102103283-0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file Topsis_Raghav_102103283-0.2.tar.gz.

File metadata

  • Download URL: Topsis_Raghav_102103283-0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for Topsis_Raghav_102103283-0.2.tar.gz
Algorithm Hash digest
SHA256 bfc4478a21531e01472d4858005ff8f2b2f0f153de83bb407a48345c9c1f2a09
MD5 d1cc65ba5fdf7d703073665daa06333d
BLAKE2b-256 f2be31525eb865b565a633081019ae574c9c100e1f1ad1868541b2c2ff3e26fe

See more details on using hashes here.

File details

Details for the file Topsis_Raghav_102103283-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Raghav_102103283-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3973892c2ff1374ef71a91d2d57cd1407edf526735c1c2996297f45d574df38c
MD5 c9b60b335d13b19001aadde18371957d
BLAKE2b-256 9b00e88b2ebb9e1b41acced7af70295e6aad19855bbc2c9355130ef190b6dc7a

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