TOPSIS implementation for multiple-criteria decision analysis
Project description
TOPSIS Implementation
A Python package that implements the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) method.
Installation
pip install Topsis-YourName-YourRollNumber
Usage
Command Line Interface
topsis-yourname input.csv "1,1,1,2" "+,+,-,+" output.csv
Parameters
-
Input file (
input.csv):- Must contain three or more columns
- First column is the object/variable name
- From 2nd to last columns contain numeric values only
-
Weights (
"1,1,1,2"):- Comma-separated numeric values
- Number of weights must match number of criteria
-
Impacts (
"+,+,-,+"):- Comma-separated '+' or '-' symbols
- Number of impacts must match number of criteria
- '+' indicates benefit criteria
- '-' indicates cost criteria
-
Result file (
output.csv):- Contains all columns from input file
- Adds two additional columns:
- Topsis Score
- Rank
Python Usage
from topsis_pkg import topsis
topsis("input.csv", "1,1,1,2", "+,+,-,+", "output.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 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_Kritik_102203771-0.1.0-py3-none-any.whl.
File metadata
- Download URL: Topsis_Kritik_102203771-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf5f3161b07585353bdb20e26986524edfaac1d56dbebf0cee1a8fe63bc40cb5
|
|
| MD5 |
4c9bd9687de8bc56c4cdef3c419e6cb3
|
|
| BLAKE2b-256 |
c5dd81cb2849db1e3d2f2145df7e56e0c758d1f4ddac43c9e28a7133e4f54164
|