Skip to main content

This is a topsis package of version 0.7

Project description

Topsis_Sarisha_102003445

TOPSIS

Submitted By: Sarisha Aggarwal - 102003445.

Type: Package.

Title: TOPSIS method for multiple-criteria decision making (MCDM).

Version: 1.0.0.

Date: 2023-01-23.

Author: Sarisha Aggarwal.

Maintainer: Sarisha Aggarwal saggarwal4_be20@thapar.edu.

Description: Evaluation of alternatives based on multiple criteria using TOPSIS method..


What is TOPSIS?

Technique for **Order **Preference by **Similarity to **Ideal **Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method. TOPSIS chooses the alternative of shortest Euclidean distance from the ideal solution, and greatest distance from the negative-ideal solution.


How to install this package:

pip install Topsis-Sarisha-102003445

In Command Prompt

topsis data.csv "1,1,1,1,1" "+,+,+,+,+" result.csv

Input file (data.csv)

The decision matrix should be constructed with each row representing a Model alternative, and each column representing a criterion like Accuracy, R2, Root Mean Squared Error, Correlation, and many more.

Model P1 P2 P3 P4 P5
M1 0.7 0.5 7 37 11.3
M2 0.8 0.6 7 46 13.4
M3 0.7 0.5 7 48 14
M4 0.9 0.8 7 44 13.2
M5 0.9 0.9 5 37 11.1
M6 0.9 0.6 3 67 18
M7 0.9 0.5 7 39 11.8
M8 0.9 0.9 5 46 13.2

Weights (weights) is not already normalised will be normalised later in the code.

Information of benefit positive(+) or negative(-) impact criteria should be provided in impacts.


Output file (result.csv)

Model P1 P2 P3 P4 P5 Topsis Score Rank
M1 0.7 0.5 7 37 11.3 0.28016 5
M2 0.8 0.6 7 46 13.4 0.8292 1
M3 0.7 0.5 7 48 14 0.17536 8
M4 0.9 0.8 7 44 13.2 0.25 7
M5 0.9 0.9 5 37 11.1 0.56483 3
M6 0.9 0.6 3 67 18 0.27313 6
M7 0.9 0.5 7 39 11.8 0.55075 4
M8 0.9 0.9 5 46 13.2 0.65029 2

The output file contains columns of input file along with two additional columns having *Topsis_score* and *Rank*

Project details


Release history Release notifications | RSS feed

This version

0.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Topsis_Sarisha_102003445-0.7.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Sarisha_102003445-0.7-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file Topsis_Sarisha_102003445-0.7.tar.gz.

File metadata

  • Download URL: Topsis_Sarisha_102003445-0.7.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for Topsis_Sarisha_102003445-0.7.tar.gz
Algorithm Hash digest
SHA256 2595660503cac2105578e01eee69b4c6e3e20f1903b9c2186309b9004f7f54b2
MD5 b0b866fc40bc2427ec4e9103aaff0cc5
BLAKE2b-256 94655a6b40ce2e22b378a4b498bd454690a03e264554eb538fa5d93ade947a6c

See more details on using hashes here.

File details

Details for the file Topsis_Sarisha_102003445-0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Sarisha_102003445-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 163f34a21af4670decbac933deecd8c7d69cac3371824ec010c4615c9c695a5c
MD5 64c0b8a2440831901dd0613433ffeeaf
BLAKE2b-256 9c44ed25f9a7889dcfb4a133b918fb28c4b20869e808f84d61d91665f02d536a

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