Skip to main content

Doing Evaluation of alternatives based on multiple criteria using TOPSIS method.

Project description

Topsis:-MULTIPLE-CRITERIA DECISION MAKING

TOPSIS

Submitted By: ABHISHEK VOHRA 102003439.

Date: 22-JAN-2023.

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


What is TOPSIS?

Technique for Order Preference by Similarity to Ideal Solution 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_AbhishekVohra_102003439

In Command Prompt

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

Input file (data.csv)

The decision matrix should be constructed with each row representing a Model alternative, and each column representing a criterion like Attribute, Price or cost, Storage Space ,Camera,Looks.

Fund Name P1 P2 P3 P4 P5
M1 0.67 0.45 6.4 64.2 17.93
M2 0.78 0.61 5.1 42.5 12.25
M3 0.66 0.44 6.7 58.5 16.58
M4 0.68 0.46 3.6 40.7 11.36
M5 0.83 0.69 6.8 33 10.33
M6 0.95 0.9 5.7 36.9 11.11
M7 0.95 0.9 3.5 51.2 14.14
M8 0.89 0.79 4.1 60.1 16.47

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)

Fund Name P1 P2 P3 P4 P5 Topsis Score Rank
M1 0.67 0.45 6.4 64.2 17.93 0.541 3
M2 0.78 0.61 5.1 42.5 12.25 0.401 7
M3 0.66 0.44 6.7 58.5 16.58 0.486 4
M4 0.68 0.46 3.6 40.7 11.36 0.405 6
M5 0.83 0.69 6.8 33 10.33 0.323 8
M6 0.95 0.9 5.7 36.9 11.11 0.445 5
M7 0.95 0.9 3.5 51.2 14.14 0.679 2
M8 0.89 0.79 4.1 60.1 16.47 0.723 1

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

Topsis_AbhishekVohra_102003439-1.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file Topsis_AbhishekVohra_102003439-1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_AbhishekVohra_102003439-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dc63c46edb5312b2de82548230ac783dabaa821056b7e003bd913f27e8d72730
MD5 b179ea04ffdc84f1247e0a802cbe98e6
BLAKE2b-256 1143a0192a5645a86455bc64aa8941b840434c4e1d2b57616ae52f86a979dde0

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