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.1.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.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for topsis_sumit_garg_102203514-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f8512c560a6a81619240be075931df3e166655605e10c28436cd9c919cbff18a
MD5 aebb15387820962adb80745b155cedb8
BLAKE2b-256 5f3328831e3391f38e0cc2d74924afda59dc068d49d31a2d777a63a0e0179718

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Topsis_Sumit_Garg_102203514-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ad2c6f5c33814141bf38d0cdf3f46602cb277e5a079159885fbff6b0701e523
MD5 ea14f910109a19ebc5c5c5a379d49f23
BLAKE2b-256 51c50c7727c6d9e4aef130d5fff9a58142bc8aca6fa6d777690c4a8b8567c244

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