Bonferroni Mean (BM)
1. Verify n ≥ 2, p ≥ 0, q ≥ 0. If weights supplied, verify Σ w_j = 1.
2. Compute the unweighted Bonferroni Mean BM^{p,q}: average all ordered pairs (i,j) with i≠j of a_i^p × a_j^q, then take the (p+q)-th root.
3. Weighted Bonferroni Mean WBM^{p,q}: replace the uniform average by a weighted double sum. Weights w=(w_1,...,w_n) with Σw_j=1.
4. Rank alternatives by BM (or WBM) score in descending order.