Skip to main content

This a Topsis package,TOPSIS (technique for order performance by similarity to ideal solution) is a useful technique in dealing with multi-attribute or multi-criteria decision making (MADM/MCDM) problems in the real world

Project description

# 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.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Topsis_Rishabh_102003393-1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Topsis_Rishabh_102003393-1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file Topsis_Rishabh_102003393-1.0.tar.gz.

File metadata

  • Download URL: Topsis_Rishabh_102003393-1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for Topsis_Rishabh_102003393-1.0.tar.gz
Algorithm Hash digest
SHA256 41016f87d1ac620e1ca62152ec9d039cfacfec8a26b6b96891e66cf4624f45d5
MD5 f1e3e0108af7a0a0ed3d98ba4c14a864
BLAKE2b-256 fdaff758c082648f448f58294ab99874595240d560e86f30dc7fce329499d83c

See more details on using hashes here.

File details

Details for the file Topsis_Rishabh_102003393-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Rishabh_102003393-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ff9745731275513e7fe7812c58bd42272d59e44b1957dedbf39d1fb0681b4da
MD5 0abb34c4f36ac38163577689a860f8a9
BLAKE2b-256 e6017f90de0271c76fa54ce2abeada08aac4a74053e3e09e1c9acb7bd7eff6fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page