A Python package for TOPSIS MCDM problems
Project description
TOPSIS-Khushnoor-102303219
Project: UCS654 – Project 1
Submitted by: Khushnoor Kaur
Roll No: 102303219
TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) is a multi-criteria decision-making (MCDM) method used to rank alternatives based on their distance from the ideal best and ideal worst solutions.
Installation
pip install topsis-khushnoor-102303219
Usage
This package provides a command-line tool called topsis.
topsis <InputDataFile> <Weights> <Impacts> <OutputResultFileName>
Example
topsis sample.csv "1,1,1,2" "+,+,-,+" result.csv
## Input Format
The input file must be a CSV file with:
* First column as alternative names
* Remaining columns as numerical criteria
Sample Input (sample.csv)
| Model | Storage space | Camera | Price | Looks |
|-------|---------------|--------|-------|-------|
| M1 | 16 | 12 | 250 | 5 |
| M2 | 16 | 8 | 200 | 3 |
| M3 | 32 | 16 | 300 | 4 |
## Output
The output file will contain the original columns plus the Topsis Score and Rank.
| P-Score | Rank |
|----------|------|
| 0.534277 | 2 |
| 0.308368 | 3 |
| 0.691632 | 1 |
## Other notes:
* The first column (alternatives) is ignored during TOPSIS computation.
* All criteria values must be numerical.
* Weights and impacts must match the number of criteria.
* Impacts must be either + (benefit) or - (cost).
## License:
[MIT](https://choosealicense.com/licenses/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
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_khushnoor_102303219-1.0.1.tar.gz.
File metadata
- Download URL: topsis_khushnoor_102303219-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82d03a611c300b46d7df332a65be3e691c269027ae7e820f95757d3418af85f3
|
|
| MD5 |
f889e692650808d22019955af71cc4b7
|
|
| BLAKE2b-256 |
be760e932306c9df67313b05dd71bc4ed2783c918b49260ce511942f9543f984
|
File details
Details for the file topsis_khushnoor_102303219-1.0.1-py3-none-any.whl.
File metadata
- Download URL: topsis_khushnoor_102303219-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbb5f3c3e8fa769c324a0bede80596c53668a3cd56b69a5b1ac83b52f3c8e61b
|
|
| MD5 |
a0fea1622afe515db3909a9afd48e54d
|
|
| BLAKE2b-256 |
214712bc135dd4fafc274d8b062228bc335aefa85ff3770aeb2784b1cf6bdda7
|