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
topsis.topsis('filepath', [list of weights], [list of impacts])
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-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29db25c43e7add5a528a363e03c349258cc25ad653e9a91e518d4d9b0db02c93 |
|
MD5 | 0df3e79664aeb09e554fe8a1b0145dd3 |
|
BLAKE2b-256 | d8854f5c07e3a8e3be96e8f12e598d41faf5ca2adec15575d6c2d6ddf7dd78f6 |
Hashes for topsis_python_souravdlboy-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 126ccb46d40a870a0408b6167f8ce5d7bb6d3c0a7f8193455708a77550ef5326 |
|
MD5 | b3e6feccbf6d33d0cfc7a9e086c1a0ad |
|
BLAKE2b-256 | ab7bcf55bde177da63344779a63ec7c19408995293443080dde82f8808d99dac |