Skip to main content

Package to calculate the TOPSIS Score and Rank

Project description

Topsis-Sanyam-10193481

A package to implement Technique for Order Performance by Similarity to Ideal Solution (TOPSIS) for dealing with multi-attribute or multi-criteria decision making (MADM/MCDM) problems in the real world.

How to install

This package is available through PyPi and can be installed via the following command:

$ pip install Topsis-Sanyam-101903481

Usage

To implement TOPSIS, run the following command in the terminal:

$ topsis <inputFileName> <weights> <impacts> <outputFileName>

inputFileName: CSV input file containing atleast three columns. First column must be the object/variable name and other columns must contain numeric values only.

weights : comma separated numeric values enclosed between "" or ''. Number of weights must be equal to the number of attributes/criteria (2nd to last column)

impacts : comma separated '+' or '-' values enclosed between "" or ''. Number of impacts must be equal to the number of attributes/criteria (2nd to last column)

outputFileName : CSV output file which will contain all the columns of inputs file and two additional columns having TOPSIS Score and Rank

Example

$ topsis sample.csv "0.25,0.25,0.25,0.25" "-,+,+,+" result.csv

Input File - sample.csv

Model Price Storage Camera Looks
M1 250 16 12 5
M2 200 16 8 3
M3 300 32 16 4
M4 275 32 8 4
M5 225 16 16 2

Output File - result.csv

Model Price Storage Camera Looks TOPSIS Score Rank
M1 250 16 12 5 0.5342768571 3
M2 200 16 8 3 0.3083677687 5
M3 300 32 16 4 0.6916322312 1
M4 275 32 8 4 0.5347365844 2
M5 225 16 16 2 0.4010461215 4

License

© 2022 Sanyam Sharma

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-Sanyam-101903481-1.0.1.tar.gz (3.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_Sanyam_101903481-1.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Sanyam-101903481-1.0.1.tar.gz.

File metadata

  • Download URL: Topsis-Sanyam-101903481-1.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for Topsis-Sanyam-101903481-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fde70bef228c933708d8e80ca31c6ad424ab31927a82f40fd305682419f22b0e
MD5 bcb660d0088959227c7f921e539e0094
BLAKE2b-256 5339d686db3decd74b6af53cef11d8dd5ccd7ab06f5e85823b0bbb4428d82444

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Topsis_Sanyam_101903481-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for Topsis_Sanyam_101903481-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8bec186fa02817caed2e6c7ec044220c5653c6c14c3012c0912ce2b55457c0a
MD5 de43355718580b28e5b34585ec39489d
BLAKE2b-256 26f71caa9e1d31fa94917eb9431f99ff0a4e18aaedf8378d9ec1346a20d995d8

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