Description Usage Arguments Value References
tests all combinations and finds the one with max value under the restriction total weight<W.
1 | brute_force_knapsack(x, W, parallel = FALSE)
|
x |
is a matrix containing the weights and values |
W |
a numeric string. |
parallel |
is the logical |
a list with the _value_ of the optimally packed knapsack and the _elements_ that gives this value.
https://en.wikipedia.org/wiki/Knapsack_problem
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.