Skip to main content

Topsis 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-khyati-102103466

USAGE

from topsis-khyati-102103466 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-Khyati-102103436-0.1.0.tar.gz (2.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_Khyati_102103436-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Khyati-102103436-0.1.0.tar.gz.

File metadata

  • Download URL: Topsis-Khyati-102103436-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for Topsis-Khyati-102103436-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c76cf60961af925c1955c7a44fc22a1e2ed31691fe0dab75bb8b804e47cf1b13
MD5 2430194af31ed3b1d4420b5ff27d7b6d
BLAKE2b-256 719a16f167170b17db6315abd0593c0962c317718f74c87bdd94f0ad202c90b8

See more details on using hashes here.

File details

Details for the file Topsis_Khyati_102103436-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Khyati_102103436-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2934e4cc061c5d904b4790e4029db23c4b1c473b487e8ec71d6cd3e1c66b489
MD5 411273eb30209c0d343dc394c4cb2339
BLAKE2b-256 f74986005b8c49458b74da95b5be4a0322b59be2421c75ab2ca9a86ce55c4536

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