Skip to main content

A Python package for Multi Criteria Decision Making using TOPSIS.

Project description

Topsis-Aditya-102303353

For: UCS654 (Predictive Analytics)
Submitted by: Aditya Soam
Roll Number: 102303353


Overview

This is a Python package that implements the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS). It is a multi-criteria decision-making (MCDM) method used to rank alternatives based on their distance from the "Ideal Best" and "Ideal Worst" solutions.

Installation

You can install the package directly from PyPI using the following command:

pip install Topsis-Aditya-102303353


## Usage

The package is designed to be executed via the command line. Use the following format:

```bash
topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>

## Example Input

The input file must be a CSV where the first column contains the names of the alternatives and the subsequent columns contain numeric data.

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

## Example Command

```bash
topsis data.csv "1,1,1,2,1" "+,+,-,+,+" result.csv

## Example Output

After running the command, the package performs Vector Normalization and calculates the Euclidean Distance from the Ideal Best and Ideal Worst solutions to generate the final scores and rankings.

The resulting file will contain your original columns plus the calculated Topsis Score and Rank:

Model,Storage,Camera,Price,Looks,TopsisScore,Rank
M1,16,12,250,5,0.5342,3
M2,16,8,200,3,0.3891,4
M3,32,16,300,4,0.7215,1
M4,32,8,275,4,0.6128,2

## License

https://choosealicense.com/licenses/mit/

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_aditya_102303353-1.0.2.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.

topsis_aditya_102303353-1.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_aditya_102303353-1.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for topsis_aditya_102303353-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3d279c5919cbaece06e4b9165b15afff8bcafa98ede7c539513975da3d5609fc
MD5 faf1a5be4c081d7b6da01bca3d337583
BLAKE2b-256 38359bb64f6b92c99c6f1ea0af56338017d3ede52e014bf8570da40a58cc9331

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_aditya_102303353-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb578bbfc69fba6c86c3e374e5019de2bdafe7490c368ba281e899e70cceb7dd
MD5 777cb6aa5f66290dd95afe26a468fb64
BLAKE2b-256 7bf5519e2b54d974e41b3c4611cab1c575953f665f7024f523bd36ba52142e0e

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