TOPSIS algorithm implementation
Project description
Topsis-Ruhani-102203833
This package provides an implementation of the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) algorithm. TOPSIS is a decision-making method that helps in ranking and selecting the best alternative based on a set of criteria. It evaluates the alternatives based on their relative distance to the ideal and worst-case solutions.
What is TOPSIS?
TOPSIS is a popular method in Multi-Criteria Decision Analysis (MCDA) used for solving decision-making problems. The basic idea is to choose the alternative that is closest to the ideal solution and farthest from the worst solution. This method is widely used in various fields, such as operations research, business, and engineering.
Steps Involved in TOPSIS:
- Construct the Decision Matrix: Represent the alternatives and criteria in a matrix format.
- Normalize the Decision Matrix: Normalize the data to make the units consistent.
- Apply Weights to the Criteria: Each criterion is assigned a weight based on its importance.
- Determine the Ideal and Worst Alternatives: Identify the best and worst values for each criterion.
- Calculate the Distance: Calculate the Euclidean distance of each alternative from the ideal and worst alternatives.
- Calculate the TOPSIS Score: Compute the score based on the ratio of the distance from the worst and the sum of the distances from both ideal and worst alternatives.
- Rank the Alternatives: Rank the alternatives based on their TOPSIS score.
Installation
To install the Topsis-FirstName-RollNumber package, follow these steps:
Step 1: Install using pip
You can install the package directly from PyPI using pip:
pip install Topsis-Ruhani-102203833
Step 2: Verify Installation
topsis --version
Step 2: Usage Example
topsis
This will calculate the TOPSIS score and ranks and save the result in result.csv.
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-Ruhani-102203833-0.1.tar.gz.
File metadata
- Download URL: Topsis-Ruhani-102203833-0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f86beb07535807380aea777529cd81be0844538965665f0d8836c11ee346e0b2
|
|
| MD5 |
34076456185abf1e1dbc570f2a1fb32c
|
|
| BLAKE2b-256 |
7ce3e2bdff75f20d5c375a4d9a0821954e4c7569f172c06f973fddc27bd55681
|
File details
Details for the file Topsis_Ruhani_102203833-0.1-py3-none-any.whl.
File metadata
- Download URL: Topsis_Ruhani_102203833-0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
267474cf9d0f9cb633124d65084a47d01a72a143baaca9a2e9f4f4a4e98db418
|
|
| MD5 |
fe0b0ffb18ce3414a0cfe800c5d77784
|
|
| BLAKE2b-256 |
b80c5923140d6cc4b5de37c78b24eacb16ae4338ace4e4c35e775766323835b2
|