Skip to main content

TOPSIS-Rohan-101803151

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. As the name implies, the method is based on finding an ideal and an anti-ideal solution and comparing the distance of each one of the alternatives to those.

Installing Guide

The package TOPSIS-Rohan-101803151 can be run though the command line as follows:

>> pip install TOPSIS-Rohan-101803151==1.0.3
>> python
>>>from topsis_analysis.topsispackage import topsis
>>>topsis("data.csv","1,1,1,2","+,+,-,+","output.csv")

Note:

  • Usages:

    topsis( <InputDataFile> <Weights> <Impacts> <ResultFileName>)

  • Input File:

    • Input file contain three or more columns.
    • First column is the object/variable name (e.g. M1, M2, M3, M4……) .
    • From 2nd to last columns contain numeric values only.
  • Output File:

    • Result file contains all the columns of input file and two additional columns having TOPSIS SCORE and RANK
  • The output is created in the form of csv file and stored and also it is displayed.

  • The impacts given in the command line should be either ‘+’ or ‘–’ depending if you want to maximise the column parameter or minimise it.

Sample Input

Here is a sample set of data which can be used for the following package:

ModelCorrelationR2RMSEAccuracy
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 of this sample input

The output that will be generated from the following input data will be:

ModelCorrelationR2RMSEAccuracyTopsis ScoreRank
M10.790.621.2560.890.63913301413425902.0
M20.660.442.8963.070.212591829692779005.0
M30.560.311.5762.870.40784567761305204.0
M40.820.672.6870.190.51915323950074703.0
M50.750.561.380.390.82826658519358101.0

Here the ranks are given as rank 1 is the best solution according to the weights and impacts given and rank 5 is the worst solution.

Hence this python package creates a Result file contains all the columns of input file and two additional columns having TOPSIS SCORE and RANK


Release files for TOPSIS-Rohan-101803151-v08 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TOPSIS-Rohan-101803151-v08 1.0.8
File Size Uploaded
TOPSIS-Rohan-101803151-v08-1.0.8.tar.gz 4.0 kB Details

Release files / TOPSIS-Rohan-101803151-v08-1.0.8.tar.gz

Download URL TOPSIS-Rohan-101803151-v08-1.0.8.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
01756f49f1b367a6f1aee386c693141bd7913b471788a8b0f6cea9e53009189f
BLAKE2b-256 checksum
How to use checksums
34012f5488bb2f98a16677780a4b31e85b659f0cccf8bc674ebff16fbfc48550
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.0.8 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page