This repository contains the scripts 📜 for implementing PieceWise Approximations 📐.
- The methods are based on the paper:
D’Ambrosio, C., Lodi, A., Martello, S., 2010. "Piecewise linear approximation of functions of two variables in MILP models". Operations Research Letters 38, 39–46.
Iset of discretization pointsfunSlctfunction selection to test % {1,2,3,4,5,6}varRangesx, y ranges % {'physical','paper'}activeCstrXactivate constraint on x % {0,1}varRangesactivate constraint on y % {0,1}
-
Function of 1 variable
funSeperablePWA.m
-
Function of 2 variables: One-dimensional
oneDimensionalPWA.m
-
Function of 2 variables: Triangles
trianglesPWA.m
-
Function xy: Seperable programming
sprblPrgrmXY.m