On the use of piecewise linear models in nonlinear programming