semvec/pypi-packages huggingface dataset:
Topsis-Ketan-102303871 0.0.1
A Python package implementing TOPSIS
License: MIT
Requires Python: >=3.8

# Topsis-Ketan-10155792

This is 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 chooses the alternative of shortest geometric distance from the positive ideal solution and the longest geometric distance from the negative ideal solution.

## Installation

You can install the package using pip:

```bash
pip install Topsis-Ketan-10155792
```

## Usage
This package can be run directly from the command line. It accepts an input file (Excel or CSV), weights for each criterion, impacts (beneficial or non-beneficial), and the name of the output file.

### Command syntax
topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>

### Parameters
InputDataFile: Path to the input file (e.g., data.xlsx). The first column must contain the object/fund names, and the rest must be numeric values.

Weights: Comma-separated numbers indicating the weight of each criterion (e.g., 1,1,1,1).

Impacts: Comma-separated + or - signs indicating if a variable is beneficial (+) or non-beneficial (-) (e.g., +,+,-,+).

ResultFileName: Name of the output CSV file to save the results (e.g., result.csv).

#### Example:
topsis data.xlsx "0.25,0.25,0.25,0.25" "+,+,-,+" result.csv

## License
This project is licensed under the MIT License.