Skip to main content

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

Project description

Topsis Python Package

Developed by: Aditya Pandey - 102217092

Overview

The Topsis (Technique for Order of Preference by Similarity to Ideal Solution) method is a popular multi-criteria decision-making technique. It helps to evaluate and select the best alternative from a set of options based on their proximity to the ideal solution. This Python package implements the Topsis method, making it easy to apply the technique on datasets with multiple criteria.

Features

  • Computes Topsis scores based on input data, weights, and impacts.
  • Ranks alternatives according to the Topsis methodology.
  • Supports data input through Excel files.
  • Provides an easy-to-use command-line interface for seamless integration.

Installation

To install the Topsis Python package, use pip with the following command:

pip install 102217092-Aditya-topsis

Usage

Command-Line Input

To use the Topsis package from the command line, run the following command:

python <program.py> <InputDataFile> <Weights> <Impacts> <ResultFileName>
  • Input File Type: The input file must be an Excel file.
  • Data Format: The second to last columns of the data file MUST contain numeric values.
  • Impacts: Impacts should be either '+' (positive) or '-' (negative).
  • Weights and Impacts: Weights and impacts should be enclosed in double quotes and separated by commas.
  • Output: The output will include a 'Topsis Score' column and a 'Rank' column added to the data. The results will be saved to a CSV file specified in the command-line arguments.

Example

Command-Line Input Example

python 102217092.py data.csv "1,1,1,1,1" "+,+,-,+,-" 102217092-result.csv

Project details


Release history Release notifications | RSS feed

This version

0.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

topsis-adityapandey-102217092-0.5.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

topsis_adityapandey_102217092-0.5-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file topsis-adityapandey-102217092-0.5.tar.gz.

File metadata

File hashes

Hashes for topsis-adityapandey-102217092-0.5.tar.gz
Algorithm Hash digest
SHA256 cc35257c18870a961fdfdd81d528f9e9e404d01a56bede7d94c5def9d6649ff0
MD5 bcaa67515a5786a9ed2b43990e4e21f2
BLAKE2b-256 0644d334b96c2565ce3d0d19f31c8e123c99346f0eb24a2fd824b94a82ab2f2b

See more details on using hashes here.

File details

Details for the file topsis_adityapandey_102217092-0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_adityapandey_102217092-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 46652f9c280ffb8602d47d2dc32f9632ec8d13a363bdef88133af4458afb547d
MD5 2ffd7784a2a59769e136799f45d8fb60
BLAKE2b-256 2da98fd386b51275643b6f0e8771ec283b9f3e287ef01c2993d7ca671e851b1d

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