Catalog PyPI
PACKAGE EXPLORERView in registry

102383077-Shresth-Topsis

PyPI

A Python implementation of the TOPSIS algorithm for multi-criteria decision analysis.

Versions collected1
Direct dependencies0From release 1.0.0
Last observed20 Oct, 15:10 UTC

README

Version 1.0.0 documentation

TOPSIS Implementation

1. Methodology

  • Step 1: Data Collection
  • Step 2: Data Pre-Processing (Normalization and Validation)
  • Step 3: Weighted Normalization
  • Step 4: Calculation of Ideal Best and Ideal Worst Solutions
  • Step 5: Calculation of Separation Measures
  • Step 6: Calculation of Relative Closeness (TOPSIS Score)
  • Step 7: Ranking

2. Description

  • Objective: To implement the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method for multi-criteria decision analysis.
  • Inputs:
    • A CSV file containing alternatives and their performance across criteria.
    • Weights for criteria and their respective impacts (benefit or cost).
  • Outputs:
    • A CSV file with TOPSIS scores and ranks for the alternatives.
  • Error Handling:
    • File existence and format validation.
    • Ensures impacts are '+' (benefit) or '-' (cost).
    • Ensures the number of weights and impacts matches the criteria count.

3. Input / Output

Input File Example: <RollNumber>-data.csv

AlternativeCriterion 1Criterion 2Criterion 3
A1506070
A2608090
A3708580

Output File Example: <RollNumber>-result.csv

AlternativeCriterion 1Criterion 2Criterion 3TOPSIS ScoreRank
A15060700.5562
A26080900.8901
A37085800.4673

4. Usage Instructions

Run the program from the command line with the following format:

python <RollNumber>.py <InputDataFile> <Weights> <Impacts> <ResultFileName>

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.019 Jan 20250

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
yourusername/topsis

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 15:10 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:79b0189a58bb9721f4d3fd90525e7f944c01981f00adf6a13bf488c171741e4c