Description Usage Arguments Value Examples
View source: R/brute_force_knapsack.R
Brute Force
1 | brute_force_knapsack(x, W, parallel = FALSE)
|
x |
x |
W |
max weight of the knapsack |
parallel |
boolean indicating whether or not parallel computing should be used |
a list with max value and corresponding elements
1 2 | data(knapsack_objects)
brute_force_knapsack(x = knapsack_objects[1:8,], W = 3500)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.