A Python package for handling problems of Multiple Criteria Decision Making(MCDM) for a given dataset.
Project description
Topsis-Jitesh-102017180
Topsis-Jitesh-102017180 is a Python package for dealing with Multiple Criteria Decision Making(MCDM) problems by using Technique for Order of Preference by Similarity to Ideal Solution(TOPSIS). Topsis is a method of compensatory aggregation that compares a set of alternatives, normalising scores for each criterion and calculating the geometric distance between each alternative and the ideal alternative, which is the best score in each criterion.
Installation
Use the package manager pip to install Topsis-Jitesh-102017180
Syntax
topsis Example: topsis inputfile.csv 1,2,1,2,1 +,+,-,+,- result.csv
Example
Sample Input Data
Name | P1 | P2 | P3 | P4 | P5 |
---|---|---|---|---|---|
M1 | 0.71 | 0.5 | 3.8 | 40.8 | 11.5 |
M2 | 0.94 | 0.88 | 5.3 | 56.2 | 15.83 |
M3 | 0.85 | 0.72 | 4 | 30.5 | 9.02 |
M4 | 0.61 | 0.37 | 5.4 | 56.9 | 15.82 |
M5 | 0.91 | 0.83 | 3.4 | 53.4 | 14.64 |
Weights: 1,1,1,1,1 Impacts: +,+,+,+,+
Sample Output Data
Name | P1 | P2 | P3 | P4 | P5 | Score | Rank |
---|---|---|---|---|---|---|---|
M1 | 0.71 | 0.5 | 3.8 | 40.8 | 11.5 | 0.3015751942839768 | 5 |
M2 | 0.94 | 0.88 | 5.3 | 56.2 | 15.83 | 0.97815026808521971 | 1 |
M3 | 0.85 | 0.72 | 4 | 30.5 | 9.02 | 0.4172925776259159 | 4 |
M4 | 0.61 | 0.37 | 5.4 | 56.9 | 15.82 | 0.5053936295885693 | 3 |
M5 | 0.91 | 0.83 | 3.4 | 53.4 | 14.64 | 0.6774035368116197 | 2 |
Note
- Enter the path of your input csv file.
- Enter the weights and impacts vector with each entry separated by commas.
- Enter the name of output file in .csv format.
- The Output file will be created in the current working directory
License
MIT
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-Jitesh_Garg-102017180-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b560e7e9393c9f9cb37d78ba46853fea1a1ae95f17b7ea0f069b08fc52e73e |
|
MD5 | ec6846f4550071d2a38e5c3922c5d20f |
|
BLAKE2b-256 | ab4c552f9e92278ad6131225d86cae3449bf12e0f707b53125c7d5315ce81abf |
Hashes for Topsis_Jitesh_Garg_102017180-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 369ced82fabc1684de7e2a522d30cf2b203197453cfebe0c4e85ffe9dea4d96f |
|
MD5 | c393e6ff51ace727324b9c61c5baff3c |
|
BLAKE2b-256 | 3149f9b783fd55a9cea9ea9f82c18be5c7c7c793ff16567499075dade9e5b48d |