Operations Research, Optimization, Decision Science, Data Science, Deep Dives.
it lies within the ith linear segment (closed interval). The variable x should lie within one of the segments created, therefore a constraint must ensure that exactly one z variable is active. Constraint ensures that one segment is active in a piecewise linear function. (Image by the author). Now