Skip to main content

Topsis package for Multiple Criteria Decision Making problems(MCDM) problems

Project description

TOPSIS SCORE CALCULATOR

By: MRITUNJAY-102003030

Title: Multiple Criteria Decision Making(MCDM) Using TOPSIS

WHAT IS TOPSIS

TOPSIS is an acronym that stands for 'Technique of Order Preference Similarity to the Ideal Solution' and is a pretty straightforward MCDA method. This is a Python library for dealing with Multiple Criteria Decision Making(MCDM) problems by using Technique for Order of Preference by Similarity to Ideal Solution(TOPSIS).

HOW TO INSTALL THE TOPSIS PACKAGE

pip install Topsis-Mritunjay-102003030

FOR CALCULATING THE TOPSIS SCORE

Topsis data.csv "0.25,0.25,0.25,0.25" "+,+,-,+" result.csv
Input File(Example:data.csv):

Argument used to pass the path of the input file which conatins a dataset having different fields and to perform the topsis mathematical operations

Weights(Example:"0.25,0.25,0.25,0.25")

The weights to assigned to the different parameters in the dataset should be passed in the argument.It must be seperated by ','.

Impacts(Example:"+,+,-,+"):

The impacts are passed to consider which parameters have a positive impact on the decision and which one have the negative impact.Only '+' and '-' values should be passed and should be seperated with ',' only

Output File(Example:result.csv):

This argument is used to pass the path of the result file where we want the rank and score to be stored.

EXAMPLE

data.csv

A csv file showing data for different mobile handsets having varying features.

Model Storage space(in gb) Camera(in MP) Price(in $) Looks(out of 5)
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 vector = [ 0.25 , 0.25 , 0.25 , 0.25 ]

impacts vector = [ + , + , - , + ]

INPUT:

topsis data.csv "0.25,0.25,0.25,0.25" "+,+,-,+" result.csv

OUTPUT:

      TOPSIS RESULTS
-----------------------------

    P-Score  Rank
1  0.534277     3
2  0.308368     5
3  0.691632     1
4  0.534737     2
5  0.401046     4

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-Mritunjay-102003030-1.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Topsis_Mritunjay_102003030-1.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Mritunjay-102003030-1.0.1.tar.gz.

File metadata

File hashes

Hashes for Topsis-Mritunjay-102003030-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e45806255aaa813a76ff342dc176c3c899e88e30ddd056a417e9d1e6792dbe44
MD5 9a02c2dc97659edadebb49d908d09627
BLAKE2b-256 63e9ae44d6c284c94588660080ca0416dea7983d5f48e9ea4c449e95969d82bc

See more details on using hashes here.

File details

Details for the file Topsis_Mritunjay_102003030-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Mritunjay_102003030-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1cc587099fca7b882ef5c604b3cadc1c3d6c446dc108388944792a6f88b08de
MD5 a7044763053e297cd9fa8611c0ca268c
BLAKE2b-256 7825f4d414132be7e885ecf267095913379f21205747efc98f3522e1e901725d

See more details on using hashes here.

Supported by

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