A Python package designed for performing Topsis analysis in the context of multiple-criteria decision making (MCDM). This package generates Topsis scores and ranks items accordingly.
Project description
Topsis-python-package
TOPSIS
Submitted By: Samarjeet Singh - 102103563.
Type: Package.
Title: TOPSIS method for multiple-criteria decision making (MCDM).
Version: 1.0.0.
Date: 22-01-2024.
Author: Samarjeet Singh.
Maintainer: Samarjeet Singh singhsamarjeet09@gmail.com.
Description: A Python package designed for performing Topsis analysis in the context of multiple-criteria decision making (MCDM). This package generates Topsis scores and ranks items accordingly..
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-Samarjeet-102103562
In Command Prompt
>> topsis -h
>> topsis data.csv "1,1,1,1" "+,+,-,+" result.csv
Input file (data.csv)
| A | B | C | D | E | F |
|---|---|---|---|---|---|
| Fund Name | P1 | P2 | P3 | P4 | P5 |
| M1 | 0.84 | 0.71 | 6.7 | 42.1 | 12.59 |
| M2 | 0.91 | 0.83 | 7 | 31.7 | 10.11 |
| M3 | 0.79 | 0.62 | 4.8 | 46.7 | 13.23 |
| M4 | 0.78 | 0.61 | 6.4 | 42.4 | 12.55 |
| M5 | 0.94 | 0.88 | 3.6 | 62.2 | 16.91 |
| M6 | 0.88 | 0.77 | 6.5 | 51.5 | 14.91 |
| M7 | 0.66 | 0.44 | 5.3 | 48.9 | 13.83 |
| M8 | 0.93 | 0.86 | 3.4 | 37 | 10.55 |
weights = "2,2,3,3,4"
impacts = "-,+,-,+,-"
Output file (result.csv)
| Fund Name | P1 | P2 | P3 | P4 | P5 | score | rank |
|---|---|---|---|---|---|---|---|
| M1 | 0.84 | 0.71 | 6.7 | 42.1 | 12.59 | 0.46648384839516 | 6 |
| M2 | 0.91 | 0.83 | 7.0 | 31.7 | 10.11 | 0.5565665031302564 | 2 |
| M3 | 0.79 | 0.62 | 4.8 | 46.7 | 13.23 | 0.5552632203730501 | 3 |
| M4 | 0.78 | 0.61 | 6.4 | 42.4 | 12.55 | 0.5091638066448925 | 5 |
| M5 | 0.94 | 0.88 | 3.6 | 62.2 | 16.91 | 0.36399291864067096 | 7 |
| M6 | 0.88 | 0.77 | 6.5 | 51.5 | 14.91 | 0.26936075735436416 | 8 |
| M7 | 0.66 | 0.44 | 5.3 | 48.9 | 13.83 | 0.5251983566077868 | 4 |
| M8 | 0.93 | 0.86 | 3.4 | 37.0 | 10.55 | 0.6986963797749929 | 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Topsis-Samarjeet-102103562-1.0.0.tar.gz.
File metadata
- Download URL: Topsis-Samarjeet-102103562-1.0.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adeabb04f882ff53d5298d52a1524cbcf827dfd1bfd939f57b471eedbf8a7dbf
|
|
| MD5 |
e0bde6cd722826655d7a26aead99512f
|
|
| BLAKE2b-256 |
5cda50e59ff6c93df46fe6312a5dc2d8e1710e628a0b290af2a212876b09adfd
|
File details
Details for the file Topsis_Samarjeet_102103562-1.0.0-py3-none-any.whl.
File metadata
- Download URL: Topsis_Samarjeet_102103562-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc8bb760739003cc1c8537e7746d49ae9ee6805c0dbfe03cabc4cf47f7eca9d7
|
|
| MD5 |
6d867acea72ae86ba9128008dd28c4e2
|
|
| BLAKE2b-256 |
f02971815c4887650b945a3629c803bb279222cde5789ebd2386fe127648515a
|