A Python package for implementing TOPSIS
Project description
TOPSIS-Python
Submitted By: Tushar Verma
What is TOPSIS
Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method. TOPSIS chooses the alternative of shortest Euclidean distance from the ideal solution, and greatest distance from the negative-ideal solution. More details at wikipedia.
How to use this package:
The Topsis-Tushar-402083001 has a function topsis() that takes 4 parameters, i.e., inputFile, weights, impacts, and outputFile, and returns the resulting dataframe having Topsis Score and Rank as additional columns.
Where,
- inputFile: Can be either csv file or pandas dataframe. Input file must contain three or more columns, where, First column is the object/variable name like M1, M2, M3, M4, etc. Also, from 2nd to last columns must contain numeric values only.
- weights: In the form of string having numerical values separated by commas.
- impacts: In the form of string having + or - values separated by commas. Here, + refers to positive impact, whereas, - refers to negative impact.
- outputFile (optional): csv file in which output of the function will be stored.
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
File details
Details for the file Topsis_Tushar_402083001-1.0.1.tar.gz
.
File metadata
- Download URL: Topsis_Tushar_402083001-1.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9694b1ba044c62472417994fc2c7a801707742e1914496ae46e12197ccce13df |
|
MD5 | 51f8c0035f9cfcb607b1b270a54ff5ae |
|
BLAKE2b-256 | 3b8fbd54dd5f3da3e28a7371c6b26ddb91447a9a7eaadd82da55aa7a014e7768 |
File details
Details for the file Topsis_Tushar_402083001-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: Topsis_Tushar_402083001-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9022ff33fe3244de02c1a3f8d487be741fa7cb8ac6e4cb7aa887a002d868510f |
|
MD5 | 32deba3502fa6cdef88426d055dc485f |
|
BLAKE2b-256 | d4e09de8b14c08912dddd08e824d28f385447a89136c016ddfea7279e3bbeb07 |