ahp.js – nodejs module for Analytic Hierarchy Process (AHP)

AHP node.js module

Recently I wrote a node.js library for AHP.

If you do not know what is AHP, you may see a brief AHP intro post I wrote. Basically it is a methodology to help decision making scenario which we have to evaluate several choices against multiple criteria.

Example problem:

Github: https://github.com/airicyu/ahp
NPM: https://www.npmjs.com/package/ahp

Sample code:

 

Console output:

Interpretation:

The overall rank score(higher is better) of the choices are:
VendorA: 0.3652
VendorB: 0.2852
VendorC: 0.3495
Hence, “VendorA” is preferred in overall ranking.

Brief intro about Analytic Hierarchy Process(AHP)

Brief intro about Analytic Hierarchy Process(AHP)

Analytic Hierarchy Process(AHP) is a kind of methodology to help decision making. It is used for decision scenario which we have to evaluate several choices against multiple criteria.

Example problem:

(from https://en.wikipedia.org/wiki/Analytic_hierarchy_process)

For such problem, we may simply subjectively set a criteria weight, and for each criteria we give a score for all options, and finally calculate a final score for all options for evaluation.

What AHP can help on such problem

AHP can help to provide a more consistent method to evaluate the criteria weight, and we can validate the consistency. And for each criteria perspective choices ranking, AHP can provide a more consistent method to rank options. And again, the consistency can be validated.

More details about how AHP works can be found on Google/Wiki if you are interested. I also found a tutorial, https://mi.boku.ac.at/ahp/ahptutorial.pdf , which talking about AHP and I think it is quite well for understanding the idea.