A Python package for implementing the TOPSIS algorithm.
Project description
Topsis-Soumya-102203802
Overview
Topsis-Soumya-102203802 is a Python package that implements the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method for multi-criteria decision-making. It is designed to help users rank alternatives based on their proximity to an ideal best and worst solution.
This package is built to assist decision-makers in evaluating multiple alternatives using several criteria, offering a simple interface for performing the TOPSIS analysis with flexibility for custom weights and impacts for decision criteria.
Installation
You can install Topsis-Soumya-102203802 from PyPI using pip:
pip install Topsis-Soumya-102203802
Additionally, make sure you have the required dependencies installed:
pip install pandas numpy pyexcel
Features
- TOPSIS Ranking: Computes the rankings for alternatives based on their similarity to the ideal solution.
- Custom Weights: Supports custom weights for each decision criterion.
- Custom Impacts: Allows specifying the impact of each criterion (maximize or minimize).
- CSV/Excel Input: Accepts input datasets in CSV or Excel format.
- Output: The package generates an output CSV or Excel file with two additional columns: Topsis Score and Rank.
- Command-Line and Programmatic Usage: Available both as a command-line tool and as a Python package for use in scripts.
Usage
Command Line Interface
topsis.py <InputDataFile> <Weights> <Impacts> <ResultFileName>
##Parameters:
InputDataFile: Path to input dataset (CSV/XLSX) Weights: Comma-separated criterion weights (e.g., "1,2,3") Impacts: Comma-separated criterion impacts ('+' for maximize, '-' for minimize) ResultFileName: Output file path for results
##Input Data Format ##File Requirements
- Must contain at least 3 columns
- First column: Names of alternatives
- Columns 2 onwards: Numeric values for criteria
##Output Format #The package generates a CSV file with the original data plus two additional columns:
- Topsis Score: Calculated similarity to ideal solution
- Rank: Final ranking of alternatives
##Prerequisites #Python 3.6 or higher ##Dependencies: pandas numpy pyexcel ##License MIT License
##Author Soumya (GitHub Profile)
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 Distributions
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_Soumya_102203802-1.0.1-py3-none-any.whl.
File metadata
- Download URL: Topsis_Soumya_102203802-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6ba2e3a6b9cf8cc600531a2a3dcbc38db36533880c2f4a4fd19283942b881f3
|
|
| MD5 |
25c2be28c4fc523c08f077a9b1ac1a1d
|
|
| BLAKE2b-256 |
8e26404bbbe4e4f69e9974e336fe4b867c6b8b30793fd96cb27c26745b7bd1c7
|