Skip to main content

TOPSIS implementation

Project description

Topsis-KartikSidana-102203789

A Python implementation for Multi-Criteria Decision Making (MCDM) using the TOPSIS method (Technique for Order of Preference by Similarity to Ideal Solution). This package helps decision makers evaluate alternatives based on multiple criteria with different weights and impacts.

Installation

To install the package, run: bash pip install Topsis-KartikSidana-102203789

Usage

Execute the package through command line: bash topsis <input_file> <output_file>

Example: bash topsis data.xlsx "1,1,1,1,1" "+,+,+,+,+" output.csv

Input Requirements

  • Input file (CSV/Excel) must contain numeric values except for the first column
  • First column should contain the names of alternatives
  • All other columns should contain numerical data
  • At least 3 columns required for meaningful results

Parameters

  1. <input_file>: Path to your dataset file (supports .csv and .xlsx)
  2. : Weighted importance of each criterion (comma-separated numbers)
  3. : Nature of each criterion (comma-separated '+' or '-')
    • '+' indicates benefit criterion (higher values desired)
    • '-' indicates cost criterion (lower values desired)
  4. <output_file>: Name of file to store results

Output Format

The output file includes:

  • All columns from input file
  • TOPSIS Score: Calculated similarity to ideal solution
  • Rank: Position of each alternative based on TOPSIS score

Error Handling

The package includes robust error checking for:

  • Incorrect number of weights or impacts
  • Invalid file formats
  • Non-numeric values in criteria columns
  • Missing or incomplete data

License

MIT License

Author

Kartik Sidana Roll Number: 102203789

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-Kartik-102203789-1.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Kartik_102203789-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Kartik-102203789-1.0.0.tar.gz.

File metadata

  • Download URL: Topsis-Kartik-102203789-1.0.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.5

File hashes

Hashes for Topsis-Kartik-102203789-1.0.0.tar.gz
Algorithm Hash digest
SHA256 479d52b46b549b34b29c4a9a0767c7fdaa90def836b63eed120fa4433b136b5b
MD5 6bbb1b8268bfc7cec4df8e8cf7024792
BLAKE2b-256 14f100c0be7cd016a9b9f909618e0e58d77591dea3176168e83b011804645591

See more details on using hashes here.

File details

Details for the file Topsis_Kartik_102203789-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Kartik_102203789-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94cf9d416e20903bcffdd33f6d254e43f9453e42e1ff2a477c2392361987f1e2
MD5 765b8fe73bf56b1435113523967055a6
BLAKE2b-256 0f208389bfa72b9575a443e019489413da464efc0ddedb69aeb58cd3582e00b5

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