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.1.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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: TOPSIS_Ritikkumar_101983054-1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 23cd4f61bcae33ba286ee4a25970783fe3af442c2ff7f15305cfcc058667bbbc
MD5 8ea55ea2b5d97fe979e71445b50bde6e
BLAKE2b-256 7f779457251b0f23ce78ac534c343342d06b2629e9dd6f98b4dba6533bb5c30d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: TOPSIS_Ritikkumar_101983054-1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ccb2c79026c4fcd6d47b5cb306f9cf2a546c83bf4c631627c472867ff3d65dba
MD5 a9cc2cbdf4f20ec5b60fa1db3527bf9c
BLAKE2b-256 51cfc72747190b97b7f4072806758c5c3f78a80e2c3ac9072991da9949a79034

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