Skip to main content

A Python package implementing TOPSIS

Project description

Topsis-Ketan-10155792

This is a Python package to implement the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS).

TOPSIS is a multi-criteria decision analysis method that chooses the alternative of shortest geometric distance from the positive ideal solution and the longest geometric distance from the negative ideal solution.

Installation

You can install the package using pip:

pip install Topsis-Ketan-10155792

Usage

This package can be run directly from the command line. It accepts an input file (Excel or CSV), weights for each criterion, impacts (beneficial or non-beneficial), and the name of the output file.

Command syntax

topsis

Parameters

InputDataFile: Path to the input file (e.g., data.xlsx). The first column must contain the object/fund names, and the rest must be numeric values.

Weights: Comma-separated numbers indicating the weight of each criterion (e.g., 1,1,1,1).

Impacts: Comma-separated + or - signs indicating if a variable is beneficial (+) or non-beneficial (-) (e.g., +,+,-,+).

ResultFileName: Name of the output CSV file to save the results (e.g., result.csv).

Example:

topsis data.xlsx "0.25,0.25,0.25,0.25" "+,+,-,+" result.csv

License

This project is licensed under the MIT License.

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

Uploaded Source

Built Distribution

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

topsis_ketan_102303871-0.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_ketan_102303871-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for topsis_ketan_102303871-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3c5f33b6e3bb27018ebbbd0056d34927810cddc55aa9a97d7c8766befa69c1f3
MD5 1508277bd3e4b1faed3054e7b97ce81b
BLAKE2b-256 b7b9b3af740989130cbe799aeb46f2f900e0be0ae83d369b07a96e9a6852dec6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_ketan_102303871-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4293300574abdee7e2e1443480586cfa06ee9f1ab078417cd60967e1d42e7d0e
MD5 f83862ce308741cb6dc8b95a2f50d09d
BLAKE2b-256 f190cfb7fbf8d00bcc2607767b95a3fcbbcafaa01de49c7c46cd2715472eddf1

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