TOPSIS package for MCDM problems
Project description
Topsis-Bhavuk-102303140
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: Bhavuk Mahajan
Roll No: 102303140
Installation
Use the package manager pip to install the package.
pip install Topsis-Bhavuk-102303140
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file topsis_bhavuk_102303140-0.0.4.tar.gz.
File metadata
- Download URL: topsis_bhavuk_102303140-0.0.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
988bf5fcb71c468ac5e8c498235355ccca92ed72383a18e0e51f97a4e22fbc58
|
|
| MD5 |
4a9f2649c6020c9727ae4ad5b03161d8
|
|
| BLAKE2b-256 |
5d4b5f872be323a6932bc21b0b103cedd3f847523bcde2d0bf6cbcf7ab230924
|
File details
Details for the file topsis_bhavuk_102303140-0.0.4-py3-none-any.whl.
File metadata
- Download URL: topsis_bhavuk_102303140-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fe922e482a9d85d94a2c871927639ca34dff12aacf40355884d551fe337e8b1
|
|
| MD5 |
0a2587f68c955340a31c1b3c3b8be6e1
|
|
| BLAKE2b-256 |
425e4da67d06fd9d2c32e717c22c65820aef1ea4414b4c9cff12677f41bb7db8
|