Skip to main content

TOPSIS implementation for multiple-criteria decision analysis

Project description

TOPSIS Implementation

A Python package that implements the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) method.

Installation

pip install Topsis-YourName-YourRollNumber

Usage

Command Line Interface

topsis-yourname input.csv "1,1,1,2" "+,+,-,+" output.csv

Parameters

  1. Input file (input.csv):

    • Must contain three or more columns
    • First column is the object/variable name
    • From 2nd to last columns contain numeric values only
  2. Weights ("1,1,1,2"):

    • Comma-separated numeric values
    • Number of weights must match number of criteria
  3. Impacts ("+,+,-,+"):

    • Comma-separated '+' or '-' symbols
    • Number of impacts must match number of criteria
    • '+' indicates benefit criteria
    • '-' indicates cost criteria
  4. Result file (output.csv):

    • Contains all columns from input file
    • Adds two additional columns:
      • Topsis Score
      • Rank

Python Usage

from topsis_pkg import topsis

topsis("input.csv", "1,1,1,2", "+,+,-,+", "output.csv")

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

Topsis_Kritik_102203771-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file Topsis_Kritik_102203771-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Kritik_102203771-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf5f3161b07585353bdb20e26986524edfaac1d56dbebf0cee1a8fe63bc40cb5
MD5 4c9bd9687de8bc56c4cdef3c419e6cb3
BLAKE2b-256 c5dd81cb2849db1e3d2f2145df7e56e0c758d1f4ddac43c9e28a7133e4f54164

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