Skip to main content

TOPSIS implementation using Python

Project description

TOPSIS

TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) is a multi-criteria decision-making method used to rank alternatives based on their closeness to the ideal solution. It evaluates options by comparing their distance from the best and worst possible values of each criterion. The alternative closest to the ideal and farthest from the negative ideal is ranked highest.

Installation - USER MANUAL

Topsis-Pooja-102303845 requires Python3 to run.

Other dependencies that come installed with this package are :- pandas numpy

Package listed on PyPI:- (https://pypi.org/project/Topsis-Pooja-102303845/) Use the following command to install this package:-

pip install Topsis-Pooja-102303845

Steps Involved in TOPSIS

  • Construct the Decision Matrix
    List all alternatives and their values for each criterion.

  • Normalize the Decision Matrix
    Convert different units into comparable, dimensionless values.

  • Apply Weights to Criteria
    Assign importance to each criterion based on its relevance.

  • Determine Ideal Solutions

    • Positive Ideal Solution (best values)
    • Negative Ideal Solution (worst values)
  • Calculate Separation Measures
    Find the distance of each alternative from both ideal solutions.

  • Calculate Relative Closeness
    Compute a score that shows how close each alternative is to the ideal solution.

  • Rank the Alternatives
    Higher score → better rank.

Usage

Run the following command in command prompt:

topsis <inputFile> <weights> <impacts> <outputFile>

Example:

topsis sample.csv "1,1,1,1" "+,+,-,+" result.csv

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_pooja_102303845-1.0.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

topsis_pooja_102303845-1.0.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file topsis_pooja_102303845-1.0.4.tar.gz.

File metadata

  • Download URL: topsis_pooja_102303845-1.0.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for topsis_pooja_102303845-1.0.4.tar.gz
Algorithm Hash digest
SHA256 78891efa562f2509fa66fc332fdf5f7ee3a07e0031356eae3523a7be51cb2223
MD5 f698e5cb29480134fc3f07be8d9325f4
BLAKE2b-256 fd24a350301ddd61b47b4a9dd2ba1f3157d4b80b71d91434d72003fdec6fc50e

See more details on using hashes here.

File details

Details for the file topsis_pooja_102303845-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_pooja_102303845-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6390adf83b67881894e20843d6a7faaa55a28fd79cf3d20cf9490e1ed8ea4e96
MD5 28ea35ff84dfeb9da52f2ddfd9d40e8a
BLAKE2b-256 3e6e867d7ceff72783ba892e47c859ff6b4077f03b34676f66be3f512f1a0e69

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