Project Description
Decision support systems are used in industry, to assist users in making decisions. Many methods are used in decision making, one of which is the Analytical Hierarchy Process (AHP). In this method, several layers can be used in decision making. This package has been designed to solve the AHP method with several layers.
Depedencies
- Python >= 3
- numpy
How to use
- run(layers)
Parameters
layers : iterable, array, np.array
The structure of your AHP model (single layer or multi layer).
Example structure
- Goal
- Layer 1
- Node 1
- Node 2
- Node 3
- Layer 2
- Node 1
- Node 2
- Alternatives Layer
- Alternative 1
- Alternative 2
- Alternative 3
- Alternative 4
Example of code
from stahp import stahp
print(stahp.run(
[
[
[1, .3, 5],
[3, 1, 5],
[.2, .2, 1]
],
[
[
[1, .2],
[5, 1]
],
[
[1, 3],
[.3, 1]
],
[
[1, 4],
[.25, 1]
]
],
[
[
[1, 3, .25, 7],
[.3, 1, .25, 7],
[4, 4, 1, 9],
[.14, .14, .11, 1]
],
[
[1, 3, .25, 7],
[.3, 1, .25, 7],
[4, 4, 1, 9],
[.14, .14, .11, 1]
]
]
]
))
Example of output
[0.2502 0.1562 0.5556 0.038 ] #alternative 3 is the best choice
Metadata
Release files for stahp 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stahp-0.1.5.tar.gz | 4.0 kB | Without provenance | Details for stahp-0.1.5.tar.gz |
Release files / stahp-0.1.5.tar.gz
| Download URL | stahp-0.1.5.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d76794818f348afc95201bed1e60eba5fd3a299bf2ebf797954d72ca5f5a670
|
|
BLAKE2b-256 checksum How to use checksums |
a51923ff212c0c089bbfdcbd44ad2526857ed7810dc8ac4953bcb5b231e6b9b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
|
Security for stahp 0.1.5
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.