Skip to main content

TOPSIS package for MCDM problems

Project description

topsis-Disha-102303141

A Python package for solving Multiple Criteria Decision Making (MCDM) problems using
TOPSIS (Technique for Order Preference by Similarity to Ideal Solution).


Project Information

For: Project-1 (UCS633)
Submitted by: Disha Malik
Roll No: 102303141


Installation

Use the package manager pip to install the package.

pip install Topsis-Disha-102303141

Usage

Enter csv filename followed by .csv extension, then enter the weights vector with values separated by commas, followed by the impacts vector with comma separated signs (+,-).

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

or vectors can be entered without quotes:

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

To view usage help:

topsis /h

Example

sample.csv

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

Model Storage (GB) Camera (MP) Price ($) Looks (out of 5)
M1 16 12 250 5
M2 16 8 200 3
M3 32 16 300 4
M4 32 8 275 4
M5 16 16 225 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

TOPSIS RESULTS

P-Score Rank 0.691632 1 0.534737 2 0.534277 3 0.401046 4 0.308368 5

Other Notes

The first column and first row are removed before processing.

CSV file must contain only numerical values.

No categorical values are allowed.

License

MIT License

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_disha_102303141-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

topsis_disha_102303141-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file topsis_disha_102303141-0.0.1.tar.gz.

File metadata

  • Download URL: topsis_disha_102303141-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for topsis_disha_102303141-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6d120f02749c4815a39607a38c351db173af7ce943986cf5086e150eaa3af3b0
MD5 b848cc1c0ec4944af953e851a348cf03
BLAKE2b-256 8f507b82b64b6cb9e7e3c6e30bec2163371d21feb2331f6b39c83e6d8cad0e39

See more details on using hashes here.

File details

Details for the file topsis_disha_102303141-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_disha_102303141-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54c87fce0038e69f38b8b5a4ca14b2d981b866b5845b9cd69bbc260b0741bb86
MD5 4b4a6d060f6ab360effd3918514d03eb
BLAKE2b-256 aadd9ecf6e8b21ffce44e228d57b69556d3f5708ed537f04046102f7be93926f

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