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.2.tar.gz (3.6 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.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_sommit_102303184-0.0.2.tar.gz
  • Upload date:
  • Size: 3.6 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.2.tar.gz
Algorithm Hash digest
SHA256 fae295f0fcf34b1466a536c48b6c516bd8e92e4c52310d9ac6459c34fe05166a
MD5 e9f9222989f6135df999c0c3866936ca
BLAKE2b-256 07fd240d9a8ec34600e0a3f3793ad8f6ad040393aa80429d415cff05d384c9b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_sommit_102303184-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e546c9fa3ba8adc407807c7334130aa3d6729dbf5eb846f1481af6d1823b69be
MD5 a23f09bea0d50f54ec41a0ec4a57effc
BLAKE2b-256 49cef6f7869f09f578705e35a6e8757cd1a73ed174b988ec2441342944ace85f

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