Skip to main content

TOPSIS implementation using Python

Project description

Topsis-Sommit-102303184

A Python package to perform TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) for multi-criteria decision making using the command line.

Installation

Install the package from PyPI:

pip install Topsis-Sommit-102303184

Usage

Run TOPSIS from the command line as follows:

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

Example

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

Input File Format

  • Input file must be a CSV file
  • First column contains alternatives (names)
  • Remaining columns contain numerical criteria values

Sample Input (data.csv)

Model,P1,P2,P3,P4
M1,250,16,12,5
M2,200,18,8,4
M3,300,14,10,6

Parameters

  • InputDataFile: Path to input CSV file
  • Weights: Comma-separated numerical weights
  • Impacts: Comma-separated impacts (+ for benefit, - for cost)
  • ResultFileName: Name of output CSV file

Output

The output CSV file will contain:

  • Topsis Score
  • Rank (1 indicates the best alternative)

Author

Sommit
Roll No: 102303184

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_sommit_102303184-0.0.4.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_sommit_102303184-0.0.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file topsis_sommit_102303184-0.0.4.tar.gz.

File metadata

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

File hashes

Hashes for topsis_sommit_102303184-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2d57c1105f506fa82054db20f7cc7b2b04586eb9b83dfae2fab0a5f6dcf4de66
MD5 646ffb07eb48b8cd6f13aa21830f45f5
BLAKE2b-256 2437dbda5ba563f694b437f727bc2f35759b513b1ab72b8ed98f16b02d4f2123

See more details on using hashes here.

File details

Details for the file topsis_sommit_102303184-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_sommit_102303184-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 62cea3e713b4a44893621e083e22ff796588d3d3a9e813f19d03896f365aa9f7
MD5 08f56ec54d41244729d5c72405402735
BLAKE2b-256 b39b25d27d1f20c81464260c7970d8de8e3092c3d45f252fafb1524c272285f6

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