A Python package to perform TOPSIS (Technique for Order Preference by Similarity to Ideal Solution).
Project description
TOPSIS Implementation in Python
This project demonstrates the implementation of the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) algorithm in Python. The method is used to rank alternatives based on multiple criteria, considering their respective weights and impacts (benefit or cost).
Key Features
- Robust Input Validation: Ensures the correctness of input parameters, file formats, and consistency in weights and impacts.
- Comprehensive Error Handling: Handles issues such as invalid data, incorrect file formats, and mismatched inputs gracefully.
- Detailed Outputs: Generates a CSV file containing the computed scores, rankings, and the original dataset columns.
You can access the package through this link.
How to Use
- Clone the repository and navigate to the project folder.
- Ensure Python and required libraries are installed on your system.
- Run the program using the following command:
python -m topsis_Saurabh_102203677.topsis <InputDataSet.csv> <Weights> <Impacts> <ResultFile.csv>
Example Input Dataset
Weights Example
Weights for criteria:
[1, 1, 1, 1, 1]
Impacts Example
Impacts for criteria:
['-', '+', '+', '-', '+']
+indicates a benefit criterion.-indicates a cost criterion.
Example Output
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_saurabh_102203677-1.0.0.tar.gz.
File metadata
- Download URL: topsis_saurabh_102203677-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c42c082e33a08f1d3183e5418f814586a2180bc354e177e67d7710772b38ed40
|
|
| MD5 |
1acdfd9f7556123e0fe964f9d5b8ee66
|
|
| BLAKE2b-256 |
60467b35faae3708a4f544fe097156dc8108c71f1278669a8073c3084fffd741
|
File details
Details for the file topsis_Saurabh_102203677-1.0.0-py3-none-any.whl.
File metadata
- Download URL: topsis_Saurabh_102203677-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
897143f47b2909b6cdaf3fd95e97fb7d4c8cef3354e5991276c8e56e3137230e
|
|
| MD5 |
2c2bcac39cb9ce1ba1be2ec2dbe89996
|
|
| BLAKE2b-256 |
23eedbdbe3f5f981904544207a662a62ea7fb9506565c7c6df669d0c3d9ff616
|