Description Usage Arguments Value References See Also Examples
View source: R/slow_brute_force.R
The function returns maximum value within all the possible solutions
1 | slow_brute_force(x, W)
|
x |
data.frame, contains variables weight(w) and value(v) |
W |
weight threshold for the knapsack |
Total and Maximum value within the threshold of W
https://en.wikipedia.org/wiki/Knapsack problem
1 2 | slow_brute_force(x = knapsack_objects[1:8,], W = 3500)
slow_brute_force(x = knapsack_objects[1:12,], W = 3500)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.