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

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_sommit_102303184-0.2.1.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.2.1.tar.gz
Algorithm Hash digest
SHA256 447258341a9800897b843fbe7063a3448aa319ccaf8e2442410e030ab3bd8da3
MD5 5d6e493825d7af75e9847a5c26c9f7f1
BLAKE2b-256 b4c9d2612c35cca1694c10d8e6ca389ef2f5d92b3f52fa42c55f0382bccda16e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_sommit_102303184-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 624142da57fd6f110b0aa1ae265575c838fd5c6e80c99893e7ba45b65d099486
MD5 10f9887d60bbbee14e7b51ca3ed14f3b
BLAKE2b-256 d66667c62eb091f32b38628116cdc4ea024af3fa6da9ffd1d9c9f98bc5532ecd

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