# Topsis The package includes a TOPSIS class that can be used to perform the analysis. The class takes the following parameters:
Source File: Contains a decision matrix with rows as alternatives and columns as criteria Weights: A string representing the weight of each criterion Impacts: A string representing the impact of each criterion (+ for positive impact, - for negative impact)
# Algorithm : ### STEP 1 : Create an evaluation matrix consisting of m alternatives and n criteria, with the intersection of each alternative and criteria. Apply any preprocessing if required. ### STEP 2 : The matrix is then normalised using the norm.
### STEP 3 : Calculate the weighted normalised decision matrix.
### STEP 4 : Determine the worst alternative and the best alternative.
### STEP 5 : Calculate the L2-distance between the target alternative i and the worst condition.
### STEP 6 : Calculate the similarity to the worst condition.
### STEP 7 : Rank the alternatives according to final performance scores.
## To install this package : Use pip install VanshikaPackage pip install VanshikaPackage
## To run the topsis function topis <sourcefile.csv> “<weights_seperated_by_commas>” “<impact_seperated_by_commas>” <destinationfilename.csv> ## example topsis srcfile.csv “1,1,1,2” “+,+,+,-” dstfile.csv ## License
© 2023 Rishabh
This repository is licensed under the MIT license. See LICENSE for details.
Release files for Topsis-Rishabh-102003393 1.0
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_Rishabh_102003393-1.0.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Topsis_Rishabh_102003393-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / Topsis_Rishabh_102003393-1.0.tar.gz
| Download URL | Topsis_Rishabh_102003393-1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41016f87d1ac620e1ca62152ec9d039cfacfec8a26b6b96891e66cf4624f45d5
|
|
BLAKE2b-256 checksum How to use checksums |
fdaff758c082648f448f58294ab99874595240d560e86f30dc7fce329499d83c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / Topsis_Rishabh_102003393-1.0-py3-none-any.whl
| Download URL | Topsis_Rishabh_102003393-1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ff9745731275513e7fe7812c58bd42272d59e44b1957dedbf39d1fb0681b4da
|
|
BLAKE2b-256 checksum How to use checksums |
e6017f90de0271c76fa54ce2abeada08aac4a74053e3e09e1c9acb7bd7eff6fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|