No project description provided
Project description
TOPSIS Package
TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) is a Python package that provides an implementation of the TOPSIS method for multi-criteria decision analysis. This package allows users to evaluate and rank alternative solutions based on a set of criteria.
Table of Contents
Introduction
Multi-criteria decision analysis (MCDA) is a method for making decisions when there are multiple criteria to consider. TOPSIS is one of the widely used MCDA techniques that helps in ranking alternatives based on their proximity to the ideal solution and their distance to the anti-ideal solution.
This package provides a Python implementation of the TOPSIS method, both as a Python module and a command line tool.
Installation
You can install TOPSIS using pip:
pip install topsis-package
To use TOPSIS in your Python code, import the topsis module:
python
Copy code
from topsis_package import topsis
# Your decision matrix
data = {...}
# Your weights and impacts
weights = [...]
impacts = [...]
# Run TOPSIS
result_df = topsis(data, weights, impacts)
# Display the results
print(result_df)
Command Line
TOPSIS also provides a command line interface for convenient usage:
topsis input.csv <weights> <impacts> result.csv
- input.csv: Path to the input CSV file containing the decision matrix.
- weights: Weights for each criterion separated by commas.
- impacts: Impacts for each criterion (+ or -) separated by commas.
- result.csv: Path to the output CSV file where the results will be saved.
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
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_debolinaghosh_102103365-0.2.0.tar.gz.
File metadata
- Download URL: topsis_debolinaghosh_102103365-0.2.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16ea4e5559219aea6a3589ad852bf3f4c6390b5b4e4adaa265ba392b292ace4d
|
|
| MD5 |
5ec51c5337c8c329836e4f56686a22e7
|
|
| BLAKE2b-256 |
3fe2194a67b7412eb68f3555d54e104f7e455f1f2bff000ea801a8a343fc9d48
|
File details
Details for the file topsis_debolinaghosh_102103365-0.2.0-py3-none-any.whl.
File metadata
- Download URL: topsis_debolinaghosh_102103365-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56ac316dd48a4b84d287d47b26bfc3ac13c8ccbbfe7bf023b4b458b9b187f906
|
|
| MD5 |
d6c1345efd509ee37c20b0de918b926b
|
|
| BLAKE2b-256 |
34c174f863bc78fb2866d08127f2cb416aee1f530d8b7b8687de0c5ec397b5f1
|