slow_brute_force: Basic and slow implementation of Brute-Force Algorithm

Description Usage Arguments Value References See Also Examples

View source: R/slow_brute_force.R

Description

The function returns maximum value within all the possible solutions

Usage

1

Arguments

x

data.frame, contains variables weight(w) and value(v)

W

weight threshold for the knapsack

Value

Total and Maximum value within the threshold of W

References

https://en.wikipedia.org/wiki/Knapsack problem

See Also

brute_force_knapsack

Examples

1
2
slow_brute_force(x = knapsack_objects[1:8,], W = 3500)
slow_brute_force(x = knapsack_objects[1:12,], W = 3500)

shaiq681/KnapSacked documentation built on Oct. 13, 2020, 1:27 a.m.