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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

Topsis_aditya_102217092-0.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for Topsis_aditya_102217092-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 333f486af834650f7452c2251d1cbd0c2e4e5514e4cadba7830dc59a30ee806e
MD5 f094fd440a51940c56beb9b673413512
BLAKE2b-256 da355f050e1442f0e3b915fad87d7a4be13752fbe6d53a627238fcbacbbed7e1

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