TOPSIS-Python
TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) implementation in Python.
Description
This package provides a simple implementation of the TOPSIS method for multi-criteria decision-making. It allows users to perform a TOPSIS analysis using a CSV file with criteria values, weights, and impacts.
Installation
Install the package via pip (after uploading to PyPI):
pip install topsis-python
Usage
Run from the command line:
python -m topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Example:
python -m topsis data.csv "1,2,1,1" "+,+,-,+" result.csv
Example Input File
| C1 | C2 | C3 | C4 |
|---|---|---|---|
| 250 | 16 | 12 | 5 |
| 200 | 16 | 8 | 3 |
| 300 | 32 | 16 | 4 |
| 275 | 24 | 10 | 3 |
Output
| C1 | C2 | C3 | C4 | Topsis Score | Rank |
|---|---|---|---|---|---|
| 250 | 16 | 12 | 5 | 0.63 | 2 |
| 200 | 16 | 8 | 3 | 0.37 | 4 |
| 300 | 32 | 16 | 4 | 0.78 | 1 |
| 275 | 24 | 10 | 3 | 0.52 | 3 |
Release files for topsis-ANMOL-BHATT-102217006 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| topsis_anmol_bhatt_102217006-1.0.4.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| topsis_ANMOL_BHATT_102217006-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / topsis_anmol_bhatt_102217006-1.0.4.tar.gz
| Download URL | topsis_anmol_bhatt_102217006-1.0.4.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e46fe5cbacafecffc9a8df1315f17a31b83286056a02a69f5f7195d771fb514
|
|
BLAKE2b-256 checksum How to use checksums |
38fd8037324d3c7df14c075ab36f2c1135ae3a4e63373b11f7a629fbabc49162
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Release files / topsis_ANMOL_BHATT_102217006-1.0.4-py3-none-any.whl
| Download URL | topsis_ANMOL_BHATT_102217006-1.0.4-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be14edc8e76f61cda5480a8d1695cf464e1af7550050ca67efbd0e14e16fdbe4
|
|
BLAKE2b-256 checksum How to use checksums |
a230f54029cca8896955311b266b54604a7bc5068b29c81f06a032e17b4b4a6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|