Skip to main content

A topsis Implementation in python for multi-criteria decision making

Project description

TOPSIS implementation in python for multi-criteria decision making

This package has been created based on Project 1 of course UCS633(DATA ANALYSIS AND VISUALISATION ) Thapar University, Patiala
Nishant Goel  
Roll number: 101703376

Output is a list with rankings of different objects.

  • also includes Best_performance_object


pip install topsis_nishant_76

Recommended - test it out in a virtual environment.


pip install topsis_nishant_76 --upgrade

To use via command line

topsis_cli mydata.csv '1,2,1,1' '-,+,+,+'

First argument is filename with .csv extension. The .csv file is assumed to have a structure similar to one provided in topsis_nishant_76/mydata.csv

That is, the .csv file should have a header with column names and first column should only list alternatives and not attribute values.

To use in .py script

from topsis_nishant_76 import topsis_nish
decision_matrix is 2D numpy array, weights is a string seperated with ',' and impacts is a string of the form '+,-,+,-' 
where + indicates benefit and - indicates cost

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_nishant_76-12.1.6.tar.gz (2.7 kB view hashes)

Uploaded source

Built Distribution

topsis_nishant_76-12.1.6-py3-none-any.whl (4.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page