Skip to main content

A Python package for implementing the TOPSIS algorithm.

Project description

Topsis-Soumya-102203802

Overview

Topsis-Soumya-102203802 is a Python package that implements the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method for multi-criteria decision-making. It is designed to help users rank alternatives based on their proximity to an ideal best and worst solution.

This package is built to assist decision-makers in evaluating multiple alternatives using several criteria, offering a simple interface for performing the TOPSIS analysis with flexibility for custom weights and impacts for decision criteria.

Installation

You can install Topsis-Soumya-102203802 from PyPI using pip:

pip install Topsis-Soumya-102203802

Additionally, make sure you have the required dependencies installed:

pip install pandas numpy pyexcel

Features

  • TOPSIS Ranking: Computes the rankings for alternatives based on their similarity to the ideal solution.
  • Custom Weights: Supports custom weights for each decision criterion.
  • Custom Impacts: Allows specifying the impact of each criterion (maximize or minimize).
  • CSV/Excel Input: Accepts input datasets in CSV or Excel format.
  • Output: The package generates an output CSV or Excel file with two additional columns: Topsis Score and Rank.
  • Command-Line and Programmatic Usage: Available both as a command-line tool and as a Python package for use in scripts.

Usage

Command Line Interface

topsis.py <InputDataFile> <Weights> <Impacts> <ResultFileName>

##Parameters:

InputDataFile: Path to input dataset (CSV/XLSX) Weights: Comma-separated criterion weights (e.g., "1,2,3") Impacts: Comma-separated criterion impacts ('+' for maximize, '-' for minimize) ResultFileName: Output file path for results

##Input Data Format ##File Requirements

  1. Must contain at least 3 columns
  2. First column: Names of alternatives
  3. Columns 2 onwards: Numeric values for criteria

##Output Format #The package generates a CSV file with the original data plus two additional columns:

  1. Topsis Score: Calculated similarity to ideal solution
  2. Rank: Final ranking of alternatives

##Prerequisites #Python 3.6 or higher ##Dependencies: pandas numpy pyexcel ##License MIT License

##Author Soumya (GitHub Profile)

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_soumya_102203802-1.0.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Soumya_102203802-1.0.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file topsis_soumya_102203802-1.0.2.tar.gz.

File metadata

  • Download URL: topsis_soumya_102203802-1.0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for topsis_soumya_102203802-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0f428fcd2919a43a93fc1b9e65176e08cc600cfacc521428bc227a82e62c9c27
MD5 3749a8b37f78855dec67bae1222d5489
BLAKE2b-256 c07a026d5833c62553dc05d1e91061e7fdfda80fe449fad5a55cf6d52a063b21

See more details on using hashes here.

File details

Details for the file Topsis_Soumya_102203802-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Soumya_102203802-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e877ea22713d6e6b930331dc3ae096628886e43f8466f1ed59a0132b28debba5
MD5 5bef5e72da8fed8c844d7cdfc1b914bf
BLAKE2b-256 b6688df769717b29e85eedd73568ade5c1cdb72c49d831585d9229e8abf8ccf2

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