Skip to main content

A Python package to perform Topsis analysis.

Project description

TOPSIS Command Line Program

A Python program to perform the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) analysis on a given dataset.

Description

TOPSIS is a multi-criteria decision-making approach that ranks a set of alternatives based on their distance to the ideal best and ideal worst solutions. This program:

  1. Normalizes the criteria values.
  2. Applies user-defined weights.
  3. Identifies the ideal best (v+) and ideal worst (v-) values.
  4. Calculates the Euclidean distance of each alternative from these ideal solutions.
  5. Computes the TOPSIS score (dist_worst / (dist_best + dist_worst)).
  6. Ranks the alternatives (higher score → better rank).

Requirements

  • Python 3.x
  • pandas (Install via pip install pandas)
  • numpy (Install via pip install numpy)

File Structure

  • Script Name: setup.py

  • Input CSV File: 102203043-data.csv

    • Must contain at least 3 columns.
    • The first column is the identifier (e.g., M1, M2, ...).
    • The remaining columns are numeric (no missing or non-numeric values).
  • Output CSV File: 102203043-result.csv

    • Will contain the original columns plus two additional columns:
      • Topsis Score
      • Rank

Usage

Open a terminal/command prompt in the directory containing your Python script and run:

python setup.py <InputDataFile> <Weights> <Impacts> <ResultFileName>

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_himanshubhumbla_102203043-0.2.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file topsis_himanshubhumbla_102203043-0.2.0.tar.gz.

File metadata

File hashes

Hashes for topsis_himanshubhumbla_102203043-0.2.0.tar.gz
Algorithm Hash digest
SHA256 de180e9fcd180dbff48bae8a937f93930592199e8a7db97a787c91d649a82d64
MD5 c889ad63012d1a6fd3117d0916864493
BLAKE2b-256 61106ba587a59869f0200a0331d2f3753ad0b7e87f02c0e425abb62ce927de34

See more details on using hashes here.

File details

Details for the file topsis_HimanshuBhumbla_102203043-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_HimanshuBhumbla_102203043-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 950d1c196d581695e0443a6b62369bb1d8376c7d81eaf07cf209202fbdcb59c4
MD5 39f41df58b6ed4fd14ba8f8ee5621ac7
BLAKE2b-256 08a049eb5863b195842c8c46223a2780314aba2d7d5d365bcdc36507392849e5

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