Skip to main content

TOPSIS implementation for multi-criteria decision making

Project description

📊 TOPSIS — A Python Package for Multi-Criteria Decision Making

License Python

This package implements the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) algorithm — a widely used multi-criteria decision analysis method.


📌 What is TOPSIS?

TOPSIS is an algorithm that helps in ranking and selecting from a set of alternatives based on multiple criteria.
It is based on the concept that the chosen alternative should have the shortest distance from the ideal solution and the farthest from the negative-ideal solution.

It is especially useful in areas like:

  • Decision-making systems
  • Recommendation engines
  • Business and financial analysis
  • Supply chain and logistics

🚀 Features

  • Simple and clean API
  • Accepts CSV or pandas DataFrame input
  • Supports weighted and normalized decision matrices
  • Command-line interface support
  • Generates final rankings of alternatives

📦 Installation

Install the package directly from PyPI:

pip install topsis-nandini==0.1.7

🛠️ Usage

# 1. Command Line Interface
Once installed, you can use `topsis` as a CLI tool:
Topsis-nandini input.csv "0.3,0.5,0.2" "+,+,-" output.csv

This will:
Read data from input.csv
Apply weights 0.3,0.5,0.2
Apply impacts +,+,-
Write ranked output to output.csv


# 2. Use inside Python script
from topsis_package.topsis import topsis
topsis("data.csv", "0.4,0.3,0.3", "+,-,+", "result.csv")

📁 Project Structure

Topsis_package/
│
├── topsis
│ ├── _init_.py  ├── _main_.py  └── topsis.py 
├── README.md 
├── LICENSE 
├── setup.py 
└── pyproject.toml 

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

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_nandini-0.1.7.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_nandini-0.1.7-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file topsis_nandini-0.1.7.tar.gz.

File metadata

  • Download URL: topsis_nandini-0.1.7.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for topsis_nandini-0.1.7.tar.gz
Algorithm Hash digest
SHA256 8b21b9ecc4162c787b9764e47be69af4e12ebf2fdaf80652768efa6538ba0ff4
MD5 867e36b15526191179ebba3bbd42973a
BLAKE2b-256 97f3a3fe3ac31d689459be6d0ac44dbad636849c8ab932cd2d0e4e6324e42c4f

See more details on using hashes here.

File details

Details for the file topsis_nandini-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: topsis_nandini-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for topsis_nandini-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 85dd3ed44e7cedf9d922276452282907399f08193ca2a22d3898b0a9f9ffdd8f
MD5 4058b689997f7787cbcf5f2b4ed5e657
BLAKE2b-256 be074715fb4638bc73b5577ebf1fc6aaec7a37ab218f78c70379a9d22d6128b1

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