06 Analitic Hierarchy Process AHP
06 Analitic Hierarchy Process AHP
Introduction
• The analytic hierarchy process (AHP), developed by
Thomas L. Saaty is designed to solve complex
multicriteria decision problems.
• AHP requires the decision maker to provide
judgments about the relative importance of each
criterion and then specify a preference for each
decision alternative using each criterion.
• The output of AHP is a prioritized ranking of the
decision alternatives based on the overall
preferences expressed by the decision maker.
1
Structure of AHP process
• The structure of AHP is hierarchical, and there are
basic and more complex structure:
• The basic structure:
• Overall Goal (eg. Selection the best car)
• Criteria (eg. Price, Comfort, fuel consumption…)
• Alternative (eg. Mazda 5, Citroen C4 picasso, Renault
Senic, Opel Zafira…)
GOAL
2
• The complex structure:
• goal, criteria, alternatives
• goal, criteria, sub-criteria, alternatives
• goal, scenarios, criteria (sub-criteria), alternatives
• goal, factors, scenarios, criteria (sub-criteria),
alternatives
• goal, factors, scenarios, criteria (sub-criteria), groups
of alternatives, alternatives
3
• In this model, we can also compare the subjective
qualities, like tastes and personal preferences, and
express them in numbers.
• The calculation is based on the matrices and includes
the calculation of eigen vectors (C*) and eigenvalues
(λmax)
• There is software that can help us to employ AHP
method without mathematical calculation (Expert
Choice)
4
Saaty’s scale for pairwise comparisons
5
• If, for example, within one criterion, we consider the
5th alternative strongly more important than the 2nd
alternative, this means that a52=5* (or 4*), and in the
same time this means that a25=1/5
• General rule is: aij=1/aji
• This also means that aii=1* (The comparation of the
alternative to itself is equal to one)
6
Example
• The company needs to make a decision about
purchasing a new machine for manufacturing.
• For this decision, the management decided to
employ AHP method.
• The selection is based on four criteria: speed of the
machine (how fast it can produce one piece of
product), service availability, reliability (potential
failures), and price.
• After the initial selection, management will have to
choose one of these three machines which
characteristics are provided in the following table:
7
a) Compare the criteria with sufficient consistency - forming the
pairwise comparison matrix of the criteria (use Saaty’s scale)
b) Based on information from the Table, compare the alternatives
within each criterion with sufficient consistency - forming the
pairwise comparison matrices of the alternatives for each criterion
(use Saaty’s scale)
c) Calculate the vector of priority of the criteria among themselves (k)
d) Calculate vectors of priority of alternatives for each criterion (v1, v2,
...)
e) Calculate the overall priority vector (p), and provide the comment
of the obtained results
f) Conduct a "what-if" analysis (sensitivity analysis) for the criterion
"Price", and give the appropriate explanations
g) Calculate the degree of consistency of the pairwise judgemens of
alternatives within criterion "speed" and explain the obtained
results
8
b) forming the pairwise comparison matrices of the
alternatives for each criterion
Comparation of the alternatives within Comparation of the alternatives within
criterion „Speed” criterion „Reliability”
Mash. A Mash. B Mash. C Mash. A Mash. B Mash. C
Mash. A 1 1/3 4 Mash. A 1 6 4
Mash. B 3 1 7 Mash. B 1/6 1 1/3
Mash. C 1/4 1/7 1 Mash. C 1/4 3 1
Comparation of the alternatives within Comparation of the alternatives within
criterion „Service availability” criterion „Price”
Mash. A Mash. B Mash. C Mash. A Mash. B Mash. C
Mash. A 1 4 8 Mash. A 1 3 1/3
Mash. B 1/4 1 4 Mash. B 1/3 1 1/6
Mash. C 1/8 1/4 1 Mash. C 3 6 1
9
Pairwise comparison matrix of the criteria
Service
Speed Reliability Price
availability
Speed 1 2 5 1/3
Reliability 1/2 1 4 1/4
Service
1/5 1/4 1 1/5
availability
Price 3 4 5 1
Sum 4.700 7.250 15.000 1.783
Service
Norm. matr. Speed Reliability Price
availability k
Service
0.043 0.034 0.067 0.112 0.064
availability
10
d) The vectors of priority of alternatives
for each criterion (v1, v2, ...)
• In the same manner (likewise the vector k) the
vectors of priority of alternatives for each criterion
are calculated
• We will have as many vectors as there are criteria.
• Number of elements in each vector will be as many
as there are alternatives.
• These vectors are also known as vectors of local
priority of alternatives.
11
The vector of priority of alternatives for
criterion „Reliability”
Comparation of the alternatives within criterion „Reliability”
Mash. A Mash. B Mash. C
Mash. A 1 6 4
Mash. B 1/6 1 1/3
Mash. C 1/4 3 1
Sum 1.417 10.000 5.333
12
The vector of priority of alternatives for
criterion „Price”
Comparation of the alternatives within criterion „Price”
Mash. A Mash. B Mash. C
Mash. A 1 3 1/3
Mash. B 1/3 1 1/6
Mash. C 3 6 1
Sum 4.333 10.000 1.500
13
The overall priority vector (p)
14
Sensitivity analysis ("what-if" analysis)
• In this example the input data for calculation of
overall priority was the assessment of the relative
importance of the criteria and the assessment of
local priorities of the alternatives.
• It can be assumed that these estimates can vary in
certain ranges without affecting the final ranking the
decision alternatives
• Sensitivity analysis is performed in order to see to
what extent the changes in the input data will reflect
to the final ranking of the alternatives.
15
Explanation of the obtained result
• The obtained graph shows that:
1. If the weight (importance) of the criteria "price" increase, the
„attractiveness” of alternative „Machine C” will also increase, and
the „attractiveness" of the alternatives "Machine A" and „Mashine
B” will decrease, and vice versa
2. If the weight (importance) of the criteria "price" decrease, the
„attractiveness” of alternative „Machine C” will decrease, and the
„attractiveness” of the alternatives "Machine A" and „Mashine B”
will increase
3. If the weight of criteria "Price" is between 0,340 and 0,448, the rank
order of alternatives is: „Mashine A” (first place), „Machine C"
(second), and „Machine B" (third place).
4. If the weight of criteria "Price" drop below the 0,340-level, the
rank order of alternatives will be: „MachineA”, „Machine B”, and
„Machine C”.
16
Consistency
• By measuring the consistency we examine whether we were consistent
enough in the process of comparing the alternatives and criteria.
• For example, if criterion A compared to criterion B has a numerical rating
of 3, and if criterion B compared to criterion C has a numerical rating of 2,
perfect consistency of criterion A compared to criterion C would have a
numerical rating of 3 × 2 = 6.
• If the A to C numerical rating assigned by the decision maker was 4 or 5,
some inconsistency would exist among the pairwise comparison.
• However, if the A to C numerical rating was assigned 1/3 (this means that
C is better than A), this wold be the major violation of the consistency, and
all process of decision making will be meaningless
• With numerous pairwise comparisons, perfect consistency is difficult to
achieve, but it is aloud to have some degree of inconsistency
17
• Step 2
o Divide the elements of the weighted sum vector (c) obtained
in step 1 by the corresponding priority for each criterion. With
this we will obtain vector c*
• Step 3
o Compute the average of the values found in step 2. This
average is eigenvalue of the matrix and it is denoted λmax
o Step 4
o Compute the consistency index (CI) as follows:
o =
o where n is the number of items being compared.
n RI
3 0,58
4 0,9
5 1,12
6 1,24
7 1,32
8 1,41
18
• if the consistency ratio (CR) is 0.10 or less, the
consistency of the pairwise comparisons is
considered reasonable,
• If it is greater than 0.10 this indicates an
inconsistency in the pairwise judgements and the
obtained results are worthless
Step 1
1 1/3 4 0.803 0.803
0.265 × 3 + 0.656 × 1 + 0.080 × 7 = 2.011 c = 2.011
1/4 1/7 1 0.240 0.240
19
• Step 2
. . .
• = 3.030 = 3.065 = 3.000
. . .
3.030
∗
• = 3.065
3.000
• Step 3
. . .
• λ = = 3.032
• Step 4
.
• = = = 0.0158
20