Research Article

Models and Algorithms for Optimal Piecewise-Linear Function Approximation

Algorithm 2

PL-Fixed-Cont-Reject.
(1)  Same as lines () through () of PL-Fixed
(2)  for   to   do
(3)  for   to   do
(4)     ; ; ;
(5)  ; ; ;
(6)  for   to   do
(7)  ; ; ;
(8)  for   to   do
(9)    ;
(10)   if   and   then
(11)     ;
(12)     if   and   then
(13)      ; ; ;