Skip to main content

topsis package for MCDM problems

Project description

topsis-7016

for: Project-1 (UCS654) submitted by: Mukul Sharda Roll no: 102197016 Group: 3CS-4

topsis-7016 is a Python library which implements the TOPSIS algorithm used for Multiple Criteria Decision Making(MCDM). Know more about Topsis

Installation

Use the package manager pip to install topsis-7016.

pip install topsis-7016

Usage

Enter filename followed by .csv or .xlsx extentsion, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma separated signs (+,-), make sure to pass the file where you want to store your results.

from topsis import topsis
topsis.main("file_path", "weights", "impacts", "output.csv")

Example

sample.csv

A csv file showing data for different mobile handsets having varying features.

Model Storage space(in gb) Camera(in MP) Price(in $) Looks(out of 5)
M1 16 12 250 5
M2 16 8 200 3
M3 32 16 300 4
M4 32 8 275 4
M5 16 16 225 2

weights vector = [ 0.25 , 0.25 , 0.25 , 0.25 ]

impacts vector = [ + , + , - , + ]

Other notes

  • Make sure the csv does not contain categorical values.
  • Make sure your dataset has atleast 3 rows and 3 columns.
  • The length of weights vector and impact vector must equal the number of columns in dataset.
  • While writing weights vector or impact vectors, please make sure not to put extra spaces.

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-7016-1.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

topsis_7016-1.1.0-py3.10.egg (5.4 kB view details)

Uploaded Egg

File details

Details for the file topsis-7016-1.1.0.tar.gz.

File metadata

  • Download URL: topsis-7016-1.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for topsis-7016-1.1.0.tar.gz
Algorithm Hash digest
SHA256 78e635e8e1c1154701856bf97e773060f54ef7b706a2cf1f749d19e5e283ec4d
MD5 593abaca66ce3aa2362d10764ed73ca4
BLAKE2b-256 66ba4d5cde20edd12fe1a09ad4e1324f0bd36c386f60e1e0324a102c0c952cee

See more details on using hashes here.

File details

Details for the file topsis_7016-1.1.0-py3.10.egg.

File metadata

  • Download URL: topsis_7016-1.1.0-py3.10.egg
  • Upload date:
  • Size: 5.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for topsis_7016-1.1.0-py3.10.egg
Algorithm Hash digest
SHA256 d8ba142a63843986c49dd9edd98ae8f0ba5d5d0a31f5997a5904b73149bd12e5
MD5 3090d2979ce66ea77f4239c4eb4e1f09
BLAKE2b-256 4ede70e571251cd7ce7ae8634af470d7f2ee81eb78b329172ef2758b6491e57f

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