Skip to main content

This is a Python Package implementing Topsis used for multi-criteria decision analysis method

Project description

TopsisPy

TopsisPy is a Python Package implementing Topsis method used for multi-criteria decision analysis. Topsis stands for 'Technique for Order of Preference by Similarity to Ideal Solution'.

TopsisPy intends to make the process of TOPSIS simple in python. Key features of the package are -

  • Easy to use
  • Numpy based
  • Ideal for Students

And offcourse, PyTopsis code is Open Source.

How to use?

Install the Package using the command -

$ pip install topsispy

And using the in python as -

>>> import topsispy as tp
>>> a =[
...     [250, 16, 12, 5],
...     [200, 16, 8, 3],
...     [300, 32, 16, 4],
...     [275, 32, 8, 4],
...     [225, 16, 16, 2]
... ]
>>> w = [0.25, 0.25, 0.25, 0.25]
>>> sign = [-1, 1, 1, 1]
>>> tp.topsis(a, w, sign)

This will return a tuple with

  1. the index of winning data point
  2. array containing scores of all data points As for above -
(2, array([0.53427686, 0.30836777, 0.69163223, 0.53473658, 0.40104612]))

Development

Want to contribute? Great! Use your Python skills and creativity for easy decision making for the world.

License

MIT

Free Software, Hell Yeah!

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for topsispy, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size topsispy-0.0.1-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size topsispy-0.0.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page