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" "+,+,-,+" output_file.csv

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,"output_file.csv")


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

Uploaded Source

File details

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

File metadata

  • Download URL: Topsis-Shubham-101903131-1.1.3.tar.gz
  • Upload date:
  • Size: 78.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.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.3.tar.gz
Algorithm Hash digest
SHA256 92d3b945370777b17d3bee840d96ed0d930bb8e13bc12356df52c360ccf42b16
MD5 aee99a64f4a1ff04b016653ebfc8caab
BLAKE2b-256 7206b66adcf05ee7d803ac83032fec0860fb71703a63b144ad85d5f8ae52132a

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