Metadata-Version: 2.1
Name: Topsis-Atishay-102316056
Version: 1.0.0
Summary: A Python package for Topsis implementation
Author: Atishay Jain
Author-email: ajain_be23@thapar.edu
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Topsis-Atishay-102316056

A Python package to implement the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS).

## Overview

TOPSIS is a multi-criteria decision analysis method that is based on the concept that the chosen alternative should have the shortest geometric distance from the positive ideal solution and the longest geometric distance from the negative ideal solution.

This package allows you to perform TOPSIS analysis on a dataset provided in a CSV file.

## Installation

You can install the package using pip:

```bash
pip install Topsis-Atishay-102316056
```

## Usage

You can use this package from the command line:

```bash
topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
```

### Arguments

1.  **InputDataFile**: Path to the input CSV file containing the data. The first column should be the object/alternative name (e.g., M1, M2, M3) and will not be used in the calculation. The remaining columns must be numeric.
2.  **Weights**: A comma-separated string of weights for the criteria (e.g., "1,1,1,2").
3.  **Impacts**: A comma-separated string of impacts for the criteria, either '+' or '-' (e.g., "+,+,-,+").
4.  **ResultFileName**: The name of the output CSV file where the results (including Topsis Score and Rank) will be saved.

### Example

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

## License

This project is licensed under the MIT License - see the LICENSE file for details.
