Knapsack.interpret

Knapsack.interpret(result)[ソース]

Interpret a result as item indices

パラメータ:

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

戻り値:

A list of items whose corresponding variable is 1

戻り値の型:

List[int]