Skip to main content

A simplified package to perform TOPSIS Analysis.

Project description

TOPSIS

TOPSIS is an acronym that stands for ‘Technique of Order Preference Similarity to the Ideal Solution’ and is a pretty straightforward MCDA method. As the name implies, the method is based on finding an ideal and an anti-ideal solution and comparing the distance of each one of the alternatives to those. It was presented in Hwang and Yoon (Multiple attribute decision making: methods and applications. Springer, Berlin, 1981) and Chen and Hwang (Fuzzy multiple attribute decision making methods. Springer, Berlin, 1992), and can be considered as one of the classical MCDA methods that has received a lot of attention from scholars and researchers.

Dependencies

• OS
• Pandas

Installation

pip install TOPSIS-Parth-101983047==0.0.2

Usage

perform_Topsis(source, weights, impacts, result)

Parameters

source : Input data file in .csv format
weights : List of weights for columns except first column
impacts : list of impacts for columns except first column
result : Output file name to store results in .csv format

Constraints / Exceptions handled

1. Correct number of parameters (source, weights, impacts, result)
2. Handling of “File not Found” exception
3. Input file must contain three or more columns.
4. From 2 nd to last columns must contain numeric values only (Handling of non-numeric values)
5. Number of weights, number of impacts and number of columns (from 2 nd to last columns) must
be same.
6. Impacts must be either +ve or -ve.
7. Impacts and weights must be separated by ‘,’ (comma).
8. Output "File already exists" condition

Example

>>>python
>>>from Topsis-Parth-101983047.Topsis import topsis
>>>topsis.perform_Topsis('data.csv', [1,2,1,2], [+,-,-,+], 'result.csv')

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

TOPSIS-Parth-101983047-0.0.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

TOPSIS_Parth_101983047-0.0.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file TOPSIS-Parth-101983047-0.0.3.tar.gz.

File metadata

  • Download URL: TOPSIS-Parth-101983047-0.0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for TOPSIS-Parth-101983047-0.0.3.tar.gz
Algorithm Hash digest
SHA256 cc12a38f860b210faeb816b43c20310c20f600f2e0217176b7d99c96698d5211
MD5 a892b0ca62634623b9727e512440f2f5
BLAKE2b-256 c07edb6eb49918f3398df6f762e4c05c6c0426b85b8a8dd3df2e747ce9d1a35e

See more details on using hashes here.

File details

Details for the file TOPSIS_Parth_101983047-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: TOPSIS_Parth_101983047-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for TOPSIS_Parth_101983047-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fba07897229600d2c1721f34ea793f1ed71a06b5077c360f1d0d8a70633bbe15
MD5 cbe4d4f20a95472d889303bc3c60b6b7
BLAKE2b-256 cc8610a09874a89d59c075606e8ee517dacd57a9c04101d7ab0ca776f6b16708

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