Skip to main content

A Python package for Topsis implementation

Project description

Topsis-Atishay-102316056

A Python package to implement the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS).

Overview

TOPSIS is a multi-criteria decision analysis method that is based on the concept that the chosen alternative should have the shortest geometric distance from the positive ideal solution and the longest geometric distance from the negative ideal solution.

This package allows you to perform TOPSIS analysis on a dataset provided in a CSV file.

Installation

You can install the package using pip:

pip install Topsis-Atishay-102316056

Usage

You can use this package from the command line:

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

Arguments

  1. InputDataFile: Path to the input CSV file containing the data. The first column should be the object/alternative name (e.g., M1, M2, M3) and will not be used in the calculation. The remaining columns must be numeric.
  2. Weights: A comma-separated string of weights for the criteria (e.g., "1,1,1,2").
  3. Impacts: A comma-separated string of impacts for the criteria, either '+' or '-' (e.g., "+,+,-,+").
  4. ResultFileName: The name of the output CSV file where the results (including Topsis Score and Rank) will be saved.

Example

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

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

Uploaded Source

File details

Details for the file topsis_atishay_102316056-1.0.0.tar.gz.

File metadata

File hashes

Hashes for topsis_atishay_102316056-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fa10aa76d3644fce7e0a3bad4c8e16309be1daf9c2cd372a4c57c6274b73b3de
MD5 da6e0c60d065575ebdb1d40271f4a568
BLAKE2b-256 0589ad3823a3540b7cb80adbbab62cd3ed208148ecb5452f8ec3bef0826de536

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