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:

topsis <inputFile> <weights> <impacts> <outputFile>

Example:

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.2.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.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_bhavya_102303560-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 72db341faa8661f90c98a835ad985109ca62d88d291361dc0efeb4c0dddbd095
MD5 26533c64ce399f568398c70731c55e88
BLAKE2b-256 9ae416bfcbc5ef5f18da601ee20de3ebf42731884c52d2b99b44c91373cfc00a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_bhavya_102303560-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7f98d45b8d6b150ae2318e8e1ba396531f83196627c44f62ffd35e00070420e5
MD5 28fdd048b13b71fa8aef5eb623419ada
BLAKE2b-256 6632c5799034169c9c2cdb3eb448ab2e5d84e527f1b167a8e6631f409ba2a1f6

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