Skip to main content

TOPSIS CLI Tool

Project description

Topsis-Arshia-102317268

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-arshia-102317268


Usage

topsis <inputfile> <weights> <impacts> <outputfile>

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

Arshia

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_arshia_102317268-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_arshia_102317268-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_arshia_102317268-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_arshia_102317268-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5f2add2e4046b31cd36547299c440b741f493150905191f63582d46a2f1faa05
MD5 fa976bbcf6b47c942b471cfa6d60d9b7
BLAKE2b-256 50153ed9a4206222b34e6c6de30c3ef20405c99e7074c3ae0a1f7769a3c06490

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_arshia_102317268-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d25081131f938306f82d1ff63659468878d21c2fc2f6fce3880a49b70b767112
MD5 6c62f62d81fd1ae0146189086d07694d
BLAKE2b-256 5cbc04c2490d59a4bf8d8e9356e87cb56696a8c3bd3fa44d72889e486e3446d5

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