Skip to main content

TOPSIS algorithm as a command-line tool

Project description

Topsis-Py (CLI-Based Python Package)

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

This package is designed to be academically correct, easy to use, and PyPI-ready.


📌 Project Highlights

Feature Description
Algorithm Standard TOPSIS methodology
Interface Command-Line Interface (CLI)
Input CSV-based decision matrix
Validation Strict input & argument checks
Output Ranked alternatives with scores
Documentation Clear theory + workflow diagrams

❓ What is TOPSIS?

TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) is a widely used
Multi-Criteria Decision Making (MCDM) technique.

🔑 Core Idea

The best alternative is the one that:

  • Is closest to the ideal best solution
  • Is farthest from the ideal worst solution

🌍 Common Applications

Domain Example Use
Engineering Design or component selection
Business Supplier & product evaluation
Finance Investment ranking
Data Science Model or algorithm comparison

🔄 TOPSIS Algorithm Flow

flowchart TD
    A[Decision Matrix] --> B[Normalization]
    B --> C[Apply Weights]
    C --> D[Ideal Best Solution]
    C --> E[Ideal Worst Solution]
    D --> F[Distance from Ideal Best]
    E --> G[Distance from Ideal Worst]
    F --> H[TOPSIS Score]
    G --> H
    H --> I[Final Ranking]

🧠 Program Workflow

flowchart LR
    A[CLI Arguments] --> B[Input Validation]
    B --> C[Load CSV File]
    C --> D[TOPSIS Computation]
    D --> E[Score & Rank Calculation]
    E --> F[Write Output CSV]

📦 Installation

pip install topsis-swastik-102303585

🚀 Usage

python topsis.py <input_file> <weights> <impacts> <output_file>

Example:

python topsis.py data.csv "1,2,1,1" "+,+,-,+" result.csv

⚠️ Limitations

  • Categorical data not supported
  • Missing values not allowed
  • Weights must be positive
  • Impacts must be '+' or '-'

📜 License

MIT License

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

Uploaded Source

Built Distribution

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

topsis_swastik_102303585-1.0.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for topsis_swastik_102303585-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bbd9a594fbcd0992abf06dee07775c3473636d2c784df7b19d3dead2fd38cb1c
MD5 ca07ddaf1944e0dd7a01f35d99e05b53
BLAKE2b-256 689d2c3d2b2612b87c6aae66e4e6323e959b001aea2e725fa9a8e8e93a52ac6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_swastik_102303585-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a7f5783e8d714d4198101de1a02cda9f32df3b63f77a81c61dca73a149d3bac8
MD5 a2ad45dc634e64bc4c84500dc0e0e0fa
BLAKE2b-256 14728b2ea30916fab6b62962fc6910d309e853d4aaf0c598594ea2ebc05d7a16

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