No project description provided
Project description
TOPSIS Package
This is a Python implementation of the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method. It helps evaluate and rank alternatives based on multiple criteria.
Installation
Install the package using pip:
pip install Topsis-MedhaSharma-102217238
---
Verify Installation
After installation, verify it using:
pip show Topsis-MedhaSharma-102217238
This will show details about the installed package, including its version, dependencies, and other metadata.
Input File Requirements
File Format: The input file must be a .csv file.
Columns: The first column should contain the names of alternatives (e.g., M1, M2, M3). The remaining columns should contain numeric values for criteria.
Usage
After installation, you can run the program using the command line.
Syntax:
python -m topsis <input_file> <weights> <impacts> <result_file>
Example Command:
python -m topsis data.csv "1,1,2" "+,+,-" result.csv
Output File
The output file will contain:
All columns from the input file. Two additional columns: Topsis Score: The calculated score for each alternative. Rank: The rank of each alternative (1 = best).
Detailed Steps for Beginners
Prepare Your Input File:
- Use a spreadsheet program (e.g., Excel) to create a .csv file.
- Ensure the first column has names, and the rest have numeric data.
Run the Command:
- Open the terminal in the directory where your input file is located.
- Run the TOPSIS command as explained above.
View the Results:
Open the output file (result.csv) in any spreadsheet program.
Common Issues
I don't have Python installed:
Download Python from python.org and install it.
I get a ModuleNotFoundError:
Ensure the package is installed using pip install.
I see unexpected results:
- Double-check the weights and impacts.
- Ensure all criteria values are numeric.
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 topsis_medhasharma_102217238_v02-0.5.tar.gz.
File metadata
- Download URL: topsis_medhasharma_102217238_v02-0.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a508dc1a67c34dcce5ab6f33e5c85f31721f4562fa9fee41f9d7eb87953800e
|
|
| MD5 |
c6a6771119d7e55714657791542e2745
|
|
| BLAKE2b-256 |
04c14f15c2bbe448b5db10cc27e5fc68db1acd450f36be5620e468316d4b799a
|
File details
Details for the file Topsis_MedhaSharma_102217238_v02-0.5-py3-none-any.whl.
File metadata
- Download URL: Topsis_MedhaSharma_102217238_v02-0.5-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b26d3e9ccaf3f531ae61c87326e1d04daf64748190c8cb0421b5c8be5b7bf0e0
|
|
| MD5 |
524f0bb4a393f72634267b225243726b
|
|
| BLAKE2b-256 |
6a768272b9951f1f0e7880ccc607cada11b516a20bce297ca6868e0b4a53c808
|