Also known as the fractional knapsack problem.

Continuous knapsack problem can be solved by a greedy algorithm.