A Python package for implementing the TOPSIS multi-criteria decision analysis method.
Project description
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 |
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_anmol_bhatt_102217006-1.0.2.tar.gz.
File metadata
- Download URL: topsis_anmol_bhatt_102217006-1.0.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55e7f3b49e10a0abc7239a64ddcc89c3d21466414b7205feac008015b8fdd445
|
|
| MD5 |
4964e2a15df6967e354cef9cafd94a7d
|
|
| BLAKE2b-256 |
b80ab140baf9a6a191b27594a209d0af6bd246eaac25fbe3cb5488bfb304f928
|
File details
Details for the file topsis_ANMOL_BHATT_102217006-1.0.2-py3-none-any.whl.
File metadata
- Download URL: topsis_ANMOL_BHATT_102217006-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11d01cb0c9454c1d8953a681450ce51e94b8eb3561dfe20a2c58b88d2ef6c7af
|
|
| MD5 |
5a1cb491b7cc3fd9c742b2b20d053668
|
|
| BLAKE2b-256 |
17aec2e8a24038dd293ac6bff105facf19ddbb1bb199b7b5ef25b74188f1c979
|