Skip to main content

Implements Topsis

Project description

TOPSIS

Code by: Arth Duggal


## What is TOPSIS

TOPSIS is a method of compensatory aggregation that compares a set of alternatives by identifying weights for each criterion, normalising scores for each criterion and calculating the geometric distance between each alternative and the ideal alternative, which is the best score in each criterion. An assumption of TOPSIS is that the criteria are monotonically increasing or decreasing. Normalisation is usually required as the parameters or criteria are often of incongruous dimensions in multi-criteria problems. Compensatory methods such as TOPSIS allow trade-offs between criteria, where a poor result in one criterion can be negated by a good result in another criterion. This provides a more realistic form of modelling than non-compensatory methods, which include or exclude alternative solutions based on hard cut-offs. An example of application on nuclear power plants is provided in.TOPSIS stands for ‘The Technique for Order of Preference by Similarity to the Ideal Solution’ is a multi-criteria decision analysis(MCDA) method.

How to run

Before running, make sure you have pandas installed on your system

Open Terminal and input the following commands

pip install Topsis-Arth-101803214

python

from topsis.topsis1 import topsis topsis("input.csv","1,2,1,2","+,+,-,+","output.csv")

Sample Input

This input was used to test the module

ModelCorrRseqRMSEAccuracy
M10.790.621.2560.89
M20.660.442.8963.07
M30.560.311.5762.87
M40.820.672.6870.19
M50.750.561.380.39

Output

ModelCorrRseqRMSEAccuracyTopsis ScoreRank
M10.790.621.2560.890.6391332.0
M20.660.442.8963.070.2125925.0
M30.560.311.5762.870.4078464.0
M40.820.672.6870.190.5191533.0
M50.750.561.380.390.8282671.0

License

© 2020 Arth Duggal

This repository is licensed under the MIT license. See LICENSE for details.

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-Arth-101803214-1.1.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Arth_101803214-1.1.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Arth-101803214-1.1.3.tar.gz.

File metadata

  • Download URL: Topsis-Arth-101803214-1.1.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for Topsis-Arth-101803214-1.1.3.tar.gz
Algorithm Hash digest
SHA256 a54a4193eadeb0e62fbbbb34c59ec0798b379c228bd0d74367c9403b1ab4a330
MD5 2c2489d245697663b47c4cc4e2949991
BLAKE2b-256 9a2791381a0ec9d01c6636ec735b482098d46513f7ea67ab77a1cbbe1932d493

See more details on using hashes here.

File details

Details for the file Topsis_Arth_101803214-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: Topsis_Arth_101803214-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for Topsis_Arth_101803214-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0c3d759c725275455222b5f7be21552a9f88b55f0b850a068263725bf169e8df
MD5 8d14e294b0ce733f6bd769fa318dea6a
BLAKE2b-256 90117a4adb80867014911875f6f2c4cfa72360a5416c900034dbeb9ded265a62

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