### ANALYTIC HIERARCHY PROCESS

 Here we present a program to compute the analytic hierarchy process and output the confidence index alongside the individual weights.Using material from Saaty L. Thomas, The analytic hierarchy process: planning, priority setting, resource allocation, McGraw-Hill, 1980.INPUTB = [    B1       B2       B3       B4            B5       B6       B7       B8            B9       B10     B11     B12            B13     B14     B15     B16        ]       = [B]OUTPUTCONFIDENCE INDEXWEIGHT OF EACH COLUMN FACTOR`2 → DIM(L6) ``DIM([B]) → L6 ``L6(1)→M ``0 → DIM(L6) ``M → DIM(L6) ``FOR(Q,1,M,1) ``FOR(P,1,M,1) ``[B](P,Q) + L6(Q) → L6(Q) ``END ``END ``DIM([B]) → DIM([D]) ``FOR(Q,1,M,1) ``FOR(P,1,M,1) ``[B](P,Q)/L6(Q) → [D](P,Q) ``END ``END ``0 → DIM(L6) ``M → DIM(L6) ``FOR(P,1,M,1) ``FOR(Q,1,M,1) ``[D](P,Q)+L6(P) → L6(P) ``END ``END ``0 → DIM(L5) ``L6/M → L6 ``M → DIM(L5) ``FOR(P,1,M,1) ``FOR(Q,1,M,1) ``[B](P,Q)*L6(Q) + L5(P)→ L5(P) ``END ``END ``L5/L6 → L5 ``0 → A ``FOR(P,1,M,1) ``L5(P) + A → A ``END ``A/M → A ``(A-M)/(M-1) → A ``DISP “CONFIDENCE INDEX IS” ``DISP A ``DISP “WEIGHT OF EACH FACTOR IS” ``DISP L6`