A control based on a knapsack problem for solar hydrogen production. (27th March 2014)