Skip to main content

Implementation of TOPSIS method

Project description

Topsis-Dishavpreet-102353006

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

This project was developed as part of an academic assignment.


Installation

Install the package using pip:

pip install Topsis-Dishavpreet-102353006


Usage

After installation, run the following command from the command line:

topsis input.csv "1,1,1,1,1" "+,+,+,+,+" output.csv


Parameters

input.csv
Input CSV file containing alternatives and criteria.
The first column should be non-numeric.

weights
Comma-separated numerical weights.
Example:
"1,1,1,1,1"

impacts
Comma-separated impacts.
Use + for benefit and - for cost criteria.
Example:
"+,+,-,+,+"

output.csv
Output CSV file containing TOPSIS score and rank.


Example

topsis data.csv "1,1,1" "+,+,+" result.csv


Requirements

Python 3.x
numpy
pandas

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_dishavpreet_102353006-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

topsis_dishavpreet_102353006-0.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file topsis_dishavpreet_102353006-0.0.1.tar.gz.

File metadata

File hashes

Hashes for topsis_dishavpreet_102353006-0.0.1.tar.gz
Algorithm Hash digest
SHA256 446bbc14ebfba878a8ccc3b8a1cec67d87365aa8a8a7c0afbfa1d01af2a0529b
MD5 b862c253e9a227a93f759ea1748cdef5
BLAKE2b-256 fdfb9bb47448da5b7e40cc2c29c1d8059551174ea8ab4691c64ad0e53595c3fc

See more details on using hashes here.

File details

Details for the file topsis_dishavpreet_102353006-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_dishavpreet_102353006-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 88c6ef24c227a85bb8c9f5fe18a0588ea4713cc072d43506f477261217c12bef
MD5 257e993785ddf10ce2e81ed44bb3467d
BLAKE2b-256 3c9271963ddf9d98aaa26bb5e6622044dcef5f53acbd37c26140b958da5e1023

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