Implementation of Multiple Criteria Decision Making (MCDM) using TOPSIS in Python.
Project description
Implementation of TOPSIS by Lakshya Gupta
This package calculates topsis/performance score for given .csv file, thus helping in Multiple Critera Decision Making (MCDM).
Important Details
Input File
- The input file must be a .csv or .txt file only.
- The input file must have atleast three columns.
- The first column of the input file is the object/variable name. (e.g. X1, X2, X3, X4...)
- All columns except the first (name) column contain numeric values only.
Output File
- The output file contains two new columns i.e. Topsis Score and Rank along with the original columns.
Parameters for the topsis function are as follows
-
The input file name. It must end with .csv or .txt. The complete file path must be given to read the file residing in a different directory.
-
The weights string that contains the weights for each column separated by commas. Example: "0.25,0.25,0.25,0.25"
-
The impacts string that contains the impacts for each column separated by commas. Example: "+,+,-,+"
-
The output file name. It must end with .csv or .txt. The complete file path must be given to save the file in a different directory.
The topsis function must be called with all 4 parameters otherwise exceptions will be raised.
Sample Use Case
import TOPSIS_Lakshya_101803492 as t
t.topsis("inputFileName.csv", "0.25,0.25,0.25,0.25", "+,+,-,+", "outputFileName.csv")
Change Log
0.0.65 (12/11/2020)
- First Release
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
File details
Details for the file TOPSIS_Lakshya_101803492-0.0.65.tar.gz.
File metadata
- Download URL: TOPSIS_Lakshya_101803492-0.0.65.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79606eae3a96395065ed5c9156a78893f7f8259a3d14d26489eeb3c28b1a17ec
|
|
| MD5 |
fa62e5f0b0c5da1f6a1abb9d06abde4f
|
|
| BLAKE2b-256 |
8684ae7c656798c038625fae082cd80d275337450aee431aed47095f94743977
|