I have any number of graphs. Each graph is a plot of points, not necessarily an equation.
I need to pick a point on each graph in way that the following is true:
- The sum of the y values of each point is maximized
- The sum of the x values of each point does not exceed a limit L, which can be any positive number.
The problem seems so simple, and yet I cannot find a way to solve the problem mathematically. There are several ways to solve the problem using CS, but I would prefer to avoid those if possible.