A Python package for TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution)
Project description
Topsis Python Package
Developed by: Aditya Pandey - 102217092
Overview
The Topsis (Technique for Order of Preference by Similarity to Ideal Solution) method is a popular multi-criteria decision-making technique. It helps to evaluate and select the best alternative from a set of options based on their proximity to the ideal solution. This Python package implements the Topsis method, making it easy to apply the technique on datasets with multiple criteria.
Features
- Computes Topsis scores based on input data, weights, and impacts.
- Ranks alternatives according to the Topsis methodology.
- Supports data input through Excel files.
- Provides an easy-to-use command-line interface for seamless integration.
Installation
To install the Topsis Python package, use pip with the following command:
pip install 102217092-Aditya-topsis
Usage
Command-Line Input
To use the Topsis package from the command line, run the following command:
python <program.py> <InputDataFile> <Weights> <Impacts> <ResultFileName>
- Input File Type: The input file must be an Excel file.
- Data Format: The second to last columns of the data file MUST contain numeric values.
- Impacts: Impacts should be either '+' (positive) or '-' (negative).
- Weights and Impacts: Weights and impacts should be enclosed in double quotes and separated by commas.
- Output: The output will include a 'Topsis Score' column and a 'Rank' column added to the data. The results will be saved to a CSV file specified in the command-line arguments.
Example
Command-Line Input Example
python 102217092.py data.csv "1,1,1,1,1" "+,+,-,+,-" 102217092-result.csv
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_aditya_102217092-0.5-py3-none-any.whl.
File metadata
- Download URL: Topsis_aditya_102217092-0.5-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
333f486af834650f7452c2251d1cbd0c2e4e5514e4cadba7830dc59a30ee806e
|
|
| MD5 |
f094fd440a51940c56beb9b673413512
|
|
| BLAKE2b-256 |
da355f050e1442f0e3b915fad87d7a4be13752fbe6d53a627238fcbacbbed7e1
|