Skip to main content

Implementation of Topsis

Project description

TOPSIS

Code by: Kashish Mehra


Introduction

The Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) developed by Hwang & Yoon,is a technique to evaluate the performance of alternatives through the similarity with the ideal solution. According to this technique, the best alternative would be one that is closest to the positive-ideal solution and farthest from the negative-ideal solution. The positive-ideal solution is one that maximizes the benefit criteria and minimizes the cost criteria. The negative-ideal solution maximizes the cost criteria and minimizes the benefit criteria. In summary, the positive-ideal solution is composed of all best values attainable of criteria, and the negative-ideal solution consists of all the worst values attainable of criteria.

How to run

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

Open Terminal and input the following commands

pip install Topsis-Kashish-101983051

python

from topsis.code import topsis topsis("data.csv","1,1,1,2","+,+,-,+","result.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 Kashish Mehra

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-Kashish-101983051-1.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Kashish_101983051-1.1.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Kashish-101983051-1.1.0.tar.gz.

File metadata

  • Download URL: Topsis-Kashish-101983051-1.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for Topsis-Kashish-101983051-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4a4dcdf328522378fb8de9776bec901ba72bd195ebb5af6bf8030714346fb645
MD5 800d1da71a9a864d32f6fc7ca21713d0
BLAKE2b-256 135abfc74f9e99deaaf991cf1b892c0018cfc9a28a833fce534fb59e202e9aca

See more details on using hashes here.

File details

Details for the file Topsis_Kashish_101983051-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: Topsis_Kashish_101983051-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for Topsis_Kashish_101983051-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1c565de18b3bf0ce0338872198058d0c13b77d6f055ee8e011b7215d9fc1d9d
MD5 145f07b2a1e3d62be60a83e8b6379041
BLAKE2b-256 2e1d68db90802cb3bcd8d342dd2da21ae224480102ec0bd89c29960b9cea4516

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