Skip to main content

A Python package for TOPSIS decision making

Project description

Topsis-Kunal-102303330

This project is a Python Command Line Implementation of TOPSIS (Technique for Order Preference by Similarity to Ideal Solution).

It allows you to rank alternatives based on multiple criteria using weights and impacts provided by the user.


Installation:

pip install topsis-102303330

🚀 Features

✅ Works with both .csv and .xlsx files
✅ Command-line based (as required)
✅ Performs all validation checks
✅ Handles file errors and invalid input
✅ Implements full TOPSIS mathematical procedure
✅ Outputs ranked result file with Topsis Score and Rank


What is TOPSIS? 🧠

TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) is a multi-criteria decision-making (MCDM) method.

The best alternative is the one that is:

  • Closest to the ideal best solution
  • Farthest from the ideal worst solution

📂 Input File Format

Your input file must be either:

  • .csv OR
  • .xlsx

Format:

Alternative C1 C2 C3 C4 C5
A1 0.67 0.45 6.5 42.6 12.56
A2 0.60 0.36 3.6 53.3 14.47
A3 0.82 0.67 3.8 63.1 17.1

⚠️ First column = Name/ID
⚠️ From second column onwards = Only numeric values


🖥️ How to Run

🔹 Syntax:

python topsis.py <InputFile> <Weights> <Impacts> <OutputFile>

Output File Structure:

Alternative C1 C2 C3 C4 C5 Topsis Score Rank
A1 ... ... ... ... ... 0.645 2
A2 ... ... ... ... ... 0.782 1
A3 ... ... ... ... ... 0.432 3

👨‍💻 Author

Kunal Sharma

B.Tech Student | Machine Learning & Full Stack Developer

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_kunal_102303330-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

topsis_kunal_102303330-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file topsis_kunal_102303330-1.0.0.tar.gz.

File metadata

  • Download URL: topsis_kunal_102303330-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for topsis_kunal_102303330-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7f6e295cc211478caca90aac6d06d7f61befa28fa6869e8dc6fb80b2bc9526b4
MD5 e0cacb519bd096cd507867e2d3831514
BLAKE2b-256 2ffad7c9ae9f6e0c0f598f4c6cb93db1c93e81291ea1ab6a952e128e0d9b12ed

See more details on using hashes here.

File details

Details for the file topsis_kunal_102303330-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_kunal_102303330-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 697bcde329560ce39f2166323dd998258156aa9c78897cf89e0f60d7b70d8c18
MD5 4c2fd632aad890d734e975428a315792
BLAKE2b-256 f966bca4edc6b56f27423c8cf446c4e90023dca7a34ad8451202c4ce4792b553

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