Skip to main content

TOPSIS Application

Project description

Topsis-Prisha-102116052

for: Project-1 (UCS654)

submitted by: Prisha Sawhney

Roll no: 102116052

Group: 3CS10

Topsis-Prisha-102116052 is a Python library for dealing with Multiple Criteria Decision Making(MCDM) problems by using Technique for Order of Preference by Similarity to Ideal Solution(TOPSIS).

Installation

Use the package manager pip to install Topsis-Prisha-102116052.

pip install Topsis-Prisha-102116052

Usage

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

topsis sample.csv "1,1,1,1" "+,-,+,+"

or vectors can be entered without " "

topsis sample.csv 1,1,1,1 +,-,+,+

But the second representation does not provide for inadvertent spaces between vector values. So, if the input string contains spaces, make sure to enclose it between double quotes (" ").

To view usage help, use


topsis /h

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 = [ + , + , - , + ]

input:

topsis sample.csv "0.25,0.25,0.25,0.25" "+,+,-,+"

output:


      TOPSIS RESULTS

-----------------------------



    P-Score  Rank

1  0.534277     3

2  0.308368     5

3  0.691632     1

4  0.534737     2

5  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-Prisha-102116052-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Prisha_102116052-0.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Prisha-102116052-0.0.1.tar.gz.

File metadata

  • Download URL: Topsis-Prisha-102116052-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for Topsis-Prisha-102116052-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0ee002611fea004c6c4439dbdbf75458b722bacefffeebb841e9ff2f17fb8158
MD5 1de32c259a276e42005448d8086d7785
BLAKE2b-256 02a7236053a48f6df218214f53335c5d2852b3bdfb88e0807dfa7375ab6f6a13

See more details on using hashes here.

File details

Details for the file Topsis_Prisha_102116052-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Prisha_102116052-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0f5ca512ab224ad66fc601c3a7cd2cc622cee319037f435f2b426c73259ece0
MD5 f6a35e501cc758fa8b4ef6759e6f0a86
BLAKE2b-256 20808937ba9b210462f85b066e518fc8f40d87e3308ac0a2f2d3c6dacc3e38eb

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