Knapsack.interpret

Knapsack.interpret(result)[fuente]

Interpret a result as item indices

Parámetros:

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

Devuelve:

A list of items whose corresponding variable is 1

Tipo del valor devuelto:

List[int]