English
Languages
English
Bengali
Japanese
Spanish



NumberPartition.interpret

NumberPartition.interpret(result)[source]

Interpret a result as a list of subsets

Parameters:

result (OptimizationResult | ndarray) – The calculated result of the problem

Returns:

A list of subsets whose sum is the half of the total.

Return type:

List[List[int]]