Skip to main content

A python package for implementing topsis

Project description

Topsis-Gautam-102217084

Assignment(UCS654)
Submitted by: Gautam Garg
Roll no: 102217084
Group: 3Q14

Description

This is a python package used to implement TOPSIS(Technique of Order Preference Similarity to the Ideal Solution) for MCDA(Multiple criteria decision analysis)


How to use this package:

Installation

pip install Topsis-Gautam-102217084

Example:

Sample dataset

P1 P2 P3 P4 P5
0.84 0.71 6.7 42.1 12.59
0.91 0.83 7.0 31.7 10.11
0.79 0.62 4.8 46.7 13.23
0.78 0.61 6.4 42.4 12.55
0.94 0.88 3.6 62.2 16.91
0.88 0.77 6.5 51.5 14.91
0.66 0.44 5.3 48.9 13.83
0.93 0.86 3.4 37.0 10.55

Input

In Command Prompt

Enter filename followed by .csv or .xlsx extension, then enter values of weights separated by commas like "1,1,1,2,2",then enter values of impacts separated by commas like "+,+,-,-,+" without giving space in between comma value, then enter name of file where you want to save output followed by .csv extension

python -m Topsis-Gautam-102217084 data.xlsx "1,1,1,1,1" "+,-,+,-,+" output.csv

Output

This will be in our Output csv file

P1 P2 P3 P4 P5 Topsis Score Rank
0.84 0.71 6.7 42.1 12.59 0.5945517248616172 2
0.91 0.83 7.0 31.7 10.11 0.5662461787825045 3
0.79 0.62 4.8 46.7 13.23 0.4853941230447056 6
0.78 0.61 6.4 42.4 12.55 0.6127758823558636 1
0.94 0.88 3.6 62.2 16.91 0.36155091758331526 8
0.88 0.77 6.5 51.5 14.91 0.5387640655736284 5
0.66 0.44 5.3 48.9 13.83 0.560458620506467 4
0.93 0.86 3.4 37.0 10.55 0.38966293040831607 7

Published Package on pypi.org

https://pypi.org/project/Topsis-Gautam-102217084/

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_gautam_102217084-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Gautam_102217084-1.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file topsis_gautam_102217084-1.0.0.tar.gz.

File metadata

  • Download URL: topsis_gautam_102217084-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for topsis_gautam_102217084-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ce4aba1a0dac8c8e62f4fe90576d2da31a60e6098661b6f9ef6b59f3310dcf1d
MD5 6e8dbb87a6c9e5b5dd4fde93aad01a46
BLAKE2b-256 4bf44c9ff263d12512e277c8ab7e9e681e3e18b29631c8d2dac05736fdabfe5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Topsis_Gautam_102217084-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b475f85be231065f4d8209d4397091be003032a2ae68fab3dca71d182be8bc45
MD5 7e0b19a64b9ddf8954fadb8aa800f9cf
BLAKE2b-256 fc9e8585ad0b05d0455b57897531071e9848b12c9d0eac99a1ab41d907e0886e

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