Skip to main content

No project description provided

Project description

topsis_experimental: TOPSIS Analysis Python Package

Overview

topsis_experimental is a Python package that implements the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) for multi-criteria decision-making (MCDM). It provides a straightforward and efficient way to evaluate and rank a set of alternatives based on conflicting criteria.

Key Features

User-friendly command-line interface for easy execution. Supports both numerical and categorical data. Handles equal weights and impacts, as well as positive and negative impacts. Generates a TOPSIS score for each alternative, indicating its similarity to the ideal solution. Provides ranking of alternatives based on their TOPSIS scores. Installation

To install topsis_experimental using pip:

Bash pip install topsis_experimental Use code with caution. Learn more Usage

You can use topsis_experimental from the command line as follows:

Bash topsis_experimental input.csv weights impacts output.csv Use code with caution. Learn more where:

input.csv: The input CSV file containing the decision matrix (alternatives and criteria). weights: Comma-separated list of weights for each criterion (numerical, equal to the number of criteria). impacts: Comma-separated list of impacts for each criterion (+ for positive, - for negative). output.csv: The output CSV file containing the TOPSIS scores and rankings. Example

Assume you have a CSV file data.csv with the following structure:

Fund Name,P1,P2,P3,P4,P5 M1,0.84,0.71,6.7,42.1,12.59 M2,0.91,0.83,7.0,31.7,10.11 ... And you want to perform TOPSIS with weights 1,1,1,2,1 and all positive impacts (+++-+).

Run the following command:

Bash topsis_experimental data.csv "1,1,1,2,1" "+,+,+,-,+" results.csv Use code with caution. Learn more This will create a file results.csv with the TOPSIS scores and rankings.

Additional Notes

The weights and impacts must be separated by commas and have the same number of elements as the number of criteria. For more advanced usage, see the source code or consider creating a custom Python script.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

topsis_experimental-0.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file topsis_experimental-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_experimental-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a17bde03f51d059547d4405cace1ff5ea1d15c0789bcdad52a91dce4242bfa08
MD5 0a235337662040a97975db177cf7cfcd
BLAKE2b-256 801c1e6d719c73d754a916e85c57baf898b717596f2d540010ee2bcd3d959b2c

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