Skip to main content

A Python package to perform TOPSIS analysis

Project description

Topsis-Kunal-102216002

A Python package for TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) analysis.
This tool evaluates and ranks alternatives based on multiple criteria, considering their relative closeness to an ideal solution.

Installation

Use the package manager pip to install Topsis-Kunal-102216002.

  pip install Topsis-Kunal-102216002

Usage

Enter csv filename followed by .csv extentsion, then enter the weights vector with vector values separated by commas, then enter the impacts vector with comma separated signs (+,-) followed by the name of output.csv file where you want to store the the output file.

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

To view usage help, use

topsis /h

Example

sample.csv

A csv file showing data for different mobile handsets having varying features.

Attribute 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

weights vector = [ 0.25,0.25,0.25,0.25 ]

impacts vector = [ -,+,+,+]

Input

topsis sample.csv "0.25,0.25,0.25,0.25" "+,+,-,+" output.csv

Output

Attribute Price Storage Camera Looks Topsis Score Rank
M1 250 16 12 5 0.534276857 3
M2 200 16 8 3 0.308367769 5
M3 300 32 16 4 0.691632231 1
M4 275 32 8 4 0.534736584 2
M5 225 16 16 2 0.401046122 4

Other notes

  • The first column and first row are removed by the library before processing to eliminate indices and headers. Ensure that the CSV follows the format shown in sample.csv.
  • Ensure the CSV does not contain categorical values.

License

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_Kunal_102216002-4.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Kunal_102216002-4.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file Topsis_Kunal_102216002-4.0.1.tar.gz.

File metadata

  • Download URL: Topsis_Kunal_102216002-4.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for Topsis_Kunal_102216002-4.0.1.tar.gz
Algorithm Hash digest
SHA256 1d346910b6eae3d871e3459560c54bc640382ad68a4067592d54653aa7186a32
MD5 3f85021067bd4ae303a18219f6129967
BLAKE2b-256 fb1edba8514f6c2c35563dfac19660e4c6e59471e1443cc68ea2a7945daea0dd

See more details on using hashes here.

File details

Details for the file Topsis_Kunal_102216002-4.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Kunal_102216002-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9bf13fad64a6dbd0333d61ee1f879bf19fb6b5b01d30735b7fe56b9437465676
MD5 1faa4e53e37c1a6db044bbec99ad36c7
BLAKE2b-256 3c45c58413a4302cbcde7513b24187551427cea6dfd7f579af43afbbd7217d24

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