English
Languages
English
Bengali
Japanese
Spanish



Knapsack.interpret

Knapsack.interpret(result)[source]

Interpret a result as item indices

Parameters:

result (Union[OptimizationResult, ndarray]) – The calculated result of the problem

Return type:

List[int]

Returns:

A list of items whose corresponding variable is 1