solve_piecewise function

Solve as piecewise linear problem, numeric target.