TOPSIS implementation using Python
Project description
TOPSIS-Shivam-102303881
TOPSIS-Shivam-102303881 is a Python package that implements the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method for multi-criteria decision making (MCDM).
TOPSIS is a widely used decision-making technique that ranks alternatives based on their relative distance from an ideal best solution and an ideal worst solution. This package allows users to easily apply the TOPSIS method on tabular data stored in CSV files using a simple command-line interface.
The package performs proper input validation, handles common user errors, and generates a ranked output with TOPSIS scores, making it suitable for academic assignments as well as practical decision-analysis tasks.
Features
- Command-line implementation of TOPSIS
- Supports multiple decision criteria
- Handles both beneficial (+) and non-beneficial (-) attributes
- Input validation for files, weights, and impacts
- Outputs TOPSIS score and rank for each alternative
Installation
Install the package directly from PyPI:
pip install TOPSIS-Shivam-102303881
Usage
Run the TOPSIS analysis from the command line:
topsis input.csv "1,1,1,2,1" "+,+,+,-,+" output.csv
Input File Format
- The input file must be a CSV file
- The first column should contain the names of alternatives
- All remaining columns must contain numeric values only
- The number of weights and impacts must match the number of criteria columns
Output File
The output CSV file contains:
- All original input columns
- A new column named Topsis Score
- A new column named Rank, where rank 1 indicates the best alternative
Author
Shivam Kumar Roll No: 102303881
License
This project is developed for academic and educational purposes.
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_shivam_102303881-0.0.1.tar.gz.
File metadata
- Download URL: topsis_shivam_102303881-0.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f498243aff538c26a715ba7fbada4e7426c316f206d15dcba297e4d88d3a0904
|
|
| MD5 |
e3bac93a04d80268c16e1b743680660f
|
|
| BLAKE2b-256 |
9f50f4a109f7c962ed5bfaa209953b7ea80c08358023de443e7f7113e320134a
|
File details
Details for the file topsis_shivam_102303881-0.0.1-py3-none-any.whl.
File metadata
- Download URL: topsis_shivam_102303881-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b427093de0159f8d6fe37b75cc7638f102a203e8c7d8861bffa3c29864363fb
|
|
| MD5 |
463bfef9e97fc123d4c15faab39360ec
|
|
| BLAKE2b-256 |
593c6174c395b02cc768d66efb0730c8101cd37d8289b0c7764d32b5e9acb85b
|