A Python package implementing the TOPSIS method
Project description
Topsis-Ayush-102203840
A Python package for implementing the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) method, used for multi-criteria decision analysis.
Installation
pip install Topsis-Ayush-102203840
Usage
The package can be used through command line:
topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Example
topsis data.xlsx "1,1,1,1,1" "+,+,+,+,+" output.csv
Input Format
- Input File:
- The file can be in CSV or Excel format (.csv or .xlsx).
- The first column should contain the names of the objects/variables.
- The remaining columns must contain numeric values only (criteria values).
Parameters
- : The input file name along with its path (e.g., data.csv or data.xlsx).
- : A comma-separated string of numeric weight values for each criterion (e.g., "1,1,1,1").
- : A comma-separated string of + or - symbols, indicating whether the criterion is beneficial (+) or non-beneficial (-) (e.g., "+,+,-,+").
- : The desired output file name including its path (e.g., output.csv).
Output
The output file (CSV format) will include:
All input data columns Additional columns: TOPSIS Score: The calculated score for each alternative. Rank: The rank of each alternative based on the TOPSIS score (higher score = better rank).
License
MIT License
Author
Ayush Sharma Roll Number: 102203840
If you have any questions or suggestions, feel free to reach out!
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_ayushsharma_3840-0.0.1.tar.gz.
File metadata
- Download URL: topsis_ayushsharma_3840-0.0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b12e66c61c8e92aa68edd2ace966cb85fc378c43de144d7eea81df647fcf2952
|
|
| MD5 |
9726b4d3a716312054972c5d6e5f6437
|
|
| BLAKE2b-256 |
d450641d0abd0e6fe980a812bda361b968f04aa99301e6a8ed9d87495441af45
|
File details
Details for the file topsis_AyushSharma_3840-0.0.1-py3-none-any.whl.
File metadata
- Download URL: topsis_AyushSharma_3840-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bbdc30d3d03462fcf94c647d853617078ad3b055efdee18cde863b8050ef777
|
|
| MD5 |
08a56566dcaac352fb8bc74926d167bb
|
|
| BLAKE2b-256 |
a3387a775ce89e54e592aba7694edb9c1478b3e45653c0580a6348045d7eeca0
|