Skip to main content

A Python package for handling problems of Multiple Criteria Decision Making(MCDM) for a given dataset.

Project description

Topsis-Nipun-102003674

Topsis-Nipun-102003674 is a Python package for dealing with Multiple Criteria Decision Making(MCDM) problems by using Technique for Order of Preference by Similarity to Ideal Solution(TOPSIS). Topsis is a method of compensatory aggregation that compares a set of alternatives, normalising scores for each criterion and calculating the geometric distance between each alternative and the ideal alternative, which is the best score in each criterion.

Installation

Use the package manager pip to install Topsis-Nipun-102003674

Syntax

topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Example:
topsis inputfile.csv 1,2,1,2,1 +,+,-,+,- result.csv

Example

Sample Input Data

Name P1 P2 P3 P4 P5
M1 0.71 0.5 3.8 40.8 11.5
M2 0.94 0.88 5.3 56.2 15.83
M3 0.85 0.72 4 30.5 9.02
M4 0.61 0.37 5.4 56.9 15.82
M5 0.91 0.83 3.4 53.4 14.64

Weights: 1,1,1,1,1 Impacts: +,+,+,+,+

Sample Output Data

Name P1 P2 P3 P4 P5 Score Rank
M1 0.71 0.5 3.8 40.8 11.5 0.3015751942839768 5
M2 0.94 0.88 5.3 56.2 15.83 0.97815026808521971 1
M3 0.85 0.72 4 30.5 9.02 0.4172925776259159 4
M4 0.61 0.37 5.4 56.9 15.82 0.5053936295885693 3
M5 0.91 0.83 3.4 53.4 14.64 0.6774035368116197 2

Note

  1. Enter the path of your input csv file.
  2. Enter the weights and impacts vector with each entry separated by commas.
  3. Enter the name of output file in .csv format.
  4. The Output file will be created in the current working directory

License

© 2023 Nipun Garg This repository is licensed under the MIT license. See LICENCE for details.

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-Nipun-102003674-1.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Nipun_102003674-1.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Nipun-102003674-1.0.0.tar.gz.

File metadata

  • Download URL: Topsis-Nipun-102003674-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for Topsis-Nipun-102003674-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9f8f61d9037f1b6005008963258369c5e6997a819bee796b9aa9f491fd60d8ea
MD5 d67eb93e77402e0220fd578243567fa8
BLAKE2b-256 2474c3e2eccaa237db756dc9d36aaaba90a3e12b7355af637e500dcf999150ee

See more details on using hashes here.

File details

Details for the file Topsis_Nipun_102003674-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Nipun_102003674-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc2da271c524cea2fcb2fca7c86ddf3d02bfa3a50edf51f00dd86dfa8e31c010
MD5 ebccf77c78a3f092139844f2d7c998bf
BLAKE2b-256 8b917ad801765750cbbb9700a8336c927bc71c2adc5f95913ab2624bff6b4698

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