Qurak

KnapsackSolve

Non disponible

KnapsackSolve[{cost1, cost2, …}, maxtotalcost]
KnapsackSolve[{{payoff1, cost1}, {payoff2, cost2}, …}, maxtotalcost]
KnapsackSolve[{{payoff1, cost1, maxcount1}, …}, maxtotalcost]
KnapsackSolve[items, {maxtotalpayoff, maxtotalcost}]
KnapsackSolve[items, {maxtotalpayoff, maxtotalcost, maxtotalcount}]
KnapsackSolve[<| label1 -> itemspec1, … |>, maxtotals]

Connexes

Les 6300 fonctions · Utiliser ceci depuis un client MCP