Skip to main content

TOPSIS implementation using Python

Project description

TOPSIS - Python Package

By: Bhavya
Roll Number: 102303560
Course: UCS654 - Predictive Analytics using Statistics


Project Description

TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) is a multi-criteria decision-making (MCDM) method used to rank alternatives based on their distance from an ideal best and an ideal worst solution.

This Python package provides an easy-to-use command-line implementation of the TOPSIS algorithm. It allows users to input a dataset along with weights and impacts and produces a ranked output based on TOPSIS scores.


Installation

Install the package using pip:

pip install Topsis-bhavya-102303560

Usage

Run the following command: python topsis

Example: python topsis sample.csv "1,1,1,1" "+,+,-,+" result.csv


Input File Format

  • The input file must contain at least three columns.
  • The first column should contain alternative names.
  • All other columns must contain numeric values only.
  • The number of weights and impacts must match the number of criteria.

Sample Input File

Model Storage Camera Price Looks
M1 16 12 250 5
M2 16 8 200 3
M3 32 16 300 4
M4 32 8 275 4
M5 16 16 225 2

Output

The output file contains:

  • Topsis Score
  • Rank

The alternative with Rank 1 is considered the best choice.

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_bhavya_102303560-1.0.1.tar.gz (3.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_bhavya_102303560-1.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file topsis_bhavya_102303560-1.0.1.tar.gz.

File metadata

  • Download URL: topsis_bhavya_102303560-1.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for topsis_bhavya_102303560-1.0.1.tar.gz
Algorithm Hash digest
SHA256 81329c338a8d022d34d08ce63ec465c8aa6fbf0b24bf826e5f18412bb92e26c6
MD5 a12a6e12b998773ebc0e12662add1ba2
BLAKE2b-256 7a62d93919e2b6611feeadcc97d80fbff414dd356dda3a2dbae960b6bedc9bd3

See more details on using hashes here.

File details

Details for the file topsis_bhavya_102303560-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_bhavya_102303560-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b69e184ce073054c72cefeeb843b6caa0ce041d7081524ba687ccb56160b75d
MD5 6704d2e6cd91997e7fd5c81a09106e9c
BLAKE2b-256 89a164c1aba7dbc2f912beaf1c34b21e871adc27815739e0a45b1dae1dbc11f5

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