Terse summary of the object returned by ExactMaxSum()
("MaxSumSelection"), reporting the achieved total pairwise distance
(the max-sum objective) rather than the minimum distance of ExactMaxMin().
Value
format.MaxSumSelection() returns a one-line character summary;
print.MaxSumSelection() returns x invisibly, called for its side-effect.
See also
Other reporting functions:
print.Coreset,
print.KCentre,
print.MaxEntropy,
print.MaxMeanSelection(),
summary.Coreset
Examples
set.seed(1)
# Package 'highs' is required for ExactMaxSum()
if (requireNamespace("highs", quietly = TRUE)) {
ExactMaxSum(3L, dist(matrix(rnorm(20), ncol = 2)))
}
#> 3 elements (1 3 4) by exact MILP, proven optimal, total distance = 9.388