Skip to main content

A Python package for implementing the TOPSIS method.

Project description

TOPSIS Implementation in Python

A Python implementation of the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) for multi-criteria decision-making problems. This package processes an input dataset, calculates the TOPSIS scores, and ranks alternatives based on their scores.

Installation

You can install this package directly from PyPI: pip install 102203584

Usage

Command-Line Interface

Run the script using the following format: python <program.py> <InputDataFile> <Weights> <Impacts> <ResultFileName>

Arguments:

  1. InputDataFile: Path to the input .csv file containing the dataset. -The first column should contain the names of the alternatives. -The remaining columns should contain numeric criteria values.

  2. Weights: Comma-separated values representing the importance of each criterion.

  3. Impacts: Comma-separated values (+ or -) indicating whether the criterion is beneficial (+) or non-beneficial (-).

  4. ResultFileName: Name of the output .csv file where the results (TOPSIS scores and ranks) will be saved

Dependencies

This package requires the following Python libraries: -pandas -numpy

License

This repository is licensed under the MIT license. See LICENSE 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_trish_rustagi_102203584-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for topsis_trish_rustagi_102203584-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9dd395a5a5c227639a4fba461b49f85a4bc4275f83c120960f7317ee941b44e3
MD5 598e5b0029dcec1649a194acc8ec2b81
BLAKE2b-256 6002a6e0d69de19b9f5c131a224e04eb8c0f9ce0a52897a34a11ea9bacbb058e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Topsis_Trish_Rustagi_102203584-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34408e4feddf25ca9cf15eeb799f663b8918ff9d347bb032d0d3eceac00aaa93
MD5 df7924121e9bbd4221dcdbdbf2980f6c
BLAKE2b-256 e43fc43b132e2192108934e4770352be49a7ce63987118591977d43a284d374b

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