BestSubsetProblem

constructor(parameters: Parameters, numberOfTopics: Int, averagePrecisions: MutableMap<String, DoubleArray>, meanAveragePrecisions: DoubleArray, topicLabels: Array<String>, correlationStrategy: (DoubleArray, DoubleArray) -> Double, targetStrategy: (BinarySolution, Double) -> BinarySolution)

Secondary constructor kept for API compatibility with older boxed‑array call sites. It converts boxed AP rows to primitives and builds PrecomputedData internally.

Parameters

parameters

Run parameters.

numberOfTopics

Number of topics.

averagePrecisions

Map: systemId → AP vector (boxed Double).

meanAveragePrecisions

Historical/compatibility param (unused; see warning).

topicLabels

Human‑readable topic labels.

correlationStrategy

Old boxed correlation (Array<Double>, Array<Double>) -> Double.

targetStrategy

Objective installer for the selected target.


constructor(parameters: Parameters, numberOfTopics: Int, precomputedData: PrecomputedData, topicLabels: Array<String>, legacyBoxedCorrelation: (DoubleArray, DoubleArray) -> Double, targetStrategy: (BinarySolution, Double) -> BinarySolution)