Skip to main content

A Python package implementing TOPSIS method for MCDM

Project description

TOPSIS Implementation by Arushi Gadodia

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

Submitted by: Arushi Gadodia Roll Number: 102203683

Installation

pip install Topsis-Arushi Gadodia-102203683

Usage

From command line:

topsis input.csv "1,1,1,2" "+,+,-,+" output.csv

From Python:

from topsis import calculate_topsis
calculate_topsis("input.csv", "1,1,1,2", "+,+,-,+", "output.csv")

Input Format

  1. Input file must be a CSV file with 3 or more columns
  2. First column is the object/variable name
  3. From 2nd column onwards should contain only numeric values
  4. Weights should be comma-separated numbers (e.g. "1,1,1,2")
  5. Impacts should be comma-separated +/- symbols (e.g. "+,+,-,+")

Output

The program will create a result CSV file containing:

  • All columns from input file
  • Two additional columns: 'Topsis Score' and 'Rank'

Error Handling

The program will check for:

  • Correct number of parameters
  • File existence
  • Input file format
  • Number of weights/impacts matching number of criteria
  • Valid impact symbols (+/-)

License

© 2024 Arushi Gadodia This project is licensed under the MIT License - see the LICENSE file for details.#\x00 \x00T\x00o\x00p\x00s\x00i\x00s\x00 \x00 \x00

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

topsis_arushi_102203683-0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Arushi_102203683-0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file topsis_arushi_102203683-0.1.tar.gz.

File metadata

  • Download URL: topsis_arushi_102203683-0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for topsis_arushi_102203683-0.1.tar.gz
Algorithm Hash digest
SHA256 72688eb65e41d0b09297b309e8b79cf5ad6e78de3dc2d561fe9d7eb425968940
MD5 6cb21dd3d12a66ca067d4080ffa01a6d
BLAKE2b-256 3691fd9bbf04a7e5e356764e36bcd3e49ec163cfe5e8e3e746986ab42dcf2642

See more details on using hashes here.

File details

Details for the file Topsis_Arushi_102203683-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Arushi_102203683-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3604c8cadab98fca47bc690c847330d6d6fdf3ab5fff643fb8c4550c5e7603c7
MD5 19f63c4692ea1df0a76048ace0765bc6
BLAKE2b-256 2c90aada841b2cf953c3019fa88d04a9fd97aac2152e2dba1587f73f6bf94c29

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