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

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsiss-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 topsiss-Bhagesh-101903540-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e08ed6c444c0da8f72a08658cd408deb68df378134daf3eaeb72a22db4775dac
MD5 3f54507b358590e4f8dc7f29f8f8e509
BLAKE2b-256 ba6d6359593b6f675576318e8c1386d46c6fc66fde3722cc512325cebadd09c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: topsiss_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 topsiss_Bhagesh_101903540-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3c74f854eb16b545205959c7e2d354824d5229fd5ab0ea545ae545bab040ac6
MD5 a52a687f3ecd457641288a5d57e24b42
BLAKE2b-256 5b631889e86b15e87d464b1a76bafea240b7f4202bc105ffe6dfd30b19dd5a4d

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