A Python package for TOPSIS decision making
Project description
Topsis-Kunal-102303330
This project is a Python Command Line Implementation of TOPSIS (Technique for Order Preference by Similarity to Ideal Solution).
It allows you to rank alternatives based on multiple criteria using weights and impacts provided by the user.
Installation:
pip install topsis-102303330
🚀 Features
- Works with both
.csvand.xlsxfiles - Command-line based (as required)
- Performs all validation checks
- Handles file errors and invalid input
- Implements full TOPSIS mathematical procedure
- Outputs ranked result file with Topsis Score and Rank
What is TOPSIS?
TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) is a multi-criteria decision-making (MCDM) method.
The best alternative is the one that is:
- Closest to the ideal best solution
- Farthest from the ideal worst solution
📂 Input File Format
Your input file must be either:
.csvOR.xlsx
Format:
| Alternative | C1 | C2 | C3 | C4 | C5 |
|---|---|---|---|---|---|
| A1 | 0.67 | 0.45 | 6.5 | 42.6 | 12.56 |
| A2 | 0.60 | 0.36 | 3.6 | 53.3 | 14.47 |
| A3 | 0.82 | 0.67 | 3.8 | 63.1 | 17.1 |
⚠️ First column = Name/ID
⚠️ From second column onwards = Only numeric values
🖥️ How to Run
🔹 Syntax:
python topsis.py <InputFile> <Weights> <Impacts> <OutputFile>
Output File Structure:
| Alternative | C1 | C2 | C3 | C4 | C5 | Topsis Score | Rank |
|---|---|---|---|---|---|---|---|
| A1 | ... | ... | ... | ... | ... | 0.645 | 2 |
| A2 | ... | ... | ... | ... | ... | 0.782 | 1 |
| A3 | ... | ... | ... | ... | ... | 0.432 | 3 |
👨💻 Author
Kunal Sharma
B.Tech Student | Machine Learning & Full Stack Developer
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_kunal_102303330-1.0.1.tar.gz.
File metadata
- Download URL: topsis_kunal_102303330-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce49baebaac0274d0aae06cef39e7a0cff6fdeadb1d73811b6c1c203f9102ec5
|
|
| MD5 |
677224cab885cf1e880967e6c899a378
|
|
| BLAKE2b-256 |
60462866609f3fecc1f6843072f3736c2a0855c80f701f27cb3ae1f820d19c76
|
File details
Details for the file topsis_kunal_102303330-1.0.1-py3-none-any.whl.
File metadata
- Download URL: topsis_kunal_102303330-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2813714a44cf82840bfff9edaaa6c892f67d5ff24ce74bc0478acca83b472c6e
|
|
| MD5 |
a2a524143bff057788c5a624835745fc
|
|
| BLAKE2b-256 |
c990d3ac8709969ec7012a492511a9085c62c69aea7821c62ad63e52d7305f23
|