Skip to main content

TOPSIS CLI Tool

Project description

Topsis-Nitin-102303918

A command-line Python implementation of the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) algorithm used in Multi-Criteria Decision Making (MCDM).


Features

  • Supports CSV and Excel (.xlsx) input files
  • Implements full TOPSIS ranking method
  • Validates user input and handles common errors
  • Produces decision scores and ranks
  • Lightweight and easy-to-use CLI tool

About TOPSIS

TOPSIS is a popular decision-making technique that ranks alternatives based on their distance from the ideal best and ideal worst solutions.


Installation

pip install topsis-nitin-102303918


Usage

topsis

EXAMPLE: topsis data.xlsx "1,1,1,1" "+,+,+,+" result.csv


Input Rules

  1. First column → Alternative names
  2. Remaining columns → Numeric criteria only
  3. Minimum 3 columns required
  4. Number of weights must equal number of criteria
  5. Number of impacts must equal number of criteria
  6. Impacts must be:
    • → Benefit criterion
    • → Cost criterion

Output

The output file contains: Original dataset Topsis Score Rank Higher score indicates a better alternative.


Dependencies

Automatically installed with the package: pandas numpy openpyxl

Author

Nitin Malhotra

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_nitin_102303918-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

topsis_nitin_102303918-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file topsis_nitin_102303918-0.1.0.tar.gz.

File metadata

  • Download URL: topsis_nitin_102303918-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for topsis_nitin_102303918-0.1.0.tar.gz
Algorithm Hash digest
SHA256 36c4b6ddd87b4884eebb7926beaaf6730f02f9c98a671fa18472290377eb7a94
MD5 9e15155a694c801a435583b38ddfa04a
BLAKE2b-256 1da7940e3bee0c5dd8d4ea1a8bec3392f5fc9d0efe56dcd96ba5af4236aaaabb

See more details on using hashes here.

File details

Details for the file topsis_nitin_102303918-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_nitin_102303918-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4897540137da946ce67a46b32f278d974e9d42f69ba41005082ef4f1fed39cb4
MD5 a1a98b8b55301cc8c439d4a663c421d0
BLAKE2b-256 e0f479dc1db25b607dddab4040f092a779e598cfe3f376387b406bbc0f2c5b1d

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