Skip to main content

Topsis Assignment

Project description

About TOPSIS

The Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) is a multi-criteria decision analysis method. TOPSIS is based on the concept that the chosen alternative should have the shortest geometric distance from the positive ideal solution (PIS) and the longest geometric distance from the negative ideal solution

The Method

  • Step 1 Calculating Normalized Matrix and weighted Normalize matrix. We normalize each value by making it: where m is the number of rows in the dataset and n is the number of columns. I vary along rows and j varies along the column.

  • Step 2 Calculating Ideal Best and Ideal worst and Euclidean distance for each row from ideal worst and ideal best value. First, we will find out the ideal best and ideal worst value: Now here we need to see the impact, i.e. is it '+' or '-' impact. If '+' impact Ideal best for a column is the maximum value in that column and the ideal worst is the minimum value in that column, and vice versa for the '-' impact.

  • Step 3 Calculating Topsis Score and Ranking. Now we have Distance positive and distance negative with us, let's calculate the Topsis score for each row on basis of them. TOPSIS Score = diw / (dib + diw) for each row Now rank according to the TOPSIS score, i.e. higher the score, better the rank

Installation

On the Python console, run 'pip install Topsis-Royal-102016082'

Usage

On the python console run 'topsis InputDataFile Weights Impacts ResultFileName' Ex: topsis data.csv "1,1,2,2" "+,-,-,+" result.csv

License

MIT

Free Software, Hell Yeah!

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-Royal-102016082-4.0.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file Topsis-Royal-102016082-4.0.tar.gz.

File metadata

  • Download URL: Topsis-Royal-102016082-4.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for Topsis-Royal-102016082-4.0.tar.gz
Algorithm Hash digest
SHA256 69f21923365d3dfcac1a494992daa27fea0552be442a21ee13827ef9e28ce934
MD5 384fee1d7e5131213293496fd54ee24d
BLAKE2b-256 92c84956a8185e532961854699348afa2c5ee9c26392c5b00611b05c5724c6dd

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