A Python package for Topsis implementation
Project description
Topsis-Atishay-102316056
A Python package to implement the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS).
Overview
TOPSIS is a multi-criteria decision analysis method that is based on the concept that the chosen alternative should have the shortest geometric distance from the positive ideal solution and the longest geometric distance from the negative ideal solution.
This package allows you to perform TOPSIS analysis on a dataset provided in a CSV file.
Installation
You can install the package using pip:
pip install Topsis-Atishay-102316056
Usage
You can use this package from the command line:
topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Arguments
- InputDataFile: Path to the input CSV file containing the data. The first column should be the object/alternative name (e.g., M1, M2, M3) and will not be used in the calculation. The remaining columns must be numeric.
- Weights: A comma-separated string of weights for the criteria (e.g., "1,1,1,2").
- Impacts: A comma-separated string of impacts for the criteria, either '+' or '-' (e.g., "+,+,-,+").
- ResultFileName: The name of the output CSV file where the results (including Topsis Score and Rank) will be saved.
Example
topsis data.csv "1,1,1,2" "+,+,-,+" result.csv
License
This project is licensed under the MIT License - see the LICENSE 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
File details
Details for the file topsis_atishay_102316056-1.0.0.tar.gz.
File metadata
- Download URL: topsis_atishay_102316056-1.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa10aa76d3644fce7e0a3bad4c8e16309be1daf9c2cd372a4c57c6274b73b3de
|
|
| MD5 |
da6e0c60d065575ebdb1d40271f4a568
|
|
| BLAKE2b-256 |
0589ad3823a3540b7cb80adbbab62cd3ed208148ecb5452f8ec3bef0826de536
|