A Python package for TOPSIS method
Project description
Topsis-Gurdarshan-102303217
Topsis-Gurdarshan-102303217 is a Python library for dealing with Multiple Criteria Decision Making (MCDM) problems by using the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS).
Installation
Use the package manager pip to install Topsis-Gurdarshan-102303217.
pip install Topsis-Gurdarshan-102303217
Usage
Enter csv filename followed by .csv extension, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma separated signs (+,-).
topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Example
sample.csv
A csv file showing data for different mobile handsets having varying features.
| Model | Storage space(in gb) | Camera(in MP) | Price(in $) | 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 |
Input:
topsis sample.csv "1,1,1,1" "+,-,+,+" result.csv
Output:
TOPSIS RESULTS
-----------------------------
P-Score Rank
1 0.534277 3
2 0.308368 5
3 0.691632 1
4 0.534737 2
5 0.401046 4
The output file will contain the original data with two additional columns: Topsis Score and Rank.
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
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_gurdarshan_102303217-1.0.4.tar.gz.
File metadata
- Download URL: topsis_gurdarshan_102303217-1.0.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
528bd55b12bda4457a980deeb71b65efd4456cc9d908d74249d5d11fa7ea4c6a
|
|
| MD5 |
6320c841552b9518fe0111a38899aeae
|
|
| BLAKE2b-256 |
5ec987676b68c2ba459cef2243095b35a4afdee7af6f12975c4a3a7508a33288
|
File details
Details for the file topsis_gurdarshan_102303217-1.0.4-py3-none-any.whl.
File metadata
- Download URL: topsis_gurdarshan_102303217-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69f56b94cc17dbebdc52e2a6915d55090547d7dbc1253bd11a1542f27fee22e9
|
|
| MD5 |
257611bba9140765c00bf4647d55a472
|
|
| BLAKE2b-256 |
e2441f9ce3f11fa3da866cd948e790a9998849e786fc83cbe1a0d66a4cc28174
|