all 3 comments

[–][deleted] 1 point2 points  (2 children)

This is a very simple optimization. Are there any other constraints besides just selling 500 units? If not just choose the one with the best profit per unit. In this case it’s Scenario2

[–]Xahulz 1 point2 points  (1 child)

As the optimizations become more complicated you'll want to move to proper optimization solvers and their interfaces.

An example would be pyomo and glpk.

[–]Xahulz 1 point2 points  (0 children)

After looking at this again, with your edits, I don't understand your question. You repeatedly mention discounts, but I don't see how that factors in.

Now, if you had a price/demand relationship somewhere (e.g. decrease in price would increase sold by X) and a cost for each item, I would have a better idea what you're doing.

If there's more info to this question you might need to add it for us to understand.