Skip to main content

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!

Metadata

Release files for topsispy 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for topsispy 0.0.1
File Size Uploaded Provenance Actions
topsispy-0.0.1.tar.gz 2.8 kB Without provenance Details for topsispy-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for topsispy 0.0.1
File Interpreter ABI Platform Actions
topsispy-0.0.1-py3-none-any.whl Python 3 none any Details for topsispy-0.0.1-py3-none-any.whl

Total release size: 6.5 kB

Release files / topsispy-0.0.1.tar.gz

Download URL topsispy-0.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c68c2704a7a2b5a9107e47f4d67b0f3154f8c124c264ac4a94e12481d8aee8a5
BLAKE2b-256 checksum
How to use checksums
f1293fbaf109d305d6052d27efe8a950afa336f4d96e0c1ccdf1aa03ad829453
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2

Release files / topsispy-0.0.1-py3-none-any.whl

Download URL topsispy-0.0.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
839e034c0147dc79d42171b61f8e90a8bf17b5cab26ace255108925ea105f7c4
BLAKE2b-256 checksum
How to use checksums
37a087b62ff121075614584d9e78434ac2904e91f832b83118e5e2bf9d1f6867
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2

Security for topsispy 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page