I have the following optimization problem: I want to minimize the cost of buying products from various suppliers. Prices of the products vary depending on supplier. Additionally, each supplier has their shipping cost. Shipping cost can be discounted depending on the amount of products bought from given supplier. I know how to define cost function and most of the constraints, but I’m struggling to formulate the shipping cost which is quantity dependent.
Further I’d like to solve the problem programmatically with Python, but I have to start from mathematical formulation.
Any hints on how to incorporate quantity dependent discount into linear Optimization problem?