brute_force_knapsack: brute_force_knapsack

Description Usage Arguments Value References

View source: R/brute_para.R

Description

tests all combinations and finds the one with max value under the restriction total weight<W.

Usage

1

Arguments

x

is a matrix containing the weights and values

W

a numeric string.

parallel

is the logical

Value

a list with the _value_ of the optimally packed knapsack and the _elements_ that gives this value.

References

https://en.wikipedia.org/wiki/Knapsack_problem


boxizhang/boxknapsack documentation built on May 24, 2019, 7:25 p.m.