Skip to content

Commit

Permalink
README updated, minor fixes in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shivambehl committed Jan 19, 2020
1 parent e64a507 commit 55abbf3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
36 changes: 33 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,44 @@
# PyTopsis
# TopsisPy


PyTopsis is a Python Package implementing Topsis meathod used for multi-criteria decision analysis method
TopsisPy is a Python Package implementing [Topsis](https://en.wikipedia.org/wiki/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 -
```s
$ pip install topsispy
```
And using the in python as -
```s
>>> 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 -
```s
(2, array([0.53427686, 0.30836777, 0.69163223, 0.53473658, 0.40104612]))
```

### Development

Want to contribute? Great!
Expand All @@ -18,5 +49,4 @@ License

MIT


**Free Software, Hell Yeah!**
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def readme():
license='MIT',
description='This is a Python Package implementing Topsis used for multi-criteria decision analysis method',
long_description=readme(),
long_description_type='text/markdown',
long_description_content_type='text/markdown',
author='Shivam Behl',
author_email='shivambehl123@gmail.com',
url='https://github.com/shivambehl/TopsisPy',
Expand Down

0 comments on commit 55abbf3

Please sign in to comment.