Piece-wise linear synthesis