Skip to main content

TOPSIS Implementation

Project description

TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution)

Description

Topsis-Joyy-102117024

For: Assignment-1(UCS654) Submitted-by: Joyy Goswami Roll no: 102117024 Group: 3CS-1

Topsis-Joyy-102117024 is a Python package for dealing with Multiple Criteria Decision Making(MCDM) problems by using TOPSIS

Installation

Use the package manager pip to install Topsis-Joyy-102117024

pip install Topsis-Joyy-102117024

Usage

Enter csv filename followed by .csv extension, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma-separated signs (+,-)

bash python sample.py sample.csv "1,1,1,1,2" "+,+,-,+,+" sample-result.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 = [1, 1, 1, 1] impacts vector = [+,+,-,+]

Input:

python sample.csv "1,1,1,1" "+,+,-,+" sample-result.csv

Output:

Topsis-score Rank
0.534277 3
0.308368 5
0.691632 1
0.534737 2
0.401046 4

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-Joyy-102117024-0.0.8.tar.gz (3.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_Joyy_102117024-0.0.8-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Joyy-102117024-0.0.8.tar.gz.

File metadata

  • Download URL: Topsis-Joyy-102117024-0.0.8.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for Topsis-Joyy-102117024-0.0.8.tar.gz
Algorithm Hash digest
SHA256 64dd75ee444dd872d564438f51678da89f3993acc36c95676c9454dadf686be4
MD5 0ca9d6c5495d018ca0c2cdfb1062b2e8
BLAKE2b-256 5b5e073830076b7e6ba987920be9cbeb694919220a71199fcce76de9cd4ad55d

See more details on using hashes here.

File details

Details for the file Topsis_Joyy_102117024-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Joyy_102117024-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4816050b71cecf8282731f9d94aad4bc0d085334ca00d103df1dab3ab8bcaeab
MD5 021b642851b4ee86d596d94a8056528c
BLAKE2b-256 3520a78365054b875570ca8f6d2f0bbf85861415e031f7c30b2bff33a0988125

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