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

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_sommit_102303184-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 789c4b129fdedbb6f082090fb496090e4faaf9bf173048b83d6e9be393fbacbc
MD5 6c22ff6ea4ac5070a992438417dd6a1a
BLAKE2b-256 1686f5a100d20f5fcb141fa918176e6f5f4bca21b1f7770df0e1d2eafb0f86a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_sommit_102303184-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fbbcf7d614b312d3a330e972d5a23748ecfa1fd80d1050556e5ffa780357fd5c
MD5 23c5b1fc722d9772c1a6648446bed21c
BLAKE2b-256 3be790f76909289033c8494664dbced8cf0720c0b28e71e5cd429ef0778df19f

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