Metadata-Version: 2.4
Name: Topsis-Raj-102317090
Version: 1.0.1
Summary: A python package for implementing TOPSIS
Author: Raj
Author-email: rbrar_be23@thapar.edu
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: license-file
Dynamic: summary

# Topsis-Raj-102317090

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

TOPSIS is a multi-criteria decision analysis method that compares a set of alternatives based on a set of criteria. It identifies the alternative that is closest to the ideal best solution and farthest from the ideal worst solution.

## Installation

You can install the package using pip:

```bash
pip install Topsis-Raj-102317090

Usage
This package can be used via the command line interface (CLI).

Command Syntax

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

Parameters

InputDataFile: The path to the CSV file containing the data.

The first column must contain the object/variable names (e.g., M1, M2, M3).

From the 2nd column to the last, the file must contain numeric values only.

Weights: A comma-separated string of numbers representing the weights for each criterion (e.g., "1,1,1,2").

Impacts: A comma-separated string of + or - signs representing the impact of each criterion (e.g., "+,+,-,+").

+ implies a higher value is better (Profit).

- implies a lower value is better (Cost).

ResultFileName: The name of the output CSV file where the results (including TOPSIS Score and Rank) will be saved.

Example

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

Constraints:

The input file must contain three or more columns.

The number of weights, impacts, and numeric columns must be the same.

Impacts must be strictly either + or -.

Weights must be numeric and separated by commas.

License
This project is licensed under the MIT License.


### Reminder:
Since you are updating this, remember to change your version number in `setup.py` to **1.0.1** (or higher) before you run the build command again, otherwise PyPI will reject it.
