Topsis Package
Project description
TOPSIS Python Package
TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) is a method for multicriteria decision analysis. This Python package provides a simple implementation of TOPSIS for ranking alternatives based on multiple criteria.
Installation
You can install the topsis package using pip:
pip install topsis-Aditya-102103464
Usage
import numpy as np from topsis-Aditya-102103464 import topsis
Example decision matrix
import .csv data file
Criteria weights
weights = [1, 1, 1, 1]
Impact criteria
impacts = [True, True, True, True]
Perform TOPSIS analysis
scores = topsis(matrix, weights, is_benefit) ranking = np.argsort(scores)[::-1] print("Scores:", scores) print("Ranking:", ranking+1)
Output
A .csv file containing input columns with two additional columns ie. topsis score and ranking will be generated.
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 aditya-102103464-1.1.1.tar.gz.
File metadata
- Download URL: aditya-102103464-1.1.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28422130a3a61ac3831a62a1e68f2ac4723d8e1268955e2db311a3d0011fe27e
|
|
| MD5 |
466880d1c0cd7ab8e1e37107517841b7
|
|
| BLAKE2b-256 |
793b1516f3119c8b53fc566ed7482432025cd04d56bef7f21f709f49279a8dba
|
File details
Details for the file aditya_102103464-1.1.1-py3-none-any.whl.
File metadata
- Download URL: aditya_102103464-1.1.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcdddb8a6ffd5dd1ffe3df95dc2a9d52081eb262f8448c22731113dcc66d7993
|
|
| MD5 |
a6874406642bae8eb4ed8e40f9c98be5
|
|
| BLAKE2b-256 |
4977184e3535cee9d52ab190e8a0f740108371be46ead87bec263eb729c7cfe1
|