semvec/pypi-packages huggingface dataset:
Topsis-Aastha-102203908 1.0.2
A Python package to perform TOPSIS (Technique for Order Preference by Similarity to Ideal Solution)
Requires Python: >=3.6

# Topsis_Aastha_102203908

`Topsis_Aastha_102203908`is a Python package for implementing the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS). It is a popular multi-criteria decision-making method used to rank alternatives based on their relative closeness to the ideal solution.

## Installation

You can install the package using pip:

```bash
pip install Topsis_Aastha_102203908
```

## Usage

### Input File Format

The input CSV file must follow this structure:

- The first column should contain the names of the alternatives (e.g., products, models, or options).
- Subsequent columns should contain the numerical values of the criteria for each alternative.
- The first row should provide headers for all columns.

### Example

Suppose you have an input CSV file named `data.csv` with the following content:

| Model | Price | Battery Life | Performance | Portability |
| ----- | ----- | ------------ | ----------- | ----------- |
| m1    | 300   | 10           | 8           | 6           |
| m2    | 250   | 8            | 7           | 9           |
| m3    | 400   | 9            | 9           | 5           |

You want to apply the TOPSIS method with the following parameters:

- Weights for the criteria: `Price` (0.5), `Battery Life` (0.3), `Performance` (0.2)
- Impacts for the criteria: `Price` (-), `Battery Life` (+), `Performance` (+)

The command would be:

````bash
topsis data.csv "0.5,0.3,0.2" "-,+,+" results.csv


### Command-line Usage

After installation, you can use the `topsis` command in the terminal:

```bash
topsis <input_file> <weights> <impacts> <output_file>
````

- `<input_file>`: Path to the input CSV file.
- `<weights>`: Comma-separated string of weights for the criteria.
- `<impacts>`: Comma-separated string of '+' or '-' indicating the desirability of the criteria.
- `<output_file>`: Path to the output CSV file to save the results.

## Example

```bash
topsis data.csv "0.5,0.3,0.2" "+,-,+" results.csv
```

This command will process the `data.csv` file using the specified weights and impacts and output the results to `results.csv`.

## NOTE

- Ensure the input file contains at least three columns: one for alternatives and at least two for criteria.
- All criteria values should be numerical.
- The number of weights and impacts should match the number of criteria columns.
- Impacts must only include + (beneficial) or - (non-beneficial).

## License

This project is licensed under the MIT License. See the LICENSE file for details.
Topsis-102203313-Aryan-Chharia 1.0.0
A Python package for TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution)
Requires Python: >=3.6

# TOPSIS-102203313-Aryan_Chharia

## Description
This package implements the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) method. TOPSIS is a multi-criteria decision analysis method that helps in ranking alternatives based on multiple criteria.

## Installation
```bash
pip install Topsis-102203313-Aryan_Chharia
```

## Usage
The package can be used from the command line:

```bash
topsis-aryan <InputDataFile> <Weights> <Impacts> <ResultFileName>
```

### Arguments:
1. `InputDataFile`: CSV file containing the decision matrix
   - First column: Object/Alternative names
   - Second column onwards: Criteria values (numeric)
2. `Weights`: Comma-separated weights for criteria (e.g., "1,1,1,2")
3. `Impacts`: Comma-separated impacts for criteria ('+' for benefit, '-' for cost) (e.g., "+,+,-,+")
4. `ResultFileName`: Name of the output CSV file

### Example:
```bash
topsis-aryan data.csv "1,1,1,2" "+,+,-,+" result.csv
```

### Input File Format:
The input CSV file should look like this:
```
Fund Name,P1,P2,P3,P4
M1,0.85,0.72,4.6,42
M2,0.65,0.66,4.8,53
M3,0.90,0.77,4.5,38
```

### Output:
The program will create a result CSV file with additional columns:
- Topsis Score
- Rank

## License
MIT License

## Author
Aryan Chharia