Skip to main content

Python Package for TOPSIS

Project description

TOPSIS Package in Python

Submitted by : Sehajpreet Kaur Roll no : 101803191

UCS538


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


How To Use

The package TOPSIS-SehajpreetKaur-101803191 can be run though the command line as follows:

>> pip install TOPSIS-SehajpreetKaur-101803191
>> topsis data.csv "1,1,1,2" "+,+,-,+" result.csv

Note:

  • Usages: topsis data.csv "1,1,1,2" "+,+,-,+" result.csv

  • 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.6391330141342582.0
M20.660.442.8963.070.2125918296927795.0
M30.560.311.5762.870.4078456776130514.0
M40.820.672.6870.190.5191532395007473.0
M50.750.561.380.390.8282665851935811.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.


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-SehajpreetKaur-101803191-0.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file TOPSIS-SehajpreetKaur-101803191-0.0.1.tar.gz.

File metadata

  • Download URL: TOPSIS-SehajpreetKaur-101803191-0.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for TOPSIS-SehajpreetKaur-101803191-0.0.1.tar.gz
Algorithm Hash digest
SHA256 088776766606bf0e2d31368078d5f88b27c46e86e376379770009bf73d65e718
MD5 a74dd2e304b164c6a52ef4b526a81aa4
BLAKE2b-256 f211185a2b2f6ea58cf4cf69f6536931bd59f52638ca13c31155d182f292ce02

See more details on using hashes here.

File details

Details for the file TOPSIS_SehajpreetKaur_101803191-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: TOPSIS_SehajpreetKaur_101803191-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for TOPSIS_SehajpreetKaur_101803191-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4777cb2f222ddfa16d6ad65bc4f2c968d62446b5b72f4e0d7d792836ec81db28
MD5 d9866f3f775003f10ad8a6a7f4f882fd
BLAKE2b-256 058295f12a2471b637b8a6a6637ace097e5e1798fafb7e77a0dd5be6f3cd3ace

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page