MCDM solved using TOPSIS
Project description
Project description
MCDM solution using TOPSIS using CLI
A Python package made by me to solve the problem of MCDM (Multi Criteria Decision Making) implemented using TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) algorithm. This package supports both CSV and Excel files.
Installation
Follow the steps below to install and use the package:
Install the Package from PyPI (recommended):
pip install 102203092_topsis
Repo Clone (optional):
git clone
cd TOPSIS-pypi
(Optional) Install Locally: If you have the source code and want to install the package locally:
pip install setuptools wheel
python setup.py sdist bdist_wheel
pip install .
| Argument | Description |
|---|---|
| input_file | "CSV/Excel" file path |
| weights` | Comma-separated numbers |
| impacts | Comma-separated '+' or '-' |
| output_file | Output CSV/Excel file path |
Usage
- After installation, you can use the package directly from the command line using topsis-cli.
- The CLI supports both .csv and .xlsx formats for input and output files.
- Command-Line Interface (CLI)
- Package installed from PyPi can be globally used irrespective of directory
topsis-cli <input_file> <weights> <impacts> <output_file>
Args:
- input_file: Path to the input file (must be .csv or .xlsx).
- weights: Comma-separated list of weights for the criteria (e.g., 0.4,0.3,0.3).
- impacts: Comma-separated list of impacts for the criteria (+ for positive, - for negative).
- output_file: Path to save the output file (can be .csv or .xlsx).
Input File Format
| Col 1 | Col 2 | Col 3 |
|---|---|---|
| Alternte ID | Criterion 1 Value | Criterion 2 Value |
Output File Format
| Col 1 | Col 2 | Col 3 | Col 4 | Col 5 |
|---|---|---|---|---|
| Alternate ID | Criterion 1 Value | V2 | Topsis Score | Rank |
Uday Sharma
102203092
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file 102203092_topsis-1.1.2.tar.gz.
File metadata
- Download URL: 102203092_topsis-1.1.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
768c6573f72b86bbd96a2e411a9078d9d9377435433c963c066a32cd37d9fb8e
|
|
| MD5 |
6309485fbef1488c09c7eb88cfb9e668
|
|
| BLAKE2b-256 |
6e6fe6e8362e3cbadb54a54c12ea885cb11a3e56bd52d25cd9fa95677f07875b
|
File details
Details for the file 102203092_topsis-1.1.2-py3-none-any.whl.
File metadata
- Download URL: 102203092_topsis-1.1.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9daa71519687e86b339f68093f7f2bbfbee2b0f91d02d46ffe14e5686e5ed5ca
|
|
| MD5 |
7934724efe5a58d825b163687be4dbeb
|
|
| BLAKE2b-256 |
654c6a7ddc732c0483c01970b7fe9f2eeff15ca8c24834fb3fe1cf322dad6c8d
|