Skip to main content

A Python package for TOPSIS multi-criteria decision-making.

Project description

TOPSIS Implementation in Python

This repository contains a Python implementation of the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS), a multi-criteria decision-making (MCDM) method. TOPSIS is used to rank and evaluate alternatives based on multiple criteria, considering both their closeness to an ideal solution and their distance from a nadir (worst-case) solution.

Features

  • Accepts input data from a CSV file for analysis.
  • Normalizes numerical data using vector normalization.
  • Applies user-defined weights and impacts (+ for benefit criteria, - for cost criteria) to compute the weighted normalized decision matrix.
  • Calculates ideal and anti-ideal solutions and their respective distances for each alternative.
  • Computes the TOPSIS score and assigns ranks to alternatives.
  • Outputs results including TOPSIS scores and ranks in a CSV file.

Installation

Clone the repository and install the required Python libraries:

pip install pandas numpy scipy

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-102203210-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

topsis_102203210-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file topsis-102203210-1.0.0.tar.gz.

File metadata

  • Download URL: topsis-102203210-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.1

File hashes

Hashes for topsis-102203210-1.0.0.tar.gz
Algorithm Hash digest
SHA256 af052cc5056260eecd5d29e58e6d87969df6b1c79b488b62603cffb33ff41cd4
MD5 ff9cc3fef11aad10a46b9d1ae6790c88
BLAKE2b-256 45c92eaa06fac863b2148efc736a35fc49825ff296131d02a723d45e9b0c8694

See more details on using hashes here.

File details

Details for the file topsis_102203210-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_102203210-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ba17a6310e0121ce24e5394bc67df85727eb2c8d3e5133d9fa94c66aa39e9a6
MD5 e4f6691bfbda735c15c5860dbf48e262
BLAKE2b-256 a3784d4b99030ca63f91725f7e00cd7ddd4868ab7d5cae1e9cb08cb7e9edbe9a

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