Skip to main content

It performs topsis for any model

Project description

Topsis-Bhaegesh-10193540

This package is implementation of topsis technique of multi-criteria decision analysis. This package will accept three parameters as input:

  1. .csv file which contains the models and parameters
  2. string of weights separated by commas(,)
  3. string of requirements (+/-) separated by commas(,)

It performs the topsis, calculate the Performance Score and Rank according to the inputs and store them in the output file. This program must be run through command line only.

What is TOPSIS

The Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) is a multi-criteria decision analysis method. TOPSIS is based on the concept that the chosen alternative should have the shortest geometric distance from the positive ideal solution (PIS) and the longest geometric distance from the negative ideal solution (NIS).

Installation

To install this module write the following line in the command prompt.

pip install Topsis-Bhagesh-101903540

How to use this

Topsis-Bhagesh-101903540 can be run as in the following example:

####In Command Prompt

>> topsis data.csv "1,1,1,1" "+,+,-,+"

###Example on the Dataset

####Input File

Moblie Price($) Storage(GB) Camera(MP) Rating
M1 250 16 12 5
M2 200 16 8 3
M3 300 32 16 4
M4 275 32 8 4
M5 225 16 16 2

In addition to input file we provide impact and weight for each columns from 2nd to last column. Impact must be +ve or -ve. Weight and Impact must be seperated with commans.

####Output File The output file is steuctured as follows

Moblie Price($) Storage(GB) Camera(MP) Rating Topsis Score Rank
M1 0.11 0.08 0.11 0.15 0.53 3
M2 0.09 0.08 0.07 0.09 0.31 5
M3 0.13 0.15 0.14 0.12 0.69 1
M4 0.12 0.15 0.07 0.12 0.53 2
M5 0.1 0.08 0.14 0.06 0.40 4

For calulating Rank it compare upto six decimal digits but display only upto two decimal points. The rankings are displayed in the form of a table using a package 'tabulate', with the 1st rank offering us the best decision, and last rank offering the worst decision making, according to TOPSIS method.

###License © 2021 Bhagesh Gupta

This repository is licensed under the MIT license. See LICENSE for details.

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-Bhagesh-101903540-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

topsis_Bhagesh_101903540-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file topsis-Bhagesh-101903540-1.0.0.tar.gz.

File metadata

  • Download URL: topsis-Bhagesh-101903540-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for topsis-Bhagesh-101903540-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cfd6d9c5641a8dc5636871cca181ea1b979a32fe2e5fc58fd613b69b308aad14
MD5 5e8a70ecb0fc6fb63c08352cb9ca2e76
BLAKE2b-256 83c3eccf192b4d3ab80cb8c98bd48d94900eacfc8b48510c9689ece1ce9ae152

See more details on using hashes here.

File details

Details for the file topsis_Bhagesh_101903540-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: topsis_Bhagesh_101903540-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for topsis_Bhagesh_101903540-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d7b9c397e783a1e3d5c1092cd3447498e826acd6d430886bf8b2f648f439548
MD5 3bfdf00a40191ec180716efc0eabd7b8
BLAKE2b-256 af21f3839cb75bde37ea38a204f8cecaf4365755173c8f08d49bc3e649def511

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