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 102217006-topsis 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| 102217006_topsis-1.0.5.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 102217006_topsis-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / 102217006_topsis-1.0.5.tar.gz
| Download URL | 102217006_topsis-1.0.5.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
539e8e87c0e474cdaef0c73ba9a02a8cd9e78af094353fa714ceecd6454470e7
|
|
BLAKE2b-256 checksum How to use checksums |
431a6bcb35488aba3b2d5e28f708443a7879b1f58ebf79093cf4b5c584e60fd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Release files / 102217006_topsis-1.0.5-py3-none-any.whl
| Download URL | 102217006_topsis-1.0.5-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
137e280339d2506988b6d28a8ce43dbf82df186ba913ad4891d017862baa723d
|
|
BLAKE2b-256 checksum How to use checksums |
dbe58e8343c847a5ebb7819289c2d126e486140074cbc0856cbdd3a632032c7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|