Description Usage Arguments Value
This function takes the values and weights provided in a data frame and finds the largest possible sum of values that is less than or equal to the inputed weight by trying all possible combinations.
1 | brute_force_knapsack(x, W, parallel = FALSE)
|
x |
data frame |
W |
positive numeric value |
parallel |
gives opportunity to use parallel programming |
The output will be a numerical value(the largest possible sum) and the corresponding numerical elements that make that sum
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.