A Python package to implement the TOPSIS decision-making method.
Project description
TOPSIS Package
Overview
This project implements a Python package for performing the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) method. TOPSIS is a multi-criteria decision-making (MCDM) approach used to rank and select among various alternatives based on their distances from an ideal and a negative-ideal solution.
Features
- Accepts CSV input files with multi-criteria data.
- Supports user-defined weights and impacts for each criterion.
- Outputs a ranked list based on the TOPSIS evaluation.
- Error handling for invalid input files, weights, and impacts.
Installation
pip install 102203551-topsis
Usage
Run the package from the command line:
Syntax
python -m topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Example
python -m topsis 102203551-data.csv "1,1,1,2,3" "+,+,-,+,+" 102203551-result.csv
Parameters
<InputDataFile>: Path to the CSV file containing the decision matrix.<Weights>: Comma-separated weights for each criterion (e.g.,1,2,1,1).<Impacts>: Comma-separated impacts for each criterion (+for benefit,-for cost).<ResultFileName>: Name of the output file where results will be saved.
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 102203551_topsis-1.0.5.tar.gz.
File metadata
- Download URL: 102203551_topsis-1.0.5.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0e834915704ba8bc5c707bf749f3cf9e7bb0b469e2339ef1cf4c1f974ee6b50
|
|
| MD5 |
84a9ff8c16dab66be8ba709cad8b1c0f
|
|
| BLAKE2b-256 |
c4eadb69084a7a817cb9f8be20f9d3e483c73814b45b28c3cf125d84299a9155
|
File details
Details for the file 102203551_topsis-1.0.5-py3-none-any.whl.
File metadata
- Download URL: 102203551_topsis-1.0.5-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
168b72c2efbc2bbebf4c4f71e2de689ab15322434bfa4c8c04ad15a3432bf938
|
|
| MD5 |
227416bddfef894240d1f31c7dd2dd12
|
|
| BLAKE2b-256 |
f47b6a0a887ef3d232b81e9bf2ea26841dd227b0400ed065e974d2d775d1615e
|