Skip to main content

A Python package for TOPSIS multi-criteria decision making.

Project description

Topsis-Naman-102303352

For: UCS654 (Predictive Analytics)
Submitted by: Naman Singh
Roll Number: 102303352


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-Naman-102303352


## 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_naman_102303352-1.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

topsis_naman_102303352-1.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for topsis_naman_102303352-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b7245a359d784c1e68e3f82dee58cd55bfd3b6cd6fbce3f653fbd13de174a92f
MD5 4e40b11a19430cf9c4218e50e485ee18
BLAKE2b-256 82a11b192f3b8a4bb24e322d5bffb6252cd053a23c76d80f3d624f16e13942ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_naman_102303352-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e62c07a86a640276ed3c590cad4377585ce4a8ac14d2e3f4ffe53eacd1a6a54a
MD5 f570e32c530e4be1f3b45e72dc4c6506
BLAKE2b-256 94867df158e75669db68b95cdbe686e2a9e1508a2db21efa099994e23bededd8

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