Skip to main content

No project description provided

Project description

TOPSIS-Aartha-102302941

PyPI version License: MIT

A robust Python command-line utility to implement the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method.
This tool helps in multi-criteria decision-making by ranking alternatives based on their geometric distance from the ideal best and worst solutions.


🛠️ Installation

Install the package directly from PyPI:

pip install Topsis-Aartha-102302941

💻 Usage

Run the package using:

topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>

Parameters

  • InputDataFile → Path to the .csv file
  • Weights → Comma-separated numeric values
    Example: "1,1,1,2"
  • Impacts → Comma-separated signs (+ or -)
    Example: "+,+,-,+"
  • ResultFileName → Output .csv file name

📌 Requirements

  • Input file must contain at least 3 columns
  • Column 1 → Alternative names/IDs
  • Column 2 onward → Numeric criteria only

📊 Example

Input (data.csv)

Alternative P1 P2 P3 P4
M1 250 16 12 5
M2 200 16 8 3
M3 300 32 16 4

Command

topsis data.csv "1,1,1,2" "+,+,-,+" result.csv

Output (result.csv)

The output file will include:

  • Original data
  • Topsis Score
  • Rank (1 = Best)

🧠 Workflow

  1. Validation

    • Checks column count, weights, impacts, and numeric data
  2. Preprocessing

    • Converts values to numeric
    • Handles missing values using mean imputation
  3. Normalization

    • Uses Euclidean normalization
  4. Ideal Solutions

    • Determines:
      • V⁺ (Best)
      • V⁻ (Worst)
  5. Closeness Score

    • Computes distance from ideal best and worst
  6. Ranking

    • Assigns rank based on closeness score

👤 Author

Aartha Singh


📜 License

Distributed under the MIT License.
See LICENSE for more information.


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_aartha_102302941-1.0.7.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

topsis_aartha_102302941-1.0.7-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file topsis_aartha_102302941-1.0.7.tar.gz.

File metadata

  • Download URL: topsis_aartha_102302941-1.0.7.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for topsis_aartha_102302941-1.0.7.tar.gz
Algorithm Hash digest
SHA256 f7acc4151cc4dca881b34a84cff6e3adfb3aed9cc12c6be10ee8793c07f4c6fb
MD5 09f2ff9dd4b31a53f30d5b35a9a3f271
BLAKE2b-256 37517c6ad2843f1a73bb9026abdf2d5c343a3c36ff4ce3ead049f25272127c34

See more details on using hashes here.

File details

Details for the file topsis_aartha_102302941-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_aartha_102302941-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 00b7c0ca591d02c0495415608dccfa31a07ff9879b2e382fbc74c02a1aeffcbc
MD5 33d3c20a9b1423b0bf8707c8511d4573
BLAKE2b-256 0d79ad9723b6d72a234cba15b03bb7b8cbb4f9ee5fc95dc4ee73a6d059956993

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