Topsis:-MULTIPLE-CRITERIA DECISION MAKING
TOPSIS
Submitted By: TARUNA JAIN 102003464.
Date: 21-JAN-2023.
Description: Evaluation of alternatives based on multiple criteria using TOPSIS method..
What is TOPSIS?
Technique for Order Preference by Similarity to Ideal Solution TOPSIS chooses the alternative of shortest Euclidean distance from the ideal solution, and greatest distance from the negative-ideal solution.
How to install this package:
>> pip install Topsis_Taruna_102003464
In Command Prompt
>> topsis123 data.csv "1,1,1,1," "+,+,-,+" result.csv
Input file (data.csv)
The decision matrix should be constructed with each row representing a Model alternative, and each column representing a criterion like Price or cost, Storage Space, Camera, Looks, and many more.
| Attribute | Price or cost | Storage Space | Camera | Looks |
|---|---|---|---|---|
| Mobile 1 | 250$ | 16GB | 12MP | 5 |
| Mobile 2 | 200$ | 16GB | 8MP | 3 |
| Mobile 3 | 300$ | 32GB | 16MP | 4 |
| Mobile 4 | 275$ | 32GB | 8MP | 4 |
| Mobile 5 | 225$ | 16GB | 16MP | 2 |
Weights (weights) is not already normalised will be normalised later in the code.
Information of benefit positive(+) or negative(-) impact criteria should be provided in impacts.
Output file (result.csv)
| Attribute | Price or cost | Storage Space | Camera | Looks | Topsis_score | Rank |
|---|---|---|---|---|---|---|
| Mobile 1 | 250$ | 16GB | 12MP | 5 | 0.4228 | 4 |
| Mobile 2 | 200$ | 16GB | 8MP | 3 | 0.4635 | 3 |
| Mobile 3 | 300$ | 32GB | 16MP | 4 | 0.5097 | 2 |
| Mobile 4 | 275$ | 32GB | 8MP | 4 | 0.3772 | 5 |
| Mobile 5 | 225$ | 16GB | 16MP | 2 | 0.6871 | 1 |
The output file contains columns of input file along with two additional columns having **Topsis_score** and **Rank**
Release files for Topsis-Taruna-102003464 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Topsis_Taruna_102003464-0.3.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Topsis_Taruna_102003464-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:7.7 kB
Release files / Topsis_Taruna_102003464-0.3.tar.gz
| Download URL | Topsis_Taruna_102003464-0.3.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebd54b6a65ad63c7d910215f981c4458d956858289623fbe7d601f1b8d8f5c38
|
|
BLAKE2b-256 checksum How to use checksums |
9011d5af3f01811dcce599bc8b248ce6fb3f8eeb046a64a2e6ca2c68d7874469
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.2
|
Release files / Topsis_Taruna_102003464-0.3-py3-none-any.whl
| Download URL | Topsis_Taruna_102003464-0.3-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97fcd637e1be6ea6d226cfdbb4b8aa6c95a15ae9d5df88c4211786079e9a6f07
|
|
BLAKE2b-256 checksum How to use checksums |
bb25a2f85dfd920fd5c5a7d6960c4f1ecb33c69222fa27d6a13156ab40c507f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.2
|