ILOG CPLEX 11.0 User's Manual > Discrete Optimization > Using Piecewise Linear Functions in Optimization: a Transport Example > Describing the Problem > Variable Shipping Costs

Now consider the costs of shipping from a given factory to a given showroom. Assume that for every pair (factory, showroom), there are different rates, varying according to the quantity shipped. To illustrate the difference between convex and concave piecewise linear functions, in fact, this example assumes that there are two different tables of rates for shipping cars from factories to showrooms. The first table of rates looks like this:

These costs that vary according to quantity define the piecewise linear function represented in Figure 18.3. As you see, the slopes of the segments of that function are decreasing, so that function is concave.

images/concave.gif

Figure 18.3 A concave piecewise linear cost function

Also assume that there is a second table of rates for shipping cars from factories to showrooms. The second table of rates looks like this:

The costs in this second table of rates that vary according to the quantity of cars shipped define a piecewise linear function, too. It appears in Figure 18.4. The slopes of the segments in this second piecewise linear function are increasing, so this function is convex.

images/convex.gif

Figure 18.4 A convex piecewise linear cost function