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  
COE17
Roll number: 101703376

Output is a list with rankings of different objects.

  • also includes Best_performance_object

Installation

pip install topsis_nishant_76

Recommended - test it out in a virtual environment.

Upgrade

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
"""
topsis_nish('mydata.csv','1,2,1,1','+,-,+,+')

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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file topsis_nishant_76-12.1.6.tar.gz.

File metadata

  • Download URL: topsis_nishant_76-12.1.6.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for topsis_nishant_76-12.1.6.tar.gz
Algorithm Hash digest
SHA256 eca7a466924de31963d5271e5ace8b8847b689e8e3a41e0aef72e5e8af04b6aa
MD5 19f32498812d5c4725e75637e083497c
BLAKE2b-256 1894df4657c7e2fad26606976405061a8ad8339c6e851a746ae8c67b0adbf95c

See more details on using hashes here.

File details

Details for the file topsis_nishant_76-12.1.6-py3-none-any.whl.

File metadata

  • Download URL: topsis_nishant_76-12.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

File hashes

Hashes for topsis_nishant_76-12.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 19bc22d52a013ebbc35fc4689ab74cbce546900ec4645e9de246a0c96873c993
MD5 3bf152b4f000617adcbc7de0c47eeb09
BLAKE2b-256 846555b657d908c6290c6fe6f1e7082e917fe6e1d13c9a46526056ddc3a7f801

See more details on using hashes here.

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