Skip to main content

A Python package for TOPSIS multi-criteria decision making

Project description

# Topsis-Anshul-102303930

## 📌 Description

This package implements the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method.

TOPSIS is a multi-criteria decision-making approach used to rank alternatives based on their distance from

an ideal best and an ideal worst solution.


## ⚙️ Installation

Install the package using pip:

pip install Topsis-Anshul-102303930



\## Usage

\# After installation, the topsis command becomes available in the terminal.
topsis <input_csv> <weights> <impacts> <output_csv>

Parameters
Parameter	Description
input_csv	CSV file containing the dataset
weights	Comma-separated numerical weights
impacts	Comma-separated impacts (+ for benefit, - for cost)

Example Commands

topsis sample.csv "1,1,1,1" "+,-,+,+"


Weights and impacts can also be provided without quotes:

topsis sample.csv 1,1,1,1 +,-,+,+


Example
Input File (sample.csv)

A CSV file showing data for different mobile handsets with varying features:

Model,Storage space(in gb),Camera(in MP),Price(in $),Looks(out of 5)
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

Weights Vector
[0.25, 0.25, 0.25, 0.25]

Impacts Vector
[+, +, -, +]

Command
topsis sample.csv "0.25,0.25,0.25,0.25" "+,+,-,+"

Output
TOPSIS RESULTS
-----------------------------

   P-Score    Rank
1  0.534277     3
2  0.308368     5
3  0.691632     1
4  0.534737     2
5  0.401046     4

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_anshul_102303930-1.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

topsis_anshul_102303930-1.0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for topsis_anshul_102303930-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b935eed9bd16263ada269225c7da9c96a191cb744b64a4ddf2d94d279c4ee50b
MD5 bf38ed192cad84907165c4b7257de680
BLAKE2b-256 32b6f884411d941cacd50d4d7d27e67cd0e961b28f9dec5fa46e22fd1e93012d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_anshul_102303930-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 000d202af1cc8e2c676c772b222b22087db94ff5fb66fc4a00b2f487695b4e57
MD5 d6e51753c1e001a026a514b31c85300f
BLAKE2b-256 1d6e6544d938101fba8543d46c1a61688a55353b7d2aac59acccc5967b320e89

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