Skip to main content

Topsis Implementation Package

Project description

Overview

This is a Python package that provides an implementation of the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) algorithm. TOPSIS is a multi-criteria decision-making method that helps in ranking a set of alternatives by evaluating them based on multiple criteria.

Installation

You can install the package using pip:

pip install topsis-aayushi-102103421

USAGE

from topsis-aayushi-102103421 import topsis

#Example data (replace this with your actual data)

data = { 'Alternative1': [1, 2, 3, 4], 'Alternative2': [4, 3, 2, 1], # Add more alternatives and their values }

#Criteria weights (replace this with your actual weights)

weights = [0.25, 0.25, 0.25, 0.25]

#Criteria impacts ('+' or '-' for each criterion)

impacts = ['+', '+', '+', '-']

#Perform TOPSIS analysis

result = topsis(data, weights, impacts)

#Display the ranking

print("Ranking:", result)

Parameters

data: A dictionary where keys are alternative names, and values are lists representing the performance values for each criterion.

weights: A list of weights corresponding to the importance of each criterion.

impacts: A list of impacts ('+' or '-') corresponding to the desired effect of each criterion.

License

This package is distributed under the MIT License - see the LICENSE file 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-aayushi-102103421-0.1.5.tar.gz (3.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_aayushi_102103421-0.1.5-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file topsis-aayushi-102103421-0.1.5.tar.gz.

File metadata

File hashes

Hashes for topsis-aayushi-102103421-0.1.5.tar.gz
Algorithm Hash digest
SHA256 4683bcbb7311bad99ca33cbd7f2c727a7ba2030bd1ca54a8a468b0f173a1f4bf
MD5 8355eb497256180afc8290de54850bc9
BLAKE2b-256 fe049e9dc7fdf2a03ae908164f113755808d2bf7d359b46718584548b4ea410f

See more details on using hashes here.

File details

Details for the file topsis_aayushi_102103421-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_aayushi_102103421-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 53d5452212e64f95cb79fd694168a4d2852f8666b5367e3a97eb21f898515145
MD5 99a864c7468853d864974ea32f7dcdd1
BLAKE2b-256 0f4ca7dbc3c96d835014c8eb6303a88f9175f06e9a526787b333ebbcff94f47e

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