A TOPSIS implementation for multiple-criteria decision analysis
Project description
Topsis-Baneet-102203180
A Python package for implementing the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) method.
Installation
pip install Topsis-Baneet-102203180
Usage
You can use this package either through command line or as a Python module.
Command Line Usage
python -m topsis_baneet_102203180 input.csv "1,1,1,2" "+,+,-,+" result.csv
Python Module Usage
from topsis_baneet_102203180 import topsis
# Process TOPSIS
result = topsis("input.csv", "1,1,1,2", "+,+,-,+", "result.csv")
Input Format
-
Input file (CSV):
- First column: Object/Variable names
- Subsequent columns: Numeric values only
-
Weights: Comma-separated numeric values
- Example: "1,1,1,2"
-
Impacts: Comma-separated '+' or '-' values
- Example: "+,+,-,+"
Output
The program will generate a CSV file with:
- All original columns
- Additional 'Topsis Score' column
- Additional 'Rank' column
License
MIT License
Author
Baneet Singh
Project details
Release history Release notifications | RSS feed
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_baneetsingh_102203180-1.0.0.tar.gz.
File metadata
- Download URL: topsis_baneetsingh_102203180-1.0.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c99d50469b288d5ccb08e2efd822d06bf39cf7bbe86be926916523126d0624ae
|
|
| MD5 |
df5ae791a76283fb80cba3fa1da566f7
|
|
| BLAKE2b-256 |
305cc661e91135c8ad16a16d9c6ffb6ca3a16ebd578a59589989f82856967e75
|
File details
Details for the file Topsis_BaneetSingh_102203180-1.0.0-py3-none-any.whl.
File metadata
- Download URL: Topsis_BaneetSingh_102203180-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.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 |
85747d4667f6c8e87141728ce7a9de095618aba29099168e1c0693f617dd1f8a
|
|
| MD5 |
86a970e2246fedaa7c7d4530e77e70d1
|
|
| BLAKE2b-256 |
f5b5bb07f5378df7082495f3f0def64295640ce9d1a5f6abeb4cdd8a817a98a9
|