Skip to main content

TOPSIS Python Package

License: MIT

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.

Metadata

Release files for aditya-102103464 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aditya-102103464 1.1.1
File Size Uploaded Provenance Actions
aditya-102103464-1.1.1.tar.gz 2.3 kB Without provenance Details for aditya-102103464-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aditya-102103464 1.1.1
File Interpreter ABI Platform Actions
aditya_102103464-1.1.1-py3-none-any.whl Python 3 none any Details for aditya_102103464-1.1.1-py3-none-any.whl

Total release size: 4.8 kB

Release files / aditya-102103464-1.1.1.tar.gz

Download URL aditya-102103464-1.1.1.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
28422130a3a61ac3831a62a1e68f2ac4723d8e1268955e2db311a3d0011fe27e
BLAKE2b-256 checksum
How to use checksums
793b1516f3119c8b53fc566ed7482432025cd04d56bef7f21f709f49279a8dba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / aditya_102103464-1.1.1-py3-none-any.whl

Download URL aditya_102103464-1.1.1-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcdddb8a6ffd5dd1ffe3df95dc2a9d52081eb262f8448c22731113dcc66d7993
BLAKE2b-256 checksum
How to use checksums
4977184e3535cee9d52ab190e8a0f740108371be46ead87bec263eb729c7cfe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for aditya-102103464 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page