The PieceLinearSOS2.lng Model

Piecewise-linear cost curves

View the model
Download the model

Demonstrates the SOS2 feature of LINGO for representing arbitrary, piecewise-linear cost curves.
We have two suppliers. Each with his own piecewise-linear cost curve. How much should we buy from each to buy a given total amount?

Keywords:

Piecewise Linear | Non-convex Function | Linearization | SOS2 | Purchasing | Quantity Discount |