A package Calculates Topsis Score and Rank them accordingly, for example selection of best project
Project description
Topsis-Manish-101903228
TOPSIS
Submitted By: Manish Sharma - 101903228.
Type: Package.
Title: TOPSIS method for multiple-criteria decision making (MCDM).
Version: 0.0.2.
Date: 26-Feb-2022.
Author: Manish Sharma.
Contact: manish1206s@gmail.com.
Submitted To :Dr. Prashant Singh Rana
Description: Evaluation of alternatives based on multiple criteria using TOPSIS method..
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.
How to install this package:
>> pip install Topsis-Manish-101903228
In Command Prompt Run with the following parameters
>> topsis input_data_file.csv "1,1,1,1,1" "+,-,+,-,+" result.csv
Input file (input_data_file.csv)
The decision matrix should be constructed with each row representing a Model alternative, and each column representing a criterion.
| Model | p1 | p2 | p3 | p4 |
|---|---|---|---|---|
| M1 | 0.11 | 0.2 | 1.85 | 70.89 |
| M2 | 0.68 | 0.454 | 2.89 | 73.07 |
| M3 | 0.56 | 0.31 | 1.57 | 2.87 |
Weights (weights) is not already normalised will be normalised later in the code.
Information of benefit positive(+) or negative(-) impact criteria should be provided in impacts.
Output file (result.csv)
| Model | p1 | p2 | p3 | p4 | Topsis_score | Rank |
|---|---|---|---|---|---|---|
| M1 | 0.11 | 0.2 | 1.85 | 70.89 | 0.5722 | 3 |
| M2 | 0.68 | 0.454 | 2.89 | 73.07 | 0.7722 | 2 |
| M3 | 0.56 | 0.31 | 1.57 | 2.87 | 0.7872 | 1 |
The output file contains columns of input file along with two additional columns having (Topsis score) and (Rank)
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-Manish-101903228-0.0.2.tar.gz.
File metadata
- Download URL: Topsis-Manish-101903228-0.0.2.tar.gz
- Upload date:
- Size: 4.4 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 |
50ca9be7361d0b71dc4644d7da54d2c083bb31bee69e71e592b2e21648a9c2fc
|
|
| MD5 |
9d8828b5d2537867fbf9b5d3f6438b18
|
|
| BLAKE2b-256 |
165997b5d56f54747d40e49bb933fb92dbac2e7fdb999339e08cdc9ba227d0a7
|