Skip to main content

TOPSIS-Python

Submitted By: Ishaan 101903137


What is TOPSIS

Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method. TOPSIS chooses the alternative of shortest Euclidean distance from the ideal solution, and greatest distance from the negative-ideal solution. More details at wikipedia.


How to use this package:

Topsis-Ishaan-101903137 can be run as in the following example:

In Command Prompt

>> topsis data.csv "1,1,1,1" "+,+,-,+" output_file.csv

In Python IDLE:

>>> import pandas as pd
>>> from topsis_py.topsis import topsis
>>> dataset = pd.read_csv('data.csv').values
>>> d = dataset[:,1:]
>>> w = [1,1,1,1]
>>> im = ["+" , "+" , "-" , "+" ]
>>> topsis(d,w,im,"output_file.csv")


The rankings are displayed in the form of a table using a package 'tabulate', with the 1st rank offering us the best decision, and last rank offering the worst decision making, according to TOPSIS method.

Release files for Topsis-Ishaan-101903137 1.1.3

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

Source distribution (sdist)

Source distribution for Topsis-Ishaan-101903137 1.1.3
File Size Uploaded
Topsis-Ishaan-101903137-1.1.3.tar.gz 4.2 kB Details

Release files / Topsis-Ishaan-101903137-1.1.3.tar.gz

Download URL Topsis-Ishaan-101903137-1.1.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b5e8b18f5dc365da2f14d9e069eac8a147f32b83f8807690d8b39dd03a2e8f7d
BLAKE2b-256 checksum
How to use checksums
1fdb33d4b48ac65af6b25153927503196c427ea4fec01437e9c8ca7e57d38db5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

Release history Release notifications | RSS feed

This release

1.1.3 This release

1 release file

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