Skip to main content

Calculates Topsis Score and Rank them accordingly

Project description

Topsis_Akshat

TOPSIS

Submitted By: Akshat Girdhar - 102017147.

Title: TOPSIS method for Multiple Criteria Decision Making (MCDM).

Version: 1.0.4.

Author: Akshat Girdhar.

Maintainer: akshatgirdhar02@gmail.com.

Description: Evaluation of alternatives based on multiple criteria using TOPSIS method..


What is TOPSIS?

Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) is 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.
Weight vector represent the importance we want to give to a particular feature.
Impacts tells whether we want to maximize or minimize that feature. '+'->For maximizing,'-'->For minimizing


How to install this package:

pip install Topsis-Akshat-102017147

Usage

topsis <InputDataFile.csv> <Weights> <Impacts> <Result.csv>

weights and impacts can be given in string format each separated by comma(',') like-:

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

or can also be given without double quotes("") like-:

topsis data.csv 1,1,1,1 +,-,+,- result.csv

But,each argument should be separated by a space.

Example

Let's understand how to use the package with the help of an example.

Input file (data.csv)

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

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

Input

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

Output file(result.csv)

Model Price (in $) Storage Space (in GB) Camera (in MP) Looks Topsis Score Rank
M1 250 16 12 5 0.5343 3
M2 200 16 8 3 0.3085 5
M3 300 32 16 4 0.6916 1
M4 275 32 8 4 0.5348 2
M5 225 16 16 2 0.4010 4

The output file contains columns of input file along with two additional columns having Topsis Score and Rank

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-Akshat-102017147-1.0.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Akshat_102017147-1.0.4-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Akshat-102017147-1.0.4.tar.gz.

File metadata

  • Download URL: Topsis-Akshat-102017147-1.0.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.4

File hashes

Hashes for Topsis-Akshat-102017147-1.0.4.tar.gz
Algorithm Hash digest
SHA256 0da9e542ce67706c81d8e35c1dfcaf61b42f55089079eb7e1dfb1cb7b4fb21ad
MD5 9f41b6510a25b43bfa90de6bf91d87fb
BLAKE2b-256 d667ab04618f966a1caaa84745b04dec2e3e6f8aed000dbc053c9efb6044ca0d

See more details on using hashes here.

File details

Details for the file Topsis_Akshat_102017147-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Akshat_102017147-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 63564777b7a423ebb78fb4dd19a40d747d4b08d8f1a3067bf2f1024255d793a8
MD5 4a693993883331d06d03e921569d5de3
BLAKE2b-256 8ce669e270adb3646aa911531f0cf441e137ffea7ad77be9c8eeea637eb83367

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