Skip to main content

This is a package for implementing Topsis

Project description

Topsis Package by Aditya Kalhan

Roll Number : 102053005 Subgroup : 3COE18 It takes a csv file, weights (seperated by comma) , impacts (+ or -) and outputs a result file.

What is Topsis

TOPSIS is based on the fundamental premise that the best solution has the shortest distance from the positive-ideal solution, and the longest distance from the negative-ideal one.
Selecting an appropriate Multiple Attribute Decision Making (MADM) method for a given MADM problem is always a challenging task.
Within the MADM domain, the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) is highly regarded, applied and adopted MADM method due to its simplicity and underlying concept that the best solution is the one closest to the positive ideal solution and furthest from the negative ideal solution.

Installation

Use pip installer
pip install 102053005-Aditya-Topsis

How to use it

Open terminal and type
102053005 sample.csv "1,1,1,1" "+,+,-,+" result.csv

Example

Model Storage Space Camera Price Looks
M1 16 12 250 5
M2 16 8 200 3
M3 32 16 300 4
M4 32 8 275 4
M5 16 16 225 2

weights = [1,1,1,1]
impact = ["+","+","-","+"]

Output

Model Storage Space Camera Price Looks Topsis Score Rank
M1 16 12 250 5 0.534269 3
M2 16 8 200 3 0.308314 5
M3 32 16 300 4 0.691686 1
M4 32 8 275 4 0.534807 2
M5 16 16 225 2 0.401222 4

Output will be saved in a CSV file whose name will be provided in the command line. It will have all the columns along with the Topsis Score and Ranks.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Topsis_Aditya_102053005-0.12.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

Topsis_Aditya_102053005-0.12-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file Topsis_Aditya_102053005-0.12.tar.gz.

File metadata

File hashes

Hashes for Topsis_Aditya_102053005-0.12.tar.gz
Algorithm Hash digest
SHA256 caf40282b87170519b9dd7662d4e05b85a91e766107e8d6fc354bbdfa483f680
MD5 95b29f9357355c28f5b22b3f7002ff8e
BLAKE2b-256 1db6cfcae2bfd290b7b004093f5cc8e6df97ca2f7d27e30752a5e00cb4c9e718

See more details on using hashes here.

File details

Details for the file Topsis_Aditya_102053005-0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Aditya_102053005-0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c11d0c801058cdfbc2575252dd5c0fb88be88594a0a5ce9e662f16e646df769b
MD5 7729f68058a4382a5e7bbcfa924be59f
BLAKE2b-256 ff48c8ccc1ee13e267753a1758e3479a83aad2af949b4c47bcb5ff8b5fa4cac6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page