TOPSIS implementation for multi-criteria decision analysis
Project description
Topsis-Abhiraj-Singh-Jhajj-102217094
Topsis-Abhiraj-Singh-Jhajj-102217094 is a Python package that implements the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method for multi-criteria decision making. This tool is ideal for evaluating and ranking alternatives based on multiple criteria, which is essential in fields like supply chain management, finance, and engineering.
Installation
You can install Topsis-Abhiraj-Singh-Jhajj-102217094 directly from the Python Package Index using pip:
pip install Topsis-Abhiraj-Singh-Jhajj-102217094
Usage
Command Line Interface
To use the package from command line, you need to prepare your data in CSV or Excel format where the first column contains the names/labels of the alternatives, and the subsequent columns contain the criteria values.
Using the CLI program python 102217094.py data-1.xlsx "1,2,3,1,2" "+,+,-,+,+" 102217094-result.csv
Using the installed package topsis data.csv "1,2,3" "+,-,+" results.csv
Python Script Usage
from topsis_Abhiraj_102217094 import topsis_analysis
Perform TOPSIS analysis result = topsis_analysis('data.csv', '1,2,3,1,2', '+,+,-,+,+', 'result.csv')
Parameters
- Input file: CSV or Excel file with alternatives and criteria
- Weights: Comma-separated string of weights for each criterion (e.g., "1,2,3,1,2")
- Impacts: Comma-separated string of impacts for each criterion:
+indicates that higher values are better-indicates that lower values are better
- Output file: Path where results will be saved
Example
Given a dataset with 5 criteria (P1, P2, P3, P4, P5):
python 102217094.py 102217094-data.csv "1,2,3,1,2" "+,+,-,+,+" 102217094-result.csv
Features
- Easy integration with Pandas DataFrames
- Customizable weights and criteria impacts
- Automatic normalization and ranking of alternatives
- Command line interface for easy access and usage
- Support for both CSV and Excel input files
- Comprehensive error handling and validation
Repository
GitHub: abhirajsinghjhajj/Topsis_Abhiraj_Singh_Jhajj_102217094
Author
Abhiraj Singh Jhajj (102217094)
- Email: abhirajsinghjhajj@gmail.com
- GitHub: @abhirajsinghjhajj
License
This project is licensed under the MIT License - see the LICENSE.txt file for details.
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_abhiraj_singh_jhajj_102217094-1.0.6.tar.gz.
File metadata
- Download URL: topsis_abhiraj_singh_jhajj_102217094-1.0.6.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
863569edbe9cb6bd9be8cdb803813668956af2c4c732245ff2c659a22897d78a
|
|
| MD5 |
4cab5cf386e8496aa6119f87d584b180
|
|
| BLAKE2b-256 |
2819e4d2eea56a2ae5c94a8b5829c46ec026e02b5cb43926989e49747a63b5aa
|
File details
Details for the file topsis_abhiraj_singh_jhajj_102217094-1.0.6-py3-none-any.whl.
File metadata
- Download URL: topsis_abhiraj_singh_jhajj_102217094-1.0.6-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e42ef3e678e00d98e27d6eedfe65e7e644855d420ce5812f6f73654512213c53
|
|
| MD5 |
51817c407e0be9b08e0d3d067e6fa5b3
|
|
| BLAKE2b-256 |
e8213ed98da7f5498c189db2e896f66015f70579069056642676b8e0f67bb50d
|