Skip to main content

A Python implementation of the TOPSIS method for multi-criteria decision making.

Project description

TOPSIS - Technique for Order Preference by Similarity to Ideal Solution

TOPSIS is a multi-criteria decision analysis method. It is based on the concept that the chosen alternative should have the shortest geometric distance from the positive ideal solution and the longest geometric distance from the negative ideal solution.

Features

  • Easy implementation of TOPSIS in Python.
  • Suitable for ranking and decision-making tasks.
  • Handles datasets with multiple criteria and alternatives.

Installation

You can install the package using pip:

pip install 102203658_Suvit_Kumar

## Usage

from 102203658_Suvit_Kumar import topsis

# Example usage
criteria_weights = [0.4, 0.3, 0.3]
dataset = [
    [250, 16, 12],
    [200, 20, 8],
    [300, 12, 10],
]
impact = ['+', '+', '-']

ranked_alternatives = topsis(dataset, criteria_weights, impact)
print(ranked_alternatives)

## License
This project is licensed under the MIT License.

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

102203658_suvit_kumar-1.0.2.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

102203658_Suvit_Kumar-1.0.2-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file 102203658_suvit_kumar-1.0.2.tar.gz.

File metadata

  • Download URL: 102203658_suvit_kumar-1.0.2.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for 102203658_suvit_kumar-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ed1c54011b2153472c236d957d26b3bb13225fc5e2da96c86fddad1cfe2e4c82
MD5 34cde7ca5de511221bc61c8f788adc09
BLAKE2b-256 b19e76bccb3ddc9cbcf0ed8eb212235ec66415d72cf8563cb60debb5211c38a0

See more details on using hashes here.

File details

Details for the file 102203658_Suvit_Kumar-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for 102203658_Suvit_Kumar-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6a6722b3dc425c341eb8b6cb4bc3c8309996b40abd2e39fc2e1393b5a0319d90
MD5 96be8441da7069ed29424d3b26c3d1c4
BLAKE2b-256 ecffe65c298aad46c5ccc625cee5bed745a15529fb04032baa7664d1dd5341e4

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