Skip to main content

A Python package implementing TOPSIS technique.

Project description

TOPSIS-Python

Submitted By: Shubham 101903131


What is TOPSIS

Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method. TOPSIS chooses the alternative of shortest Euclidean distance from the ideal solution, and greatest distance from the negative-ideal solution. More details at wikipedia.


How to use this package:

Topsis-Shubham-101903131 can be run as in the following example:

In Command Prompt

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

In Python IDLE:

>>> import pandas as pd
>>> from topsis_py.topsis import topsis
>>> dataset = pd.read_csv('data.csv').values
>>> d = dataset[:,1:]
>>> w = [1,1,1,1]
>>> im = ["+" , "+" , "-" , "+" ]
>>> topsis(d,w,im)


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.

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-Shubham-101903131-1.1.0.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file Topsis-Shubham-101903131-1.1.0.tar.gz.

File metadata

  • Download URL: Topsis-Shubham-101903131-1.1.0.tar.gz
  • Upload date:
  • Size: 6.0 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.6 tqdm/4.62.2 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for Topsis-Shubham-101903131-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0c07695491861bc44c48e6df1ef4f2daadc45864f4884a48c13b751438588cf5
MD5 eb3d995dd25078c9990cec1dec0abffd
BLAKE2b-256 bb63b8a42858ca08e0626ee943c396627bed332e057e9148b1de13920551b92f

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