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
Built Distribution
Close
Hashes for topsis_nishant_76-12.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19bc22d52a013ebbc35fc4689ab74cbce546900ec4645e9de246a0c96873c993 |
|
MD5 | 3bf152b4f000617adcbc7de0c47eeb09 |
|
BLAKE2b-256 | 846555b657d908c6290c6fe6f1e7082e917fe6e1d13c9a46526056ddc3a7f801 |