BestSubsetSolution

constructor(numberOfVariables: Int, numberOfObjectives: Int, numberOfTopics: Int, topicLabels: Array<String>, forcedCardinality: Int?)

Parameters

numberOfVariables

the number of variables (always 1 for this problem)

numberOfObjectives

the number of objectives

numberOfTopics

number of topics (size of the binary mask)

topicLabels

human‑readable labels for topics; mirrored to copies

forcedCardinality

if non‑null, initialize with exactly this many bits set; otherwise random non‑empty