Skip to main content

A Python package to get best alternative available using TOPSIS method.

Project description

TOPSIS-Swapnil-101967003

A python package which implements TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) which is a multi-criteria decision analysis method.

Steps involved in TOPSIS Algorithm:

1. Creating an evaluation matrix (m x n).
2. Normalization of the matrix so formed such that each metric for a given model lies between 0 and 1.
3. Creating a weighted normalized matrix i.e. multiplying the metrics with the weights of respective model.
4. Determining the ideal best and ideal worst alternatives for each criterion.
5. Calculating the euclidean distance between the target alternative and ideal best and idealworst alternatives.
6. Calculate the TOPSIS score i.e. similarity to the ideal worst alternative.
7. Rank the models on the basis of the TOPSIS score thus obtained.s

Usage

Running the following query on the command-line interface will help you to rank the models i.e. choose the best alternative available from a given set of models based on multiple, usually conflicting criteria.

TOPSIS-Swapnil-101967003 <data_file_name> <weights> <impacts> <result_file_name>
Example - TOPSIS-Swapnil-101967003 data.csv "1,1,1,2" "+,+,-,+" result.csv

Note - Make sure that you run the command in the folder you have stored your data files , else provide the complete path of the file.

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

TOPSIS-Swapnil-101967003-1.0.4.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file TOPSIS-Swapnil-101967003-1.0.4.tar.gz.

File metadata

  • Download URL: TOPSIS-Swapnil-101967003-1.0.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for TOPSIS-Swapnil-101967003-1.0.4.tar.gz
Algorithm Hash digest
SHA256 2400aeb1458cf8df0cbb129e7f92a4a545d92a22ee2c3ba52a5a1a6eca51ebf7
MD5 88a2146c36eb9e5088305dcfb44fb8b4
BLAKE2b-256 d3374bbb3f0e618cbaf5deb84d6598f725961b7754c14ba4cd4b42a83e15a6c0

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