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

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_pooja_102303845-1.0.3.tar.gz
  • Upload date:
  • Size: 3.3 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.3.tar.gz
Algorithm Hash digest
SHA256 5904abb3ab6cad6fd91846849b66e7d7ae366df93c49ab78a2cc4f45a2beb95e
MD5 442502825ed67f9ee48ac8869d110b44
BLAKE2b-256 b08b32db3464f934b47d180b30d0672bcc894197f02296835742357494d1f635

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_pooja_102303845-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d7e7be350b3a0a0c56ca3008637aca4dc73d2f29d9e6b8b67e20912f3b502fbb
MD5 779a3d2405e4c8f5c6b9a420bc4d2b85
BLAKE2b-256 4183f898219c53d79c8242d1f249db4d5e12bc433ee6869f77fd0e2b83ddb774

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