Skip to main content

A Python package for TOPSIS multi-criteria decision analysis

Project description

Topsis-Sarthak-102303497

A Python package for TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) multi-criteria decision analysis.

Installation

pip install Topsis-Sarthak-102303497

Usage

Command Line

topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>

Example

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

Parameters

  • InputDataFile: Path to CSV file containing the data
  • Weights: Comma-separated weights for each criterion (e.g., "1,1,1,2")
  • Impacts: Comma-separated impacts for each criterion (+ for benefit, - for cost)
  • ResultFileName: Path for the output CSV file

Input File Format

The input CSV must have:

  • First column: Object/Alternative names
  • Remaining columns: Numeric criteria values

Example:

Fund Name,P1,P2,P3,P4,P5
M1,0.67,0.45,6.5,42.6,12.56
M2,0.6,0.36,3.6,53.3,14.47

Output File Format

The output CSV will contain all input columns plus:

  • Topsis Score: The calculated TOPSIS score
  • Rank: Rank based on the TOPSIS score (1 = best)

License

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_sarthak_102303497-1.0.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

topsis_sarthak_102303497-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file topsis_sarthak_102303497-1.0.0.tar.gz.

File metadata

File hashes

Hashes for topsis_sarthak_102303497-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a6186721b4043bee491f05cae6b36c95c4b7813e2a3077e9901e10989e522df4
MD5 f02d99202a6627ce620d6d6099506779
BLAKE2b-256 53034877b931f0c692ab57e288a40ea8c4f800be9baf1274708472603d69d031

See more details on using hashes here.

File details

Details for the file topsis_sarthak_102303497-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_sarthak_102303497-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb2dea14ecfb013e5db84b7d9792625b6b12b99524ae735c5b4cd20dfa01d941
MD5 52b649914b45cba12eb5c11dbb990ff0
BLAKE2b-256 e40e79d11feb986467ed0c37239ae5091d0d8ebddb06f7803edc7ac0175112f2

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