This sounds like a classic knapsack problem. For such a small problem
space, a simple dynamic programming solution would suffice.
If you are interested in exploring this problem at a larger scale, I high
recommend coursera's Discrete Optimization class:
https://class.coursera.org/optimization-0
Hey, newish user here.
I want to make an app that finds the optimal lineup for fantasy baseball
games.
Each player is assigned a cost, the average points they earn a game, and
position. For example: Andrew McCutchen, 3.4, 4900, OF
You have to pick one catcher, one pitcher, one first basemen, o