This Python script implements the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) algorithm.
Project description
TOPSIS - Technique for Order Preference by Similarity to Ideal Solution
Introduction
This Python script implements the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) algorithm. TOPSIS is a multi-criteria decision-making method that helps in ranking a set of alternatives based on their proximity to the ideal solution.
Prerequisites
- Python 3
- pandas
- numpy
Installation
pip install Topsis_Aditya_102103546
Running the Script in Editor
Run the TOPSIS script in IDE using the following format:
from Topsis import __main__
__main__.TOPSIS(input_file,weights,impacts,output_file)
<input_file>: Path to the CSV file containing the input data.<weights>: Weights for each criterion separated by commas.<impacts>: Impacts for each criterion, either '+' or '-'.<output_file>: Path to the CSV file where the result will be saved.
Input Format
The input file should be a CSV file with the first column representing the alternatives and the following columns representing different criteria. Atleast 3 columns shall be present.
Output
The script generates a CSV file with the TOPSIS scores and ranks for each alternative.
License
(c) 2024 Aditya Vashishta
This project is licensed under the MIT License.
Project details
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_Aditya_102103546-1.0.8.tar.gz.
File metadata
- Download URL: Topsis_Aditya_102103546-1.0.8.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce4e318e1a37c4995e35b7dcba2e3a539d1cbd16625f136aeb5a4b512c885a65
|
|
| MD5 |
a95961c3ff8eed210957cc734f05116e
|
|
| BLAKE2b-256 |
484e202b63157fdecbecb540c5d4a0704e6db59a1c8372a8e918f466acc98498
|
File details
Details for the file Topsis_Aditya_102103546-1.0.8-py3-none-any.whl.
File metadata
- Download URL: Topsis_Aditya_102103546-1.0.8-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cad69227a835d927072b7425a5110c94c87f9cec0ea08d624e78dd993ea54e2e
|
|
| MD5 |
d8a7bd6066a121c885ba6ec70933c345
|
|
| BLAKE2b-256 |
1a9757fe436be3ee13ef8884878f927132051638162cb0f35e73987b0b000f4c
|