Solves the Change Making problem as an integer linear program.
change_making(items, value)
Arguments
items: vector of integer numbers greater than zero.
value: integer number
Details
The Change Making problem attempts to find a minimal combination of items that sum up to a given value. If the items are distinct positive integers, the solution is unique.
If the problem is infeasible, i.e. there is no such combination, the returned count is 0.
The problem is treated as an Integer Linear Program (ILP) and solved with the lp solver in lpSolve.
Returns
Returns a list with components count, the number of items used to sum up to the value, and solution, the number of items used per item.
References
See the Wikipedia article on the "change making problem".