Full threadvok·There's a beautiful example of this in the J implementation of continuous knapsack on Rosetta Code: http://rosettacode.org/wiki/Knapsack_problem/Continuous#JView on HN