Skip to main content

topsis package for MCDM problems

Project description

topsis_102017134

for: Project-1 (UCS654) submitted by: Soumya Srivastava Roll no: 102017134 Group: 3CS6

topsis-102017134 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_102017134.

pip install topsis-102017134

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 (+,-), and lastly the outputFileName.

topsisSolve sample.csv "1,1,1,1" "+,-,+,+" "outputFile.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 = [ + , + , - , + ]

input:

topsisSolve sample.csv "0.25,0.25,0.25,0.25" "+,+,-,+" "outputFile.csv"

output:

    P-Score  Rank
1  0.534277     3
2  0.308368     5
3  0.691632     1
4  0.534737     2
5  0.401046     4

License

MIT

Github Repository

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_102017134-0.4.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file topsis_102017134-0.4.tar.gz.

File metadata

  • Download URL: topsis_102017134-0.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for topsis_102017134-0.4.tar.gz
Algorithm Hash digest
SHA256 973613d68ace14758f2cbd288532cdcaa2bad3d77ae86342eb9a972da4c4c345
MD5 d62b2125ad8d694e5996639c1fcb5ea2
BLAKE2b-256 874cbb598918224995460f6bcae50d461008566a2140eba2c0c7760bbee532fb

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