Skip to main content

Topsis Package

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aditya-102103464-1.1.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aditya_102103464-1.1.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for aditya-102103464-1.1.1.tar.gz
Algorithm Hash digest
SHA256 28422130a3a61ac3831a62a1e68f2ac4723d8e1268955e2db311a3d0011fe27e
MD5 466880d1c0cd7ab8e1e37107517841b7
BLAKE2b-256 793b1516f3119c8b53fc566ed7482432025cd04d56bef7f21f709f49279a8dba

See more details on using hashes here.

File details

Details for the file aditya_102103464-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aditya_102103464-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcdddb8a6ffd5dd1ffe3df95dc2a9d52081eb262f8448c22731113dcc66d7993
MD5 a6874406642bae8eb4ed8e40f9c98be5
BLAKE2b-256 4977184e3535cee9d52ab190e8a0f740108371be46ead87bec263eb729c7cfe1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page