A Python package for TOPSIS multi-criteria decision making
Project description
102203236_Topsis
Overview
TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) is a multi-criteria decision-making (MCDM) method used for ranking and selecting alternatives based on multiple criteria. This Python package allows users to easily apply the TOPSIS method to their datasets.
Features
- Reads data from an Excel file.
- Automatically normalizes the data.
- Applies user-defined weights and impacts to criteria.
- Computes the TOPSIS score and ranks alternatives.
- Outputs the final decision-making table with rankings.
Installation
Install the package using pip:
pip install 102203236_Topsis
Usage
Import the package
from topsis import Topsis
Example
# Importing the package
from topsis import Topsis
# Define the input parameters
filename = "data.xlsx"
impacts = ['+','+','+','-','+']
weights = [0.25, 0.25, 0.25, 0.25, 0.25]
# Run TOPSIS
result = Topsis(filename, impacts, weights).get_result()
# Print the ranked result
print(result)
Expected Input Format
The input Excel file should contain numeric data for decision-making criteria. An example format:
| Fund Name | Criterion 1 | Criterion 2 | Criterion 3 | Criterion 4 | Criterion 5 |
|---|---|---|---|---|---|
| Fund A | 250 | 3.5 | 1200 | 8 | 85 |
| Fund B | 275 | 4.0 | 1150 | 7 | 90 |
| Fund C | 260 | 3.8 | 1250 | 6 | 88 |
Output Format
The output DataFrame includes the original data with additional columns:
- Score: Computed TOPSIS score.
- Rank: Final ranking based on the score.
Dependencies
This package requires:
pandasnumpy
These dependencies will be automatically installed when using pip install 102203236_Topsis.
License
This project is licensed under the MIT License.
Contributing
Pull requests are welcome! If you have suggestions or improvements, feel free to submit an issue or PR.
Author
- Name: Pranav Khurana
- GitHub: https://github.com/PranavKhurana117?tab=repositories
- Email: pranavkhurana117@gmail.com
Enjoy using the TOPSIS package! 🚀
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 102203236_topsis-0.0.1.tar.gz.
File metadata
- Download URL: 102203236_topsis-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e35799cd08fa9dc362b693bdd8c02921765945b1cafb4376a8aa2c3e1af822a
|
|
| MD5 |
dcc18b180ddefe0e080587b215fdfa86
|
|
| BLAKE2b-256 |
516e992040e14f47be1aaf4580ac6a7bf81a2eae6664b62ab28b45ecb9368183
|
File details
Details for the file 102203236_Topsis-0.0.1-py3-none-any.whl.
File metadata
- Download URL: 102203236_Topsis-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab3fcdc8661555f610ba111991028e8d3f883f3b211253d0153367cf7ca84137
|
|
| MD5 |
58f48593fcdb43d521b6a12ced4ccfa4
|
|
| BLAKE2b-256 |
c0c5a972e7642d78c1b419a09b106906ccb48b5d818209e95916482f64c89df9
|