> Discrete Optimization > Transport: Piecewise Linear Optimization > Piecewise Linearity in ILOG CPLEX > Special Considerations about Solving with IloPiecewiseLinear

Under some conditions, a piecewise linear problem may be equivalent to a linear program (rather than a MIP). In such a case, no branching is necessary. Whether a problem represented by a piecewise linear function made up of segments can be modeled as a linear program (and thus it can be solved straightforwardly without branching) depends on the slope of these segments.

A piecewise linear function is convex if the succession of the slopes of its segments is increasing. In contrast, a piecewise linear function is concave if the succession of slopes is decreasing.

Consider a minimization problem having linear constraints of the form

a1x1+...+anxn <= a0 and

a1x1+...+anxn = a0 where xi is a variable or a piecewise linear function.

Sufficient conditions for this problem to be a linear program are these:

These statements have equivalent translations for >= constraints or for a maximization problem. See Are Logical Constraints Discrete or Continuous? for more detail about piecewise linear functions in the context of whether they are convex or concave and for an indication of when piecewise linear functions lead to a MIP or LP formulation.

With this background about piecewise linear functions and their representation in Concert Technology, consider a transportation example exploiting piecewise linearity.