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

Uploaded Source

File details

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

File metadata

  • Download URL: Topsis-Shubham-101903131-1.0.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.0.0.tar.gz
Algorithm Hash digest
SHA256 6191efa77479b3cb14c0e9d7f4ae48c875bcb49eb2102135f87eeb674216d537
MD5 afae86678a07e220e062e431b40b260a
BLAKE2b-256 0789ff5060214a4fc11ed49521e3be455c0c3b504e29ac34773e295c4ac70ca8

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