TOPSIS CLI tool for multi-criteria decision making
Project description
Topsis-Lakshay-102303872
A Python package that implements TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) as a command-line tool.
Installation
Install the package from PyPI using pip:
pip install Topsis-Lakshay-102303872
Command Line Usage
After installation, the TOPSIS program can be executed using the topsis command.
topsis <InputDataFile> <Weights> <Impacts> <OutputResultFileName>
Example
topsis data.csv "1,1,1,2,1" "+,+,-,+,-" result.csv
Input File Format
The input file must be a CSV file with:
- First column containing alternative names (non-numeric)
- Remaining columns containing 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.60,0.36,3.5,53.3,14.47
M3,0.82,0.67,3.8,63.1,17.10
Output File Format
The output CSV file contains all original columns along with:
- Topsis Score
- Rank
A higher Topsis Score indicates a better alternative.
Validations Performed
- Correct number of command-line arguments
- Input file existence check
- Minimum of three columns in input file
- Numeric values in criteria columns
- Number of weights equals number of criteria
- Number of impacts equals number of criteria
- Impacts must be either
+or-
Author
Lakshay
Roll Number: 102303872
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_lakshay_102303872-0.0.1.tar.gz.
File metadata
- Download URL: topsis_lakshay_102303872-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c4179b909d9e449151ecfa06310e370f191b8f68ca7d497a4c6403b1f8cbd38
|
|
| MD5 |
43ae2e301032fdf5081333e8b5cc226c
|
|
| BLAKE2b-256 |
9a08aee0458b970f9d76173097af0002eb8386e78d99be5840945a0440d956bc
|
File details
Details for the file topsis_lakshay_102303872-0.0.1-py3-none-any.whl.
File metadata
- Download URL: topsis_lakshay_102303872-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
168bf00bcf8be644e622675dbc27183a6b7e272c9637b8d0da7e27c4cc316c53
|
|
| MD5 |
4ddd8adcae9bfbf08246591c9b56964f
|
|
| BLAKE2b-256 |
407fd2acf9ad291c76b05bd5ee68c27d58efa036e54600f21deed6201be825ad
|