Skip to main content

A Python package for TOPSIS calculation

Project description

TOPSIS

Submitted By: Sumit Garg


TOPSIS: Technique for Order of Preference by Similarity to Ideal Solution

TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) is a multi-criteria decision-making method developed in the 1980s. It identifies the best alternative by minimizing the Euclidean distance from the ideal solution and maximizing the distance from the negative-ideal solution.


Key Features

Robust TOPSIS Algorithm

This package provides an efficient and reliable implementation of the TOPSIS algorithm. It considers both positive and negative ideal solutions to calculate the relative closeness of alternatives to the ideal solution.

User-Friendly Interface

Designed for ease of use, the package allows users to input decision matrices effortlessly. Its simple API abstracts the complexity of the TOPSIS method, making it accessible for all users.

Flexible Weight Customization

Users can assign weights to each criterion, reflecting their relative importance in the decision-making process. This ensures flexibility and adaptability across different scenarios.

Sensitivity Analysis

The package includes tools for conducting sensitivity analysis, enabling users to understand how changes in criteria weights influence the final decision. This feature allows for deeper insights and informed decision-making.

Clear and Intuitive Results

Results are presented with ranked alternatives based on their closeness to the ideal solution. The package also generates detailed reports and visualizations to aid in interpreting the decision-making process.

Seamless Python Integration

Fully compatible with Python 3.x, the package integrates seamlessly into data science and analytics workflows. It can be used in Jupyter notebooks, scripts, or incorporated into larger applications.


How to install this package:

>> pip install Topsis-Sumit-Garg-102203514

In Command Prompt

>> python3 <package_name> data.csv "1,1,2,1,1" "+,+,-,+,-" "result.csv"

alt text

Example Usage

Command

python -m Topsis_Sumit_Garg_102203514 "path/data.csv" "1, 1, 2, 3, 1" "+,-,+,-,-" " "result.csv" output.csv

Output CSV (result.csv)

Fund Name,P1,P2,P3,P4,P5,Topsis Score,Rank M1,0.91,0.83,6.0,53.0,15.19,0.5291896486216583,7 M2,0.88,0.77,4.1,61.1,16.71,0.23405453078004776,6 M3,0.67,0.45,3.5,59.4,16.01,0.2950515410938471,4 M4,0.83,0.69,4.8,44.9,12.81,0.5757075943328146,1 M5,0.74,0.55,6.7,66.3,18.57,0.4554328900694114,5 M6,0.6,0.36,4.0,37.8,10.69,0.6096687433166923,3 M7,0.72,0.52,4.4,40.7,11.59,0.6135283003946568,8 M8,0.73,0.53,4.4,66.8,18.12,0.24793165958287922,2

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_sumit_garg_102203514-0.1.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Sumit_Garg_102203514-0.1.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file topsis_sumit_garg_102203514-0.1.3.tar.gz.

File metadata

File hashes

Hashes for topsis_sumit_garg_102203514-0.1.3.tar.gz
Algorithm Hash digest
SHA256 147d1d3280047e9d5f4f6b834f9425b454d8c99bc0fc22be20810ee090e89075
MD5 52a0e2a328b3baf35b3230f7b784f980
BLAKE2b-256 c61b4d6066c7a2bec4d1064f0c9117d5e54727b1f934268b3c6a49bd32bee4c0

See more details on using hashes here.

File details

Details for the file Topsis_Sumit_Garg_102203514-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Sumit_Garg_102203514-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e9ea3c5d9847a0bfe5edd242b89ba0135f5dc330f0876a378f8aa9f83ac165d5
MD5 9a875e486e97c84e2a9a74ac61eae60c
BLAKE2b-256 55bf8584184ebde5a4d7ed32b1bfe4e4fd605d6d07e58f1c4c9f7c97fbbf0133

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