A Python package for TOPSIS multi-criteria decision analysis
Project description
Topsis-Yajat-102303185
A Python package for TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) multi-criteria decision analysis.
Installation
pip install Topsis-Yajat-102303185
Usage
Command Line
topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Example
topsis data.csv "1,1,1,2,1" "+,+,-,+,-" output.csv
In Python
from Topsis_Yajat_102303185 import topsis
topsis("data.csv", "1,1,1,2,1", "+,+,-,+,-", "output.csv")
Input File Format
The input CSV file should have the following format:
- First column: Object/Alternative names
- Second column onwards: Numeric criteria values
Example (data.csv):
Fund Name,P1,P2,P3,P4,P5
M1,0.67,0.45,6.5,42.6,12.56
M2,0.6,0.36,3.6,53.3,14.47
M3,0.82,0.67,3.8,63.1,17.1
Parameters
| Parameter | Description |
|---|---|
| InputDataFile | Path to input CSV file |
| Weights | Comma-separated weights (e.g., "1,1,1,2,1") |
| Impacts | Comma-separated impacts, + or - (e.g., "+,+,-,+,-") |
| ResultFileName | Output CSV file path |
Output
The output CSV file contains the original data with two additional columns:
- Topsis Score: The calculated TOPSIS score (0-1)
- Rank: Rank based on the score (1 = best)
License
MIT License
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_yajat_102303185-1.0.0.tar.gz.
File metadata
- Download URL: topsis_yajat_102303185-1.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3885b6a5376a092a8f7795962e3aac0ede72b37457d46a275dd79ace2a79b64
|
|
| MD5 |
c975ae61df1578b2a88adf6ae5acb6df
|
|
| BLAKE2b-256 |
e926eb8ae2b9d0d1cf1bc76f1a3af191297af780c6fe6fc0ab0085e920339917
|
File details
Details for the file topsis_yajat_102303185-1.0.0-py3-none-any.whl.
File metadata
- Download URL: topsis_yajat_102303185-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1522b4a37b905a2b025e432a5d7affe5b5feb7fd271de1baa5fd274fc36bdeed
|
|
| MD5 |
f40b3f921081944193fb654b71fde1c6
|
|
| BLAKE2b-256 |
079e1aad92b4b465c1e7af0798a709eff645683fa9a496bb48cd3cdcfe0b6126
|