Skip to main content

A command-line Python package to implement the TOPSIS method.

Project description

TOPSIS-Vishard-102317240

📝 Overview

Topsis-Vishard-102317240 is a Python library for performing Multi-Criteria Decision Making (MCDM) using the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) algorithm. It allows you to rank alternatives based on multiple conflicting criteria, providing a robust mathematical approach to decision-making.

This package is designed to be simple, efficient, and easy to integrate into your data analysis workflows.


🔧 Installation

You can install the package directly from PyPI using pip:

pip install Topsis-Vishard-102317240

🚀 Usage

The package provides a command-line interface (CLI) for ease of use.

Syntax

topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>

Parameters

  • InputDataFile: Path to the input CSV file containing the data.
  • Weights: Comma-separated numbers representing the importance of each criterion (e.g., 1,1,1,2).
  • Impacts: Comma-separated signs (+ or -) indicating if a criterion is beneficial (+) or non-beneficial (-).
  • ResultFileName: Path where the output CSV file with results will be saved.

Example

topsis data.csv "1,1,1,1,2" "+,+,-,+,+" result.csv

📊 Input Data Format

The input CSV file should strictly follow this structure:

  1. First Column: Object/Alternative Name (e.g., M1, M2, M3).
  2. Subsequent Columns: Numeric values for each criterion.
Fund Name P1 P2 P3 P4 P5
M1 0.94 0.88 6.5 38.8 11.78
M2 0.69 0.48 4.4 59.8 16.34
... ... ... ... ... ...

📤 Output

The output file will contain the original data along with two new columns:

  • Topsis Score: The calculated score for each alternative (higher is better).
  • Rank: The ranking of the alternative based on the score (1 is best).
Fund Name ... Topsis Score Rank
M5 ... 0.6988 1
M8 ... 0.5955 2
... ... ... ...

📜 License

This project is licensed under the MIT License.

👤 Author

Vishard Mehta

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_vishard_102317240-1.0.1.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_vishard_102317240-1.0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file topsis_vishard_102317240-1.0.1.tar.gz.

File metadata

File hashes

Hashes for topsis_vishard_102317240-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2af792dcacfca510694272dbffab3cb2da3613a13d93696659345a190d33492d
MD5 17193d04c99450f6d878caec62d87245
BLAKE2b-256 32dfe542c3a68834246e6669a37fc47885fc7c53e27abea40e5a25507215dcb4

See more details on using hashes here.

File details

Details for the file topsis_vishard_102317240-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_vishard_102317240-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 761fb37d41e841611dd8eaac0ee3f598d6dd692142d0c171a9036e0a45eed8fa
MD5 96b2992bc1bf4cccf7156d6b6fdf7b25
BLAKE2b-256 51e7a9a8a3a5314bda0fc0c56e45c41322babe0a3eb6205590dc99d28bc933af

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