Let's say i have a product A at 100$ with shipping cost at 3$ from supplier X, the same product at 102$ with shipping cost at 2.5$ from supplier Y and the same with different suppliers.
Now let's say i have product B at 200$ with shipping cost at 1$ from supplier Z, the same product at 203$ with shipping cost at 2$ with supplier Y and the same with different suppliers.
I want to order both A and B products and i want to calculate an optimal cost. For example, the input of my program will be multiple products and the output will be like example
I am not familiar with simplex or any linear algorithms at all. How hard is to solve such a problem, can you give me any advice ?