Operations Research, Optimization, Decision Science, Data Science, Deep Dives.
we must ensure that sᵢ equals x when zᵢ equals 1, and also compute y based on the values of sᵢ and the corresponding parameters of each segment. Piecewise linear function constraints. (Image by the author). Thus, using these expressions one can compute the value of a generic piecewise linear