Python package for TOPSIS algorithm
Project description
topsis-python
Package Description :
Python package for TOPSIS (The Technique for Order of Preference by Similarity to Ideal Solution) ALGORITHM.
Motivation :
This is a part of project - I made for UCS633 - Data analytics and visualization at TIET.
Algorithm :
STEP 1 :
Create an evaluation matrix consisting of m alternatives and n criteria, with the intersection of each alternative and criteria.
STEP 2 :
The matrix is then normalised using the norm.
STEP 3 :
Calculate the weighted normalised decision matrix.
STEP 4 :
Determine the worst alternative and the best alternative.
STEP 5 :
Calculate the L2-distance between the target alternative i and the worst condition.
STEP 6 :
Calculate the similarity to the worst condition.
STEP 7 :
Rank the alternatives according to final performance scores.
Getting started Locally :
Run On Terminal
python topsis.py <filename.csv> <weights> <impacts>
ex. python topsis.py topsis.csv 0.25,0.25,0.25,0.25 -,+,+,+
Run In IDLE
from topsis import topsis
t = topsis.topsis('filepath', [list of weights], [list of impacts])
t.topsis_main()
t.display()
topsis_main()
has been specifically designed to inhibit leakeage of inbuilt functions.display()
has been designed to debug to display all the intermediate matrices.
PAPER :
Find the research paper at arxiv.
OUTPUT :
Prints out the best model / alternative.
Project details
Release history Release notifications | RSS feed
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
Hashes for topsis-python-souravdlboy-2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 498d372227c7078fede088da810bfaa5b39523122347048ee71b3d117cfc34d3 |
|
MD5 | 28461e4ee47a1fb8d60787eb7b2fbdee |
|
BLAKE2b-256 | 1e5f8698db9730503d7481ab04e0fba1d452517cffef40d7220d2eec7e8f69d2 |
Hashes for topsis_python_souravdlboy-2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89c4d116c5e62c78930807f81932c035fce2f719b4ac8eb6516ed3b48a46945f |
|
MD5 | 75c48c09a81a17f194cd83e4e9e77212 |
|
BLAKE2b-256 | e0a85259eba1b72a3ed3b8a8ec36b161ccfe2532c6f15e80cfdf218a836c046b |