Skip to main content

TOPSIS implementation as a Python package

Project description

Topsis-Nandita-102303178

Description

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

Installation

Install the package using pip: pip install topsis-nandita-10230178

Usage

Once installed use this topsis command from anywhere in your terminal: topsis

Example

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

Input File Format

The input CSV file must follow this structure:

First column: Names of alternatives/options Remaining columns: Numeric values for each criterion Minimum: 3 columns (1 name column + at least 2 criteria)

Example Input (data.csv)

Fund P1 P2 P3 P4 M1 0.42 0.62 0.21 0.31 M2 0.35 0.57 0.25 0.28 M3 0.4 0.6 0.22 0.35 M4 0.38 0.59 0.23 0.3

Output Format

The output CSV includes all original columns plus:

Topsis Score: Score between 0 and 1 (higher is better) Rank: Ranking based on TOPSIS score (1 is best)

Example Output (output.csv)

Fund P1 P2 P3 P4 Topsis Score Rank M1 0.42 0.62 0.21 0.31 0.560441397 2 M2 0.35 0.57 0.25 0.28 0 4 M3 0.4 0.6 0.22 0.35 0.866180373 1 M4 0.38 0.59 0.23 0.3 0.334326707 3

Author

Nandita Roll Number: 102303178

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_nandita_102303178-0.0.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

topsis_nandita_102303178-0.0.2-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file topsis_nandita_102303178-0.0.2.tar.gz.

File metadata

File hashes

Hashes for topsis_nandita_102303178-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fc189717dde5e801848f05d55f05b605a5f4d13fbd3671b267e4c2df3cc6df81
MD5 78f18883572d139933467f1cdd7b4833
BLAKE2b-256 63c6a04ce69b051e91b44c1458d5afaff21182c2eb3c221db0af9325e41d2824

See more details on using hashes here.

File details

Details for the file topsis_nandita_102303178-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_nandita_102303178-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 45c05371b2e3df66c302e39ca97f6fe2f27222d246f12e919c560c9eb86a5bb6
MD5 6d92432c8b8a845a721a41c624655136
BLAKE2b-256 df84853cabe60ce7f411c2578af822a91d00ef0f98657f4b9a8cd25fa491b30a

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