Skip to main content

A TOPSIS implementation for multiple-criteria decision analysis

Project description

Topsis-Baneet-102203180

A Python package for implementing the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) method.

Installation

pip install Topsis-Baneet-102203180

Usage

You can use this package either through command line or as a Python module.

Command Line Usage

python -m topsis_baneet_102203180 input.csv "1,1,1,2" "+,+,-,+" result.csv

Python Module Usage

from topsis_baneet_102203180 import topsis

# Process TOPSIS
result = topsis("input.csv", "1,1,1,2", "+,+,-,+", "result.csv")

Input Format

  1. Input file (CSV):

    • First column: Object/Variable names
    • Subsequent columns: Numeric values only
  2. Weights: Comma-separated numeric values

    • Example: "1,1,1,2"
  3. Impacts: Comma-separated '+' or '-' values

    • Example: "+,+,-,+"

Output

The program will generate a CSV file with:

  • All original columns
  • Additional 'Topsis Score' column
  • Additional 'Rank' column

License

MIT License

Author

Baneet Singh

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

Uploaded Source

Built Distribution

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

Topsis_BaneetSingh_102203180-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for topsis_baneetsingh_102203180-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c99d50469b288d5ccb08e2efd822d06bf39cf7bbe86be926916523126d0624ae
MD5 df5ae791a76283fb80cba3fa1da566f7
BLAKE2b-256 305cc661e91135c8ad16a16d9c6ffb6ca3a16ebd578a59589989f82856967e75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Topsis_BaneetSingh_102203180-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85747d4667f6c8e87141728ce7a9de095618aba29099168e1c0693f617dd1f8a
MD5 86a970e2246fedaa7c7d4530e77e70d1
BLAKE2b-256 f5b5bb07f5378df7082495f3f0def64295640ce9d1a5f6abeb4cdd8a817a98a9

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