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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for topsis_sumit_garg_102203514-0.1.2.tar.gz
Algorithm Hash digest
SHA256 214b865bcf0123c062d05d16e8f7adb78e46b20153f360d253c1b3b05705ae79
MD5 05351427176c5f3fbd8d3aff30898ecf
BLAKE2b-256 2aa1c82d242f2c7a9997e29dce716c15223a12ac5e7307d3902e3069e9b19a40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Topsis_Sumit_Garg_102203514-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 14df4170988db676de1144f272701e93708b8847b809c308897821dcdc4a6bc5
MD5 f042b1dff3d9ebfeaa7b2b238a11ca00
BLAKE2b-256 a520d7541705cb6e65c4287e881903025e9cb5f1c02e4bd15f806a939c7908e2

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