Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AHP and quantitative criteria #63

Open
labuzm opened this issue May 11, 2018 · 3 comments
Open

AHP and quantitative criteria #63

labuzm opened this issue May 11, 2018 · 3 comments
Assignees
Milestone

Comments

@labuzm
Copy link

labuzm commented May 11, 2018

Hello, I'm wondering if it's possible to compute AHP with only qualitative criteria? I have tried to omit 'quantitative_criteria' parameter or set it to empty tuple, but in both cases program crashes. Any help would be appreciated.

@KevinFasusi
Copy link
Owner

Hi @labuzm,

Can you please give me an example, preferably with a code snippet, of what you mean by using only 'qualitative_criteria' ? Thank you.

@labuzm
Copy link
Author

labuzm commented May 17, 2018

Hmm I wasn't right, setting quantitative_criteria to empty tuple works.

See line:
https://github.com/KevinFasusi/supplychainpy/blob/master/supplychainpy/bi/_analytical_heirachy_process.py#L40

The default value for quantitative_criteria argument is set to None which is I believe the reason why below code crashes:
https://gist.github.com/labuzm/e25374b86385d9fed0cd43b4ffdee84c

How about setting default value to empty tuple?

@KevinFasusi
Copy link
Owner

@labuzm okay. Yep, I will see if I can change it to an empty tuple in the next release or highlight in the docs that you need to set the qualitative_criteria to an empty tuple. Thanks for raising the issue.

@KevinFasusi KevinFasusi self-assigned this May 17, 2018
@KevinFasusi KevinFasusi added this to the release 0.0.6 milestone May 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants