doing piecewise linear solver instead of Newton-Raphson nonlinear solver