getCardinality

fun BinarySolution.getCardinality(): Double

Returns the subset cardinality stored in the underlying BestSubsetSolution.

Receiver

a BinarySolution that is actually a BestSubsetSolution

Return

the subset size as a Double

Throws

if the receiver is not a BestSubsetSolution