bolt: BOLT algorithm for the median ranking

View source: R/bolt.R

boltR Documentation

BOLT algorithm for the median ranking

Description

Find the median ranking according to the Kemeny's axiomatic approach with BOLT (Bucket-Order Local search with optimal Tie partitioning), a deterministic and scalable heuristic that works entirely on the combined input matrix.

Usage

bolt(
  X = NULL,
  wk = NULL,
  full = FALSE,
  otp = TRUE,
  maxjudges = Inf,
  ps = FALSE,
  cij = NULL,
  nj = NULL
)

Arguments

X

A N by M data matrix, in which there are N judges and M objects to be judged. Each row is a ranking of the objects which are represented by the columns. If X contains the rankings observed only once, the argument wk can be used. Either X or cij must be given

wk

Optional: the frequency of each ranking in the data

full

Logical. If TRUE, the median ranking is searched in the space of full rankings (permutations), i.e. without ties. Default FALSE

otp

Logical. If TRUE (default), the local search is alternated with the exact optimal tie partitioning (the "full" configuration of the paper); if FALSE, only the tie-aware local search is used (the "fast" configuration). Ignored when full = TRUE

maxjudges

Maximum number of distinct rankings of the judges used as starting solutions, the most frequent first. Default Inf (all of them); 0 uses only the starting solutions computed from the combined input matrix

ps

Logical. If TRUE, displays information on screen. Default FALSE

cij

The combined input matrix (M by M, see combinpmatr), to be given instead of X. With cij, the argument wk is ignored and the rankings of the judges are not used as starting solutions

nj

The number of judges (the sum of the weights, if any) that produced cij. Required when cij is given: it is used to compute the averaged TauX

Details

The median ranking maximizes the averaged TauX rank correlation coefficient with the rankings of the judges, which depends on the data only through the combined input matrix C (Emond and Mason, 2002). BOLT works entirely on C and combines three ingredients:

  1. starting solutions computed from C (net flow, Copeland, a Markov chain score, a bucket pivot order and the starting solution of the branch-and-bound algorithm) and the rankings of the judges;

  2. a tie-aware insertion local search: an object is moved to another position or tied with a group of objects, and each move is evaluated in O(M) time;

  3. the optimal tie partitioning: for a fixed order of the objects, the tie structure maximizing TauX is computed exactly by dynamic programming in O(M^2) time.

The local search and the optimal tie partitioning are alternated until no improvement, from each starting solution; the best solution(s) are returned. When ties are allowed (full = FALSE), a first phase runs the local search without ties from each starting solution (ties broken) and adds the resulting full rankings to the starting solutions: the result is never worse than the one with full = TRUE. The procedure is deterministic: no random starting solutions are used.

Instead of the data X, the combined input matrix cij can be given, together with the number of judges nj.

Value

A list containing the following components:

Consensus the consensus ranking(s)
Tau averaged TauX rank correlation coefficient
Eltime elapsed time in seconds

Author(s)

Maurizio Romano

References

Romano, M., D'Ambrosio, A., and Conversano, C. A deterministic and scalable heuristic for median ranking detection: tie-aware local search with optimal tie partitioning on the combined input matrix. Manuscript under review.

Emond, E. J., and Mason, D. W. (2002). A new rank correlation coefficient with application to the consensus ranking problem. Journal of Multi-Criteria Decision Analysis, 11(1), 17-28.

See Also

consrank, mcbo, combinpmatr

Examples

data(EMD)
CR <- bolt(EMD[, 1:15], wk = EMD[, 16])
CR$Consensus
CR$Tau
# the same result from the combined input matrix
CR2 <- bolt(cij = combinpmatr(EMD[, 1:15], EMD[, 16]), nj = sum(EMD[, 16]),
            maxjudges = 0)


ConsRank documentation built on Nov. 24, 2026, 5:08 p.m.