Metadata-Version: 2.2
Name: 102203551-topsis
Version: 1.0.5
Summary: A Python package to implement the TOPSIS decision-making method.
Home-page: https://github.com/Aryanz01/topsis-python-package
Author: Aryan Vashishth
Author-email: avashishth_be22@thapar.edu
License: MIT
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3 :: Only
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas>=1.0.0
Requires-Dist: numpy>=1.18.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-dist
Dynamic: summary

# TOPSIS Package

## Overview
This project implements a Python package for performing the **Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS)** method. TOPSIS is a multi-criteria decision-making (MCDM) approach used to rank and select among various alternatives based on their distances from an ideal and a negative-ideal solution.

---

## Features
- Accepts CSV input files with multi-criteria data.
- Supports user-defined weights and impacts for each criterion.
- Outputs a ranked list based on the TOPSIS evaluation.
- Error handling for invalid input files, weights, and impacts.

---

## Installation
```bash
pip install 102203551-topsis
```

---

## Usage
Run the package from the command line:

### Syntax
```bash
python -m topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
```

### Example
```bash
python -m topsis 102203551-data.csv "1,1,1,2,3" "+,+,-,+,+" 102203551-result.csv
```

### Parameters

- `<InputDataFile>`: Path to the CSV file containing the decision matrix.
- `<Weights>`: Comma-separated weights for each criterion (e.g., `1,2,1,1`).
- `<Impacts>`: Comma-separated impacts for each criterion (`+` for benefit, `-` for cost).
- `<ResultFileName>`: Name of the output file where results will be saved.
