Skip to main content

Topsis Package

Project description

TOPSIS Package

This package implements the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS), a multi-criteria decision analysis (MCDA) method used for ranking and selecting a set of alternatives based on their distance to an ideal solution.

Features

  • TOPSIS Implementation: Rank a set of alternatives based on multiple criteria.
  • Ideal and Negative Ideal Solution Calculation: Automatically calculate the positive and negative ideal solutions.
  • Normalization: Normalize the decision matrix to make the comparison meaningful.
  • Weighted Sum Model: Support for weighted decision matrix for each criterion.
  • Distance Calculation: Use Euclidean distance to calculate closeness to ideal solutions.

Installation

You can install the package via pip or manually by cloning the repository.

pip install topsis

Alternatively, you can clone the repository and install the package manually:

git clone https://github.com/yourusername/topsis.git
cd topsis
python setup.py install

Input Format

  • Decision Matrix: A list of lists where each inner list represents an alternative, and each element within that list represents the value for a particular criterion.
  • Weights: A list where each value represents the weight for a corresponding criterion. The weights should sum up to 1 or should be proportionally normalized.
  • Impacts: A list where each value represents the impact for a corresponding criterion. Use 1 for beneficial criteria (higher values are better) and -1 for non-beneficial criteria (lower values are better).

Output Format

The output will be a ranking of the alternatives based on their closeness to the ideal solution, starting with the best.

Requirements

  • Python 3.x
  • Pandas
  • NumPy

License

This project is licensed 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_guramrit_102203234-1.0.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Guramrit_102203234-1.0.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file topsis_guramrit_102203234-1.0.2.tar.gz.

File metadata

File hashes

Hashes for topsis_guramrit_102203234-1.0.2.tar.gz
Algorithm Hash digest
SHA256 45b988419d9201a89340384d8dbe39b3d93f5b8c3dd0bacd699c9bb07cb06d20
MD5 46eab5166f913921bcc91b5e57c0f685
BLAKE2b-256 7089b817ff348daf6d710c0b93ac3cd2c357b9b99149731e9fd71615a4b472a3

See more details on using hashes here.

File details

Details for the file Topsis_Guramrit_102203234-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Guramrit_102203234-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 541d712a73442d60f67a10a6fb7e413f02541813157cac9d08d3467c6d354284
MD5 56d96eaddf94fb05fe3c87415b438302
BLAKE2b-256 f5ce9f7c24ef2796efa54340065a763cc00c0acc01e505c304b27ddaee333ef9

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