Skip to main content

Technique for Oder Preference by Similarity to Ideal Solution.

Project description

Technique for Oder Preference by Similarity to Ideal Solution(TOPSIS) for multiple-criteria decision making (MCDM)

TOPSIS

It 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. [LicenseMade with Love in India

INSTALLATION & USAGE

1. Now install the required package by running the following commands :-

 pip install TOPSIS-Ritikkumar-101983054

3.Use the package by running the following commands :-

 import TOPSIS_Ritikkumar_101983054 as ritik_TOPSIS
 ritik_TOPSIS.TOPSIS(inputFilePath,weightList,impactList,OutputFileName)
  • inputFilePath : is the location of input file
  • weightList : this takes the input value of every parameter weights "0.1,0.2,0.3,0.4"
  • impactList : this takes the +ve and -ve as input to take whether to maximize or minimize a parameter
  • outputFileName : is the location of the csv file where u want to save it

EXAMPLE USAGE

import TOPSIS_Ritikkumar_101983054 as ritik_TOPSIS
ritik_TOPSIS.TOPSIS('./Input.csv',[0.25,0.25,0.25,0.25],['-', '+', '+', '+'],'Output.csv')

INPUT

Model Corr Rseq RMSE Accuracy
M1 250 16 12 5
M2 200 16 8 3
M3 300 32 16 4
M4 275 32 8 4
M5 225 16 16 2

OUTPUT

Model Corr Rseq RMSE Accuracy Topsis Score Rank
M1 250 16 12 5 0.5254 2
M2 200 16 8 3 0.2641 5
M3 300 32 16 4 0.7358 1
M4 275 32 8 4 0.52082 3
M5 225 16 16 2 0.37274 4

BUILT BY 🤝

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_Ritikkumar_101983054-1.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

TOPSIS_Ritikkumar_101983054-1.2.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file TOPSIS_Ritikkumar_101983054-1.2.0.tar.gz.

File metadata

  • Download URL: TOPSIS_Ritikkumar_101983054-1.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for TOPSIS_Ritikkumar_101983054-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a13162cae14f5bed2cdddfc4a359d7816d464d0a739d9e7503f9c81e51fbef93
MD5 94fe4bddcc5e80728d7e1b8ad621c361
BLAKE2b-256 6a7ed790fa170979c8b8ca28438a6b1852156787ab34499754249634ecc669b0

See more details on using hashes here.

File details

Details for the file TOPSIS_Ritikkumar_101983054-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: TOPSIS_Ritikkumar_101983054-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for TOPSIS_Ritikkumar_101983054-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b404c551270c436faa510ff4c04e71347ecde38437a33cdfd0302aa4113a8572
MD5 315ea8a4fa18c77f98dc2668b83e81bc
BLAKE2b-256 4a1775a7fa4c61feef19538055f1dab9f729942c30f2a5719036c91b4c97bd0e

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