A Python implementation of the TOPSIS method for multi-criteria decision making
Project description
TOPSIS Implementation in Python
Course: UCS654 Predictive Analytics using Statistics
Assignment: Assignment-1 (TOPSIS)
Author: Sartaj Singh Virdi
Roll Number: 102303259
About the Project
This project provides a Python implementation of the
TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method.
TOPSIS is a multi-criteria decision-making (MCDM) technique used to rank alternatives based on their distance from the ideal best and ideal worst solutions.
Installation (User Manual)
This package requires Python 3.7 or higher.
Dependencies
- pandas
- numpy
Package listed on PyPI: https://pypi.org/project/topsis-mcdm-tool/
Install the package using pip:
pip install topsis-mcdm-tool
Usage
Run the following command in the Command Prompt / Terminal:
topsis <inputFile> <weights> <impacts> <outputFile>
Example
topsis sample.csv "1,1,1,1" "+,+,-,+" result.csv
Parameters
- inputFile: CSV or Excel file containing data
- weights: Comma-separated weights for each criterion
- impacts: + for benefit, - for cost criteria
- outputFile: Output CSV/Excel file with scores and ranks
Sample Input Format
Model,Price,Performance,Camera,Battery
A,25000,8,7,4000
B,30000,9,8,4500
C,20000,7,6,3800
Output Columns
- Topsis Score: Closeness coefficient
- Rank: Ranking of alternatives
Project Structure
topsis-mcdm-tool/
topsis/
__init__.py
topsis.py
sample.csv
output.csv
setup.py
README.md
License
This project is released under the MIT License.
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_decision_analysis-1.0.1.tar.gz.
File metadata
- Download URL: topsis_decision_analysis-1.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9615d3808f440724acdcde2e01f940a53943bf42ea3cd905c05243ac894726b
|
|
| MD5 |
baf1a445abd1160d49715748956d48af
|
|
| BLAKE2b-256 |
a3731ae1baa7ec0afdff15cf8bcc87194e0a5eced0f7a0f076129adc0bb6d864
|
File details
Details for the file topsis_decision_analysis-1.0.1-py3-none-any.whl.
File metadata
- Download URL: topsis_decision_analysis-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c520a6c5eeb02cf06048c3844d110590dadd91fcff352fc57b448845d2702b66
|
|
| MD5 |
26974992df63aec7d880007f8e1c6aed
|
|
| BLAKE2b-256 |
b176d28a128bd67468d6f02382220298474237ce031b8a21616a40df09ff4b87
|